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

Metadata

Release files for colca-data-contracts 0.42.0

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.42.0
File Size Uploaded Provenance Actions
colca_data_contracts-0.42.0.tar.gz 116.9 kB With provenance Details for colca_data_contracts-0.42.0.tar.gz

Built distribution (wheel)

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

Total release size: 204.9 kB

Release files / colca_data_contracts-0.42.0.tar.gz

Download URL colca_data_contracts-0.42.0.tar.gz
Size 116.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0d66e17146af9c300b0322efef4a09b7b4a9dac0bcd2ff0ec477a2ac3a13cf7a
BLAKE2b-256 checksum
How to use checksums
0cc83ae4fd4e38953978c3375af557d1d95da5bdf3212087e0a8c45365f7d0a8
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 Oct 27, 2026.

Transparency log

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

Download URL colca_data_contracts-0.42.0-py3-none-any.whl
Size 88.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6ffb0339282ea1a9fd762efce80273dd11b217dc512215532de9f1f9955c587
BLAKE2b-256 checksum
How to use checksums
1d5c8592aa9bae24367f40963022f6f64d3e04cace0266d7b71296a70cc8cb30
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 Oct 27, 2026.

Transparency log

Security for colca-data-contracts 0.42.0

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 colca_data_contracts-0.42.0.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 27, 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.

Release history Release notifications | RSS feed

This release

0.42.0 This release

2 release files Full provenance

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