pyrovm-sdk
Python SDK for Pyro — the open-source sandbox platform for AI agents.
Install
pip install pyrovm-sdk
Quickstart
import asyncio
from pyro_sdk import Pyro
async def main():
pyro = Pyro(api_key="pk_...", base_url="http://localhost:8080")
async with await pyro.sandbox.create(image="python") as sb:
result = await sb.run("print('Hello from Pyro!')")
print(result.stdout) # "Hello from Pyro!\n"
asyncio.run(main())
Configuration
| Env var | Description |
|---|---|
PYRO_API_KEY |
API key (or pass api_key= to constructor) |
PYRO_BASE_URL |
Server URL (default: http://localhost:8080) |
API
Pyro(api_key=, base_url=, timeout=)
Create a client. Reads from env vars if not provided.
pyro.sandbox.create(image=, timeout=, vcpu=, mem_mib=)
Create a sandbox. Returns a Sandbox object.
sandbox.run(code, language=)
Run code. Auto-detects language from image name.
sandbox.exec(command, env=, workdir=, timeout=)
Execute a command. Returns ExecResult(exit_code, stdout, stderr).
sandbox.write_file(path, content)
Write a file into the sandbox.
sandbox.read_file(path)
Read a file from the sandbox. Returns bytes.
sandbox.stop()
Destroy the sandbox. Called automatically when using async with.
Metadata
Release files for pyrovm-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyrovm_sdk-0.1.0.tar.gz | 5.4 kB | With provenance | Details for pyrovm_sdk-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyrovm_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyrovm_sdk-0.1.0-py3-none-any.whl |
Total release size: 11.9 kB
Release files / pyrovm_sdk-0.1.0.tar.gz
| Download URL | pyrovm_sdk-0.1.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53cf5a8ce8058bb6a6a40fb6f1032ef8c80e19d03728efc1d336fee821d0d8d1
|
|
BLAKE2b-256 checksum How to use checksums |
c0c84341fd96c9d7e080d0671f474b1007d56012a3216b48d8f5aa7e4ebd29a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / pyrovm_sdk-0.1.0-py3-none-any.whl
| Download URL | pyrovm_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ba48dd00bba4191f7da46a46b168360bf449d18598868711a902519ae70fdc7
|
|
BLAKE2b-256 checksum How to use checksums |
512ef93aaef51bc84706e0789b945346ec77b81aef3093ca4d082781e5b548ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logSecurity for pyrovm-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyrovm_sdk-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.