pybotx-registration
Implementation foundation for the BotX automatic secret-delivery protocol:
GET /public_keyreturns a Base64-encoded Libsodium public key;POST /registeraccepts a sealedsecret_keyand persists it only after re-encrypting it for storage;- duplicate registration never changes an existing credential;
- the request path is authenticated, bounded and validates
server_hostbefore it becomes an outbound endpoint.
The package deliberately has no business handlers and no access to a plaintext secret outside its account-provider boundary.
Local verification
python -m venv .venv
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
The tests exercise real Libsodium sealed-box encryption/decryption, HTTP contract responses, durable-at-service-boundary storage semantics, duplicate and concurrent delivery, lifecycle transitions, and the pybotx API gate.
Production adapters
InMemoryRegistrationRepository and LocalSecretBoxCipher are test/dev
adapters only. Before deployment replace them with a PostgreSQL repository
with UNIQUE(server_id, bot_id) and a KMS/Vault envelope-encryption adapter.
Use mTLS or AllowlistedPeerAuthenticator on a directly connected,
correctly terminated private-network ingress for the router.
Metadata
Release files for pybotx-registration 0.1.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 | |
|---|---|---|---|
| pybotx_registration-0.1.0.tar.gz | 104.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pybotx_registration-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 121.9 kB
Release files / pybotx_registration-0.1.0.tar.gz
| Download URL | pybotx_registration-0.1.0.tar.gz |
|---|---|
| Size | 104.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea501594f8e4365eb5f32e7f828dde7bebe9e0505ce7d1ad9226052bde96bf12
|
|
BLAKE2b-256 checksum How to use checksums |
dc50667159b9d91328f32fb83efc9c9d56d83378fc9a99247a523254d7a5ea27
|
| 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 Oct 7, 2026.
Transparency logRelease files / pybotx_registration-0.1.0-py3-none-any.whl
| Download URL | pybotx_registration-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e76fc4ee7e637bebcfa042edf5cabc12e112aa2cffba7c04cc5bd77783fc016e
|
|
BLAKE2b-256 checksum How to use checksums |
0ba520ee318dcafad613938e72ead25f1c6f0c4a469d7051437902e9fe6ee9c7
|
| 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 Oct 7, 2026.
Transparency log