ajar-connector (Python)
The Python SDK for building byte-compatible connectors to Ajar. Types are
generated from the same vendored event.proto as the Rust/Go/C++ SDKs, so this
SDK reproduces the same golden vectors.
Try the template in 10 seconds
cd python
pip install -e . # or: pip install protobuf cryptography
echo '{"lat":26.4,"lon":50.9,"alt_m":11000,"quality":0.9}' \
| PYTHONPATH=. python examples/connector_template.py --dry-run
# -> 019e... -> ajar.ingest.demo-connector (196 sealed bytes) [dry-run]
You just built and signed a canonical Ajar event. To make it yours, edit the one
function marked EDIT in examples/connector_template.py.
Use it in code
from ajar_connector import EventBuilder, canonical_bytes, seal, SigningKey
event = (
EventBuilder("acme-radar-1", "mim:aircraft")
.new_id().now()
.location(26.4, 50.9, 11000.0)
.confidence(0.94)
.build()
)
sealed = seal(canonical_bytes(event), SigningKey.from_seed(my_seed)) # 64-byte sig ++ canonical
Run the checks
cd python
python -m pytest # unit tests
PYTHONPATH=. python conformance/golden_vectors.py # the byte-compat gate
Streaming example
pip install -e ".[examples]" # adds nats-py
PYTHONPATH=. python examples/synthetic_radar.py # publish to a local Core
PYTHONPATH=. python examples/synthetic_radar.py --dry-run --ticks 3 # no infra
See the full onboarding guide for data flow, deployment topology, key generation, and troubleshooting.
The conformance gate and
--dry-runneed onlyprotobuf+cryptography.nats-pyis anexamplesextra, kept out of the SDK's core dependencies.
Metadata
Release files for ajar-connector 0.5.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ajar_connector-0.5.11.tar.gz | 17.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ajar_connector-0.5.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.9 kB
Release files / ajar_connector-0.5.11.tar.gz
| Download URL | ajar_connector-0.5.11.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
678067048035709f7431ec4781da5e4529b5b475c7d4b576fdd6ac1dc3188fbc
|
|
BLAKE2b-256 checksum How to use checksums |
306998279ae64cf005863cc7d6c00e20a42b7f126100912192dc79c929af3a16
|
| 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 5, 2026.
Transparency logRelease files / ajar_connector-0.5.11-py3-none-any.whl
| Download URL | ajar_connector-0.5.11-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a9c1e0487533e3f1c63c2bdc245ddd92792bd83e94ade9d04f14c03fde75a1e
|
|
BLAKE2b-256 checksum How to use checksums |
7ff6de6c730d06b8ca1f555911eb6cf1a97ed7fd2b5524cbb613bfdacbb96573
|
| 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 5, 2026.
Transparency log