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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brezel_sdk-0.1.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brezel_sdk-0.1.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file brezel_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: brezel_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for brezel_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b6a8ca9ce902611206c8ce5738d91fce3bb147d200f7f7ed2bbb02d6c0b548c
MD5 82d447462a11b748f402ebd2930531eb
BLAKE2b-256 5f1ad699e88117d92b39642e72c746a4bb72ff85abebbf43c5a0fd719625c7e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for brezel_sdk-0.1.1.tar.gz:

Publisher: release-sdks.yml on infercrane/brezel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file brezel_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: brezel_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for brezel_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fca548d758ed28c07f0955e206e0a4af32663bc92e62802597aeeab338d2339a
MD5 23a650b1fb4ef1c051d2cc4206177e33
BLAKE2b-256 43edbe58476df7f0294042628e9a2fc19999942413d865af060282878919631b

See more details on using hashes here.

Provenance

The following attestation bundles were made for brezel_sdk-0.1.1-py3-none-any.whl:

Publisher: release-sdks.yml on infercrane/brezel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 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