Python Keymaster Library
Reusable Python implementation of the Archon Keymaster business logic.
This package is intended to hold the core wallet, DID, crypto, and asset
behaviors independent of any specific HTTP service runtime. It also exposes
the Python keymaster CLI, which mirrors the TypeScript Keymaster CLI command
surface while using this library in-process against a Gatekeeper HTTP endpoint
and local wallet file.
Install
pip install archon-keymaster
For local development from a repo checkout:
pip install -e python/keymaster
CLI usage
Configuration comes from the environment, or from a .env in the directory you
run from, as with the JS CLI. A variable already exported wins over the file.
cat > .env <<'ENV'
ARCHON_PASSPHRASE=your-passphrase
ARCHON_GATEKEEPER_URL=http://localhost:4224
ARCHON_WALLET_PATH=./wallet.json
ENV
keymaster --help
keymaster create-wallet
keymaster create-id alice
keymaster list-ids
CLI environment variables
| Variable | Default | Description |
|---|---|---|
ARCHON_NODE_URL / ARCHON_GATEKEEPER_URL |
http://localhost:4224 |
Gatekeeper HTTP endpoint |
ARCHON_WALLET_PATH |
~/.archon/wallet.json (wallet.db for sqlite), or ./wallet.json if one is already there |
Path to wallet file. The default follows you between directories |
ARCHON_WALLET_TYPE |
json |
Wallet backend: json or sqlite. The same file the TypeScript CLI opens |
ARCHON_PASSPHRASE |
(asked for) | Wallet passphrase. For automation; the environment is a poor place for a secret |
ARCHON_PASSPHRASE_FILE |
~/.archon/passphrase |
File holding the passphrase. Read if it exists, so answering the CLI's offer to save ends the asking |
ARCHON_DEFAULT_REGISTRY |
hyperswarm |
Default registry for new DIDs |
Metadata
Release files for archon-keymaster 0.8.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 |
|---|---|---|---|---|
| archon_keymaster-0.8.0.tar.gz | 82.2 kB | With provenance | Details for archon_keymaster-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| archon_keymaster-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for archon_keymaster-0.8.0-py3-none-any.whl |
Total release size: 168.7 kB
Release files / archon_keymaster-0.8.0.tar.gz
| Download URL | archon_keymaster-0.8.0.tar.gz |
|---|---|
| Size | 82.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8ad3686361b6cda0c89b92f149d430fa82fcd9c94ca70ece59c9717ce151f62
|
|
BLAKE2b-256 checksum How to use checksums |
538f12f003610baf1737c201533c2b51d82965465cf2f9422ca0fae286738eaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / archon_keymaster-0.8.0-py3-none-any.whl
| Download URL | archon_keymaster-0.8.0-py3-none-any.whl |
|---|---|
| Size | 86.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c54bde375e056a672238cfd5ce6ca649b14a97aef6c989c0bbb938410a68b383
|
|
BLAKE2b-256 checksum How to use checksums |
8f05ebf06f4e8eaa52d93ffb4520ff369488b1a0197f71ab34135d120a854215
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for archon-keymaster 0.8.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for archon_keymaster-0.8.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA 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.