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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbcdb8eaff897e45d704452ad2c82e3878fcfa8a83ad9427c8290cc3ff662037
|
|
| MD5 |
b74ac06afed1cb3f9dbfb5851263483d
|
|
| BLAKE2b-256 |
417c2e637b108a0dc4d110cdd874a4c4e71cb75b89c25538ec236ba44c506f26
|
Provenance
The following attestation bundles were made for brezel_sdk-0.1.0.tar.gz:
Publisher:
release-sdks.yml on infercrane/brezel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brezel_sdk-0.1.0.tar.gz -
Subject digest:
fbcdb8eaff897e45d704452ad2c82e3878fcfa8a83ad9427c8290cc3ff662037 - Sigstore transparency entry: 2883147265
- Sigstore integration time:
-
Permalink:
infercrane/brezel@4814af4234c61295fe0b6a7537ca52ee7cc2297b -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/infercrane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-sdks.yml@4814af4234c61295fe0b6a7537ca52ee7cc2297b -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b0b957674f9dffca7c5060eb5d1a8e7065c48cee64be6ee1a8066ddbf06637d
|
|
| MD5 |
d49a807f618bad5cb7eb6a6455e916c1
|
|
| BLAKE2b-256 |
3414ecdaddd3e6f19dd31cae4cd3e696fcad4b860d122a4b4eca726685052a78
|
Provenance
The following attestation bundles were made for brezel_sdk-0.1.0-py3-none-any.whl:
Publisher:
release-sdks.yml on infercrane/brezel
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
brezel_sdk-0.1.0-py3-none-any.whl -
Subject digest:
4b0b957674f9dffca7c5060eb5d1a8e7065c48cee64be6ee1a8066ddbf06637d - Sigstore transparency entry: 2883147271
- Sigstore integration time:
-
Permalink:
infercrane/brezel@4814af4234c61295fe0b6a7537ca52ee7cc2297b -
Branch / Tag:
refs/tags/sdk-v0.1.0 - Owner: https://github.com/infercrane
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-sdks.yml@4814af4234c61295fe0b6a7537ca52ee7cc2297b -
Trigger Event:
workflow_dispatch
-
Statement type: