Skip to main content

Ovrin Python SDK

Official Python client for the Ovrin agent compute cloud.

pip install ovrin

Quick start

import ovrin

client = ovrin.Client(api_key="ovrin_...")

sandbox = client.sandboxes.create(template="python", timeout=3600)
print(sandbox.id)

result = sandbox.run("python -c 'print(2 + 2)'")
print(result.stdout)  # 4

sandbox.files.write("/workspace/hello.txt", "hi")
print(sandbox.files.read("/workspace/hello.txt"))  # hi

sandbox.kill()

The API key defaults to the OVRIN_API_KEY environment variable; the base URL defaults to OVRIN_BASE_URL (or https://api.ovrin.app).

API surface

  • client.sandboxes.create(..., idempotency_key=None, snapshot_id=None, payments=False) / .list() / .get(id) / .delete(id) / .restore(snapshot_id)
  • sandbox.run(command, timeout=None)CommandResult(stdout, stderr, error)
  • sandbox.stream(command) → events as they are produced, rather than only at the end
  • sandbox.run_code(code, context_id=None) — stateful execution; variables survive between calls
  • sandbox.pause() / .resume() / .renew(expires_at) / .snapshot(name=None) — a paused sandbox bills no compute
  • sandbox.endpoint(port) → the public URL for a port inside the sandbox
  • sandbox.files.read(path) / .read_bytes(path) / .write(path, content) — bytes round-trip intact
  • sandbox.files.list(path, depth=1) / .stat(path) / .search(pattern) / .delete(path) / .move(src, dest) / .mkdir(path)
  • client.snapshots.list() / .get(id) / .delete(id)
  • client.templates.list()
  • client.keys.list() / .create() / .delete(id)
  • client.secrets.create(...) / .list() / .delete(name)
  • client.memory.add(...) / .search(...) / .list() / .delete(id)
  • client.payments.set_credentials(...) / .clear_credentials() / .credentials_status() / .create_customer(...) / .create_invoice(...) / .create_payment_link(...) / .list_customers() / .list_invoices() / .list_payment_links()
  • client.usage.get()

Errors

  • ovrin.AuthenticationError — invalid/missing API key (401)
  • ovrin.QuotaError — plan quota exceeded (402)
  • ovrin.NotFoundError — resource not found (404)
  • ovrin.ApiError — other upstream errors

Release files for ovrin 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovrin 0.1.0
File Size Uploaded
ovrin-0.1.0.tar.gz 36.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ovrin 0.1.0
File Interpreter ABI Platform
ovrin-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 49.0 kB

Release files / ovrin-0.1.0.tar.gz

Download URL ovrin-0.1.0.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9fa21ca4238e2e516b33fda8a9bd5e60650b21379c175e05722a708c74dc4f41
BLAKE2b-256 checksum
How to use checksums
0da67a47f3b22cd0fa6279350acb82e816fc08b62bf9d6f60abf7e36b4da43cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 10, 2026.

Transparency log

Release files / ovrin-0.1.0-py3-none-any.whl

Download URL ovrin-0.1.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb61f8f79ede0702f7947127b3d28bee40d3ffd03e95423cd6d815585ec992ea
BLAKE2b-256 checksum
How to use checksums
d7455858779b2698da00924b22df165209168af5f51d27346602a582cbf4034c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page