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

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)

Source distribution for archon-keymaster 0.7.0
File Size Uploaded
archon_keymaster-0.7.0.tar.gz 77.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for archon-keymaster 0.7.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.0

2 release files

0.4.11

2 release files

0.4.8

2 release files

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