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 |
Release files for archon-keymaster 0.7.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 | |
|---|---|---|---|
| archon_keymaster-0.7.0.tar.gz | 77.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| archon_keymaster-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 158.2 kB
Release files / archon_keymaster-0.7.0.tar.gz
| Download URL | archon_keymaster-0.7.0.tar.gz |
|---|---|
| Size | 77.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e4b3f7a8ff7d3b1abfc319a2c73c488f86dd41b213d1a7574111ae9575f9ff2
|
|
BLAKE2b-256 checksum How to use checksums |
755686d95152952241a8ba4721632cd406c5d3bf12367d2921378ec7178b6603
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 24, 2026.
Transparency logRelease files / archon_keymaster-0.7.0-py3-none-any.whl
| Download URL | archon_keymaster-0.7.0-py3-none-any.whl |
|---|---|
| Size | 81.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1be1f43efe89d77439329f0fc590d75f235ccc206662b2017b5861461c05622
|
|
BLAKE2b-256 checksum How to use checksums |
0b4cd644ad12530b76764b2d60ff843d6bf218463235276e00344baca421e0ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 24, 2026.
Transparency log