Skip to main content

colca-data-contracts

The payload contracts that Colca nodes and the services around them agree on, written as Python dataclasses on top of franzmq.

The package contains

  • one class per contract (_Metric, _Signal, _SystemElement, _CmdParam, …) with encoding, decoding and validation,
  • topic helpers that put the publishing node and the configured topic root into every topic (node_topic, COLCA_TOPIC_ROOT),
  • the builtin data models, semantic tags and metadata types,
  • the generator for the schema bundle that nodes enforce (scripts/generate_bundle.py),
  • golden vectors in src/colca_data_contracts/vectors/, which the Go tests of this repository read as well, so both sides answer the same cases.

Use

pip install ./contracts
from colca_data_contracts import node_topic
from colca_data_contracts.payload import Metric

topic = node_topic(Metric, "line1", "press3", "temp")   # colca/v1/_Metric/<NODE_ID>/line1/press3/temp

NODE_ID names the node the process publishes under; COLCA_TOPIC_ROOT changes the first segment from colca.

Develop

make contracts-test     # from the repository root
make bundle             # writes build/bundle/contracts-bundle.json

Release files for colca-data-contracts 0.17.7

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

Source distribution (sdist)

Source distribution for colca-data-contracts 0.17.7
File Size Uploaded
colca_data_contracts-0.17.7.tar.gz 83.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for colca-data-contracts 0.17.7
File Interpreter ABI Platform
colca_data_contracts-0.17.7-py3-none-any.whl Python 3 none any Details

Total release size: 149.2 kB

Release files / colca_data_contracts-0.17.7.tar.gz

Download URL colca_data_contracts-0.17.7.tar.gz
Size 83.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2eed3fa712b1af04f8b71d00acc520bca27c910313b0501375af5d5b8e8c09ca
BLAKE2b-256 checksum
How to use checksums
eccb7c1e8e3a43a33465286df5d983dc000d4887c9919765877d4211b6316182
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 26, 2026.

Transparency log

Release files / colca_data_contracts-0.17.7-py3-none-any.whl

Download URL colca_data_contracts-0.17.7-py3-none-any.whl
Size 66.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14e1989e652ed13dd4670f054da8c9edac139c0e3cfd422aa58b5db6114c16de
BLAKE2b-256 checksum
How to use checksums
2f787262d3a80277b6b36ef0adc33628c6f539d554160c6f61135fb2ed8c3100
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 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.17.7 This release

2 release files

0.17.6

2 release files

0.17.5

2 release files

0.17.4

2 release files

0.17.3

2 release files

0.17.1

2 release files

0.17.0

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.1

2 release files

0.14.0

2 release files

0.13.2

2 release files

0.13.1

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.0.1

2 release 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