Python SDK for Hallpass — agent key material, JWT signing, message proofs, and API client.
Project description
Hallpass Python SDK
Agent key material, JWT signing, message proofs, and a typed API client for Hallpass.
Install
pip install hallpass-sdk
Quick start
from hallpass_sdk import HallpassClient, generate_agent_key_material, create_message_proof_bundle
key_material = generate_agent_key_material()
bundle = create_message_proof_bundle(
principal_username="alice",
body="Invoice #1234 approved",
author_label="Billing Agent",
key_material=key_material,
)
client = HallpassClient()
result = client.verify_message(bundle)
API
Key material
generate_agent_key_material()— Generates an ECDSA P-256 key pair, DID, verification method, and fingerprint.load_agent_key_material()— Loads fromHALLPASS_AGENT_KEY(JSON),HALLPASS_AGENT_KEY_FILE(path), oragent-key.json.
Messages
create_message_proof_bundle(principal_username, body, author_label, key_material)— Creates a signed message proof bundle.verify_message_proof_bundle(bundle)— Locally verifies signature and key consistency.
Challenges
create_agent_challenge_response(challenge, key_material)— Signs a challenge to prove key possession.
Client
HallpassClient(base_url)— Typed HTTP client for the Hallpass API.
Environment variables
| Variable | Description |
|---|---|
HALLPASS_AGENT_KEY |
Agent key material as JSON |
HALLPASS_AGENT_KEY_FILE |
Path to agent key material file |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hallpass_sdk-0.2.1.tar.gz
(109.3 kB
view details)
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
hallpass_sdk-0.2.1-py3-none-any.whl
(379.7 kB
view details)
File details
Details for the file hallpass_sdk-0.2.1.tar.gz.
File metadata
- Download URL: hallpass_sdk-0.2.1.tar.gz
- Upload date:
- Size: 109.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6376ee0d51bec47b5b57b7cea660fc842db055c3acb60ee666494068b58a47e
|
|
| MD5 |
2d8e44bf174d22fca5057a6e60899182
|
|
| BLAKE2b-256 |
3cd7462073bf9e2e6f0d149cc750c5b152d9000f15812b534b7751168471bc7e
|
File details
Details for the file hallpass_sdk-0.2.1-py3-none-any.whl.
File metadata
- Download URL: hallpass_sdk-0.2.1-py3-none-any.whl
- Upload date:
- Size: 379.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23551186a3f75c863be3723a20b99836a4ec0f3b01e93d56c2d9208e82362f10
|
|
| MD5 |
18f58381adc4cf8893e5434b8dbd4f7f
|
|
| BLAKE2b-256 |
2a03203f8d04ae708917e805de908db7b10462e2a5cab3cfceb44f2f751ec303
|