azatai
The Python client for AzatAI Sandbox. A sandbox is an isolated microVM with its own kernel. You start it, run commands in it, read and write its files, and delete it from code.
Install
pip install azatai
The package needs Python 3.11 or later.
Use
from azatai import Sandbox
with Sandbox.create() as sbx:
run = sbx.commands.run("python3 --version")
print(run.stdout)
sbx.files.write("/home/user/hello.txt", "hello")
print(sbx.files.read("/home/user/hello.txt"))
The sandbox stops when the with block ends. Without a with block, call sbx.kill().
For asyncio code, use AsyncSandbox:
from azatai import AsyncSandbox
sbx = await AsyncSandbox.create()
run = await sbx.commands.run("uname -a")
await sbx.kill()
Sandbox.create("my-template") starts a sandbox from a template. Use Template and
AsyncTemplate to build templates.
Configure
The client reads its settings from these environment variables. A keyword argument with the
same role, for example Sandbox.create(api_key=...), overrides the variable.
| Variable | Argument | Role |
|---|---|---|
AZATAI_API_KEY |
api_key |
Your API key |
AZATAI_SANDBOX_DOMAIN |
domain |
The sandbox domain. The API is at https://api.<domain> and the sandboxes at https://<domain> |
AZATAI_SANDBOX_API_URL |
api_url |
The API address, if it is not https://api.<domain> |
AZATAI_SANDBOX_URL |
sandbox_url |
The sandbox proxy address, if it is not https://<domain> |
Set AZATAI_API_KEY. Then set AZATAI_SANDBOX_DOMAIN, or set both AZATAI_SANDBOX_API_URL
and AZATAI_SANDBOX_URL. If a setting is missing, the client raises azatai.ConfigError.
Develop
uv sync
uv run pytest
The tests marked live call a real sandbox API. They run only when AZATAI_API_KEY is set:
AZATAI_API_KEY=... AZATAI_SANDBOX_API_URL=... AZATAI_SANDBOX_URL=... uv run pytest -m live
Release
CI publishes the package to PyPI through trusted publishing. Set the new version in
pyproject.toml, merge the change, and push a tag python-v<version> on that commit:
git tag python-v0.0.1 && git push origin python-v0.0.1
Metadata
Release files for azatai 0.0.1
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 |
|---|---|---|---|---|
| azatai-0.0.1.tar.gz | 21.3 kB | Without provenance | Details for azatai-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azatai-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for azatai-0.0.1-py3-none-any.whl |
Total release size: 25.2 kB
Release files / azatai-0.0.1.tar.gz
| Download URL | azatai-0.0.1.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7658d1abadbe234b87c01dfbc55bbf8caed696b3e4105bfa5bea64beb8a942fe
|
|
BLAKE2b-256 checksum How to use checksums |
e0c2748b35709dab140a71136c9a47964bfba8402c01d16781e6270e4bfc00a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / azatai-0.0.1-py3-none-any.whl
| Download URL | azatai-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17f9fd5fec02cfd688a8d828f8a4e328973ee4db8fe9f489590fd5dbe82a0588
|
|
BLAKE2b-256 checksum How to use checksums |
416f35c275c0a6150c5246c49d7761b0f8f0480c88fe61a93db8a0ed1dc45e65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for azatai 0.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.