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="")

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. Until 0.1.0 is present on PyPI, install the same package from a reviewed Brezel source checkout with pip install ./sdk/python.

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.0.tar.gz (11.9 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.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: brezel_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 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.0.tar.gz
Algorithm Hash digest
SHA256 fbcdb8eaff897e45d704452ad2c82e3878fcfa8a83ad9427c8290cc3ff662037
MD5 b74ac06afed1cb3f9dbfb5851263483d
BLAKE2b-256 417c2e637b108a0dc4d110cdd874a4c4e71cb75b89c25538ec236ba44c506f26

See more details on using hashes here.

Provenance

The following attestation bundles were made for brezel_sdk-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: brezel_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b0b957674f9dffca7c5060eb5d1a8e7065c48cee64be6ee1a8066ddbf06637d
MD5 d49a807f618bad5cb7eb6a6455e916c1
BLAKE2b-256 3414ecdaddd3e6f19dd31cae4cd3e696fcad4b860d122a4b4eca726685052a78

See more details on using hashes here.

Provenance

The following attestation bundles were made for brezel_sdk-0.1.0-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

0.1.1

2 files

This release

0.1.0 This release

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