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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ajar_connector-0.5.7.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ajar_connector-0.5.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file ajar_connector-0.5.7.tar.gz.

File metadata

  • Download URL: ajar_connector-0.5.7.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ajar_connector-0.5.7.tar.gz
Algorithm Hash digest
SHA256 4ed70f25938f22685fe3a1c7168b7724da37d07360497cd45a2ee138f861a328
MD5 f6bad713b5504e1907061d62eb051348
BLAKE2b-256 7196278d114d623b9cf1e06d525397d5cfd5e4a5be1535de7f1ea1ff639bbb37

See more details on using hashes here.

Provenance

The following attestation bundles were made for ajar_connector-0.5.7.tar.gz:

Publisher: publish-python.yml on promaka/ajar-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ajar_connector-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: ajar_connector-0.5.7-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

Hashes for ajar_connector-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3fc783956a30514d2eaad42366fef640a545c0a8d54341c35d87b5c7a40e8423
MD5 496bbf6e5d041085d6aa07cfe27347db
BLAKE2b-256 d0aee42b961ff464c89e0f9213ce8ea43be6ff81b5e151a8f58b6eb4b3a6811b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ajar_connector-0.5.7-py3-none-any.whl:

Publisher: publish-python.yml on promaka/ajar-connectors

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.5.7 This release

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 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