Skip to main content

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

Exit status

A command exits with status 0 when it did what it was asked and 1 when it did not, as the TypeScript CLI does. A write the node refuses is a failure: the command prints Update failed on standard error, prints no OK, and exits 1.

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.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archon-keymaster 0.9.0
File Size Uploaded Provenance Actions
archon_keymaster-0.9.0.tar.gz 123.6 kB With provenance Details for archon_keymaster-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for archon-keymaster 0.9.0
File Interpreter ABI Platform Actions
archon_keymaster-0.9.0-py3-none-any.whl Python 3 none any Details for archon_keymaster-0.9.0-py3-none-any.whl

Total release size: 253.1 kB

Release files / archon_keymaster-0.9.0.tar.gz

Download URL archon_keymaster-0.9.0.tar.gz
Size 123.6 kB
Tags Source
SHA-256 checksum
How to use checksums
619c98eab38bf0802228eddf8faec7ce38ae0d67379eb0e7a3d4eb9439daa30e
BLAKE2b-256 checksum
How to use checksums
fa41913cccd0949b2b74568e906bf3fa80d6223d9ea5385df2ce9e45262b898a
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 Nov 27, 2026.

Transparency log

Release files / archon_keymaster-0.9.0-py3-none-any.whl

Download URL archon_keymaster-0.9.0-py3-none-any.whl
Size 129.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
491a500f4c1fa8eda73d72b7d48cf52ed550d38175c08cd1790562aa33769a27
BLAKE2b-256 checksum
How to use checksums
5e53c19f93901a6dc63b4bef1809e7c6daf37dc89ea742de4582e75ece75755b
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 Nov 27, 2026.

Transparency log

Security for archon-keymaster 0.9.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.

Select from 2 files

Attestation for archon_keymaster-0.9.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 Nov 27, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page