Skip to main content

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-run need only protobuf + cryptography. nats-py is an examples extra, kept out of the SDK's core dependencies.

Metadata

Release files for ajar-connector 0.6.4

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

Source distribution (sdist)

Source distribution for ajar-connector 0.6.4
File Size Uploaded Provenance Actions
ajar_connector-0.6.4.tar.gz 17.6 kB With provenance Details for ajar_connector-0.6.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ajar-connector 0.6.4
File Interpreter ABI Platform Actions
ajar_connector-0.6.4-py3-none-any.whl Python 3 none any Details for ajar_connector-0.6.4-py3-none-any.whl

Total release size: 32.9 kB

Release files / ajar_connector-0.6.4.tar.gz

Download URL ajar_connector-0.6.4.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f6021f211840eae1e9b4ea394150c89440ce9d93c0d755cfa2bdac5d6a88074b
BLAKE2b-256 checksum
How to use checksums
13f26611ad67d0e637661873f294a6853179890d3cdabd5dcaad47a09d3546b7
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 Oct 23, 2026.

Transparency log

Release files / ajar_connector-0.6.4-py3-none-any.whl

Download URL ajar_connector-0.6.4-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34d750c16690224b2476c69b95869807852315362a08f9d1b8abaf587c14b70d
BLAKE2b-256 checksum
How to use checksums
3f07d700822299fd0aa7343335fd781aa345639d5917a08c723ee109734778cd
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 Oct 23, 2026.

Transparency log

Security for ajar-connector 0.6.4

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 ajar_connector-0.6.4.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 Oct 23, 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