hennesey (Python)
Python SDK for Hennesey: durable sandbox leases, an intent journal for side effects, workspace conflict control, and human approval policies for AI agents. Same API as the TypeScript SDK, in snake_case.
pip install hennesey
npx @hennesey/cli dev # local control plane, zero accounts
from hennesey import Hennesey
hn = Hennesey() # HENNESEY_URL / HENNESEY_API_KEY or hennesey.config.yaml
run = hn.start_run()
charge = run.effect("charge", order, lambda p: stripe_charge(p), idempotency_key=f"charge:{order['id']}")
run.checkpoint("charged")
run.require_approval("deploy.production")
run.complete()
# After a crash, on another worker:
resumed = hn.resume_run(run_id) # claim, restore checkpoint, reconcile unknown outcomes
Built-in sandbox adapters: LocalAdapter, MockAdapter. For other providers pass an object implementing hennesey.adapters.SandboxAdapter.
Hennesey does not promise exactly-once execution of arbitrary external actions; it tracks the unknown-outcome window, enforces idempotency keys, reconciles and compensates.
Metadata
Release files for hennesey 0.1.0
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 |
|---|---|---|---|---|
| hennesey-0.1.0.tar.gz | 25.2 kB | Without provenance | Details for hennesey-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hennesey-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hennesey-0.1.0-py3-none-any.whl |
Total release size: 49.1 kB
Release files / hennesey-0.1.0.tar.gz
| Download URL | hennesey-0.1.0.tar.gz |
|---|---|
| Size | 25.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a13fdef6fe7731fde8b0d2bc4e90d28eb59abdc532537ed0d20057c9bbd0803c
|
|
BLAKE2b-256 checksum How to use checksums |
51d2a8d11e7a5608a2cf55df23f382ae8f6c324f7ed1dc57a5fc1f92bc843bad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / hennesey-0.1.0-py3-none-any.whl
| Download URL | hennesey-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71cb7baa504862f2d72d183795a9d66bc6bc556cc7a414aedcbad4ed0a90d4c3
|
|
BLAKE2b-256 checksum How to use checksums |
51994f312b0aff30975f0b26b206e47544e9b1868fac6f8d044da7a0d38ddd0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for hennesey 0.1.0
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.