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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ajar_connector-0.5.5.tar.gz.
File metadata
- Download URL: ajar_connector-0.5.5.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95e1b45e9926b5277c1303beb9fb19fcd50f7dc8d844110f6427b5c852bd46c3
|
|
| MD5 |
04ad3b7c94acf9382f0c041629794696
|
|
| BLAKE2b-256 |
c6af0b35cae7df775f715988b5bc14420ad9476a3cbd321d1e33c11ea351278f
|
Provenance
The following attestation bundles were made for ajar_connector-0.5.5.tar.gz:
Publisher:
publish-python.yml on promaka/ajar-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ajar_connector-0.5.5.tar.gz -
Subject digest:
95e1b45e9926b5277c1303beb9fb19fcd50f7dc8d844110f6427b5c852bd46c3 - Sigstore transparency entry: 2553773851
- Sigstore integration time:
-
Permalink:
promaka/ajar-connectors@37efd79b15916802f19641854d1f08841880d45d -
Branch / Tag:
refs/tags/v0.5.5 - Owner: https://github.com/promaka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@37efd79b15916802f19641854d1f08841880d45d -
Trigger Event:
push
-
Statement type:
File details
Details for the file ajar_connector-0.5.5-py3-none-any.whl.
File metadata
- Download URL: ajar_connector-0.5.5-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
188c898195f5b06829b5212c9e56ea4fb3dd36b56cb8cf7964acbbacaf4c22fd
|
|
| MD5 |
697488d7374217f5530e3249527d1103
|
|
| BLAKE2b-256 |
b897c1683bd38df4de828c1fd657d1353db040ed36a3b1bceadf1229cff8a21e
|
Provenance
The following attestation bundles were made for ajar_connector-0.5.5-py3-none-any.whl:
Publisher:
publish-python.yml on promaka/ajar-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ajar_connector-0.5.5-py3-none-any.whl -
Subject digest:
188c898195f5b06829b5212c9e56ea4fb3dd36b56cb8cf7964acbbacaf4c22fd - Sigstore transparency entry: 2553773913
- Sigstore integration time:
-
Permalink:
promaka/ajar-connectors@37efd79b15916802f19641854d1f08841880d45d -
Branch / Tag:
refs/tags/v0.5.5 - Owner: https://github.com/promaka
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@37efd79b15916802f19641854d1f08841880d45d -
Trigger Event:
push
-
Statement type: