anona-compute (Python)
Optional extras for Anona Compute on top of the stock E2B SDK. The stock SDK already works on its own:
export E2B_DOMAIN=compute.anonalabs.com
export E2B_API_KEY=ac_... # an API key from https://compute.anonalabs.com
This package adds sandbox sizes, live view tokens and SSH certificates.
pip install anona-compute
import anona_compute
anona_compute.configure(api_key="ac_...") # or set ANONA_API_KEY / E2B_API_KEY
sbx = anona_compute.Sandbox.create("python", size="large") # a subclass of e2b.Sandbox
url = sbx.live.url(mode="dom") # view-only embed URL, 600 s
tok = sbx.live.token(scope="control", channels=["pty"], ttl=120)
sbx.live.revoke_all()
cert = sbx.ssh.certificate("~/.ssh/anona_ed25519.pub")
cert.write("~/.ssh/anona_ed25519-cert.pub")
print(sbx.ssh.config(identity_file="~/.ssh/anona_ed25519"))
Environment mapping: ANONA_API_KEY → E2B_API_KEY, ANONA_DOMAIN → E2B_DOMAIN
(default compute.anonalabs.com), ANONA_API_URL → E2B_API_URL (deprecated by E2B, fallback only).
E2B_* values always win.
size is small (1 vCPU, 2 GiB, 10 GB disk), medium (2, 4 GiB, 20 GB), large (4, 8 GiB, 40 GB) or xl (8, 16 GiB, 80 GB). Without it a sandbox runs at its template's own size.
Install the desktop extra with pip install "anona-compute[desktop]".
This is the Python library only. The anona-compute command-line tool is a separate npm package: npm install -g @anona-labs/anona-compute.
Development
uv venv -p 3.12 .venv && uv pip install -p .venv/bin/python -e ".[test]"
.venv/bin/python -m pytest -q # fake gateway, no network
GATEWAY_URL=... GATEWAY_API_KEY=... .venv/bin/python -m pytest -m gateway
The version comes from the git tag sdk-v<version> (hatch-vcs); untagged builds get a 0.0.1.devN+g<sha> development version.
Metadata
Release files for anona-compute 0.2.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 |
|---|---|---|---|---|
| anona_compute-0.2.0.tar.gz | 14.7 kB | With provenance | Details for anona_compute-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anona_compute-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for anona_compute-0.2.0-py3-none-any.whl |
Total release size: 28.2 kB
Release files / anona_compute-0.2.0.tar.gz
| Download URL | anona_compute-0.2.0.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2a7159243456e2eff02b95ff0f4014f2da85426141e7169569a481fec51e859
|
|
BLAKE2b-256 checksum How to use checksums |
6e3c66a6bb61b16ef570e7f92eebd550a00fc5cc4ef4801fa4365e9656e79fb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 12, 2026.
Transparency logRelease files / anona_compute-0.2.0-py3-none-any.whl
| Download URL | anona_compute-0.2.0-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
777fc04d99330df81a2b523d58040cbb65e7045af0b42fef9dc0fca8206ac9c1
|
|
BLAKE2b-256 checksum How to use checksums |
7aaa52770145e01b3901edca5bdba0d0fa7ef415d0d3bce9b683a823055ed9e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 12, 2026.
Transparency logSecurity for anona-compute 0.2.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 anona_compute-0.2.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 Nov 12, 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.