Choose Sync for regular scripts and synchronous applications, or Async for asyncio services and concurrent runtime operations. Both styles use the same Shared models, configuration objects, enums, and errors.
Style
Entry point
Best for
Sync
Runta
Scripts, CLI tools, notebooks, and synchronous applications
Async
AsyncRunta
asyncio services and concurrent runtime operations
runtime = client.runtimes. create ()
result = runtime. exec ( " python --version " )
print ( result.stdout_text )
from runta import AsyncRunta
async with AsyncRunta () as client:
runtime = await client.runtimes. create ()
result = await runtime. exec ( " python --version " )
print ( result.stdout_text )
Component
Role
Description
Runta
Client
Main synchronous client for runtimes, secrets, and checkpoints.
Runtime
Runtime handle
Controls lifecycle, commands, files, networking, and secrets for one runtime.
RuntimeManager
Manager
Creates, lists, and resolves runtimes for a synchronous client.
SecretManager
Manager
Manages stored tenant secrets and default secret-injection stubs.
CheckpointManager
Manager
Lists, resolves, waits for, and deletes tenant checkpoints.
EgressManager
Manager
Reads and updates the network egress policy for a runtime.
FileManager
Manager
Reads, writes, uploads, and downloads files for a runtime.
RuntimeSecretManager
Manager
Configures and inspects secret-injection stubs for a runtime.
RuntimeCheckpointManager
Manager
Creates, lists, and deletes checkpoints for a runtime.
Component
Role
Description
AsyncRunta
Client
Main asynchronous client for runtimes, secrets, and checkpoints.
AsyncRuntime
Runtime handle
Controls one runtime through asynchronous lifecycle and I/O operations.
AsyncRuntimeManager
Manager
Creates, lists, and resolves runtimes asynchronously.
AsyncSecretManager
Manager
Manages stored tenant secrets and default stubs asynchronously.
AsyncCheckpointManager
Manager
Lists, resolves, waits for, and deletes checkpoints asynchronously.
AsyncEgressManager
Manager
Reads and updates a runtime egress policy asynchronously.
AsyncFileManager
Manager
Reads, writes, uploads, and downloads runtime files asynchronously.
AsyncRuntimeSecretManager
Manager
Configures runtime secret-injection stubs asynchronously.
AsyncRuntimeCheckpointManager
Manager
Creates, lists, and deletes runtime checkpoints asynchronously.