Skip to main content

Brezel Python SDK

Dependency-free Python client for stateful, self-hosted Brezel agent sandboxes.

pip install brezel-sdk
from brezel import BrezelClient

client = BrezelClient.from_token_file(
    "/var/lib/brezel/secrets/service.token",
    base_url="https://sandbox.example.com",
    project="brezel-default",
)

with client.create_sandbox(template="base", ttl_seconds=900) as sandbox:
    result = sandbox.run(["python3", "-c", "print(6 * 7)"])
    print(result.stdout_text, end="")

Use a prequalified immutable environment without creating or resolving a template alias:

with client.create_sandbox(
    environment_revision="envr_0123456789abcdef01234567",
    ttl_seconds=900,
) as sandbox:
    print(sandbox.run(["node", "--version"]).stdout_text)

The SDK intentionally accepts command argument arrays, not shell strings. It does not retry commands or file writes because their outcome can be indeterminate after a transport interruption.

Requires Python 3.10 or newer.

Metadata

Release files for brezel-sdk 0.1.1

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

Source distribution (sdist)

Source distribution for brezel-sdk 0.1.1
File Size Uploaded Provenance Actions
brezel_sdk-0.1.1.tar.gz 12.2 kB With provenance Details for brezel_sdk-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brezel-sdk 0.1.1
File Interpreter ABI Platform Actions
brezel_sdk-0.1.1-py3-none-any.whl Python 3 none any Details for brezel_sdk-0.1.1-py3-none-any.whl

Total release size: 23.6 kB

Release files / brezel_sdk-0.1.1.tar.gz

Download URL brezel_sdk-0.1.1.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6b6a8ca9ce902611206c8ce5738d91fce3bb147d200f7f7ed2bbb02d6c0b548c
BLAKE2b-256 checksum
How to use checksums
5f1ad699e88117d92b39642e72c746a4bb72ff85abebbf43c5a0fd719625c7e9
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 18, 2026.

Transparency log

Release files / brezel_sdk-0.1.1-py3-none-any.whl

Download URL brezel_sdk-0.1.1-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fca548d758ed28c07f0955e206e0a4af32663bc92e62802597aeeab338d2339a
BLAKE2b-256 checksum
How to use checksums
43edbe58476df7f0294042628e9a2fc19999942413d865af060282878919631b
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 18, 2026.

Transparency log

Security for brezel-sdk 0.1.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for brezel_sdk-0.1.1.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 Sep 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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