Skip to main content

acid-cat-catalog

The AcidCat catalog library for Python. PyPI package: acid-cat-catalog.

Write a catalog in Python, and write it in canonical form. The library uses only the standard library. Use it at build time to write acidcat.catalog.json.

pip install acid-cat-catalog
from pathlib import Path
from acid_cat_catalog import Catalog

catalog = Catalog(title="Hilltop weather station")
catalog.target("logger", bindings=["http"])
fault = catalog.type("SensorFault", {"type": "object"})
catalog.capability(
    "weather.sensor.calibrate",
    description="Correct one sensor by a fixed offset.",
    audience=["logger"],
    input={"type": "object", "required": ["offset"], "properties": {"offset": {"type": "number"}}},
    failures={"SensorFault": fault},
)
catalog.event(
    "weather.alert.raised",
    description="A reading passed a limit. The occurrence gives the reading.",
    audience=["logger"],
    input={"type": "object", "properties": {}},
    payload={"type": "object", "properties": {"celsius": {"type": "number"}}},
)

Path("acidcat.catalog.json").write_text(catalog.render())

event() declares an event: clients subscribe to it, and get its payload in each occurrence. A payload is an object, or a reference to a type that is an object. validate() lists the rules a catalog breaks, and render() raises CatalogError for one that breaks any. The full example is examples/weather.py, a weather station.

The tests compare the output of the library with files in this directory: the weather-station catalog examples/weather.acidcat.json, and a catalog of values that languages write differently, tests/fixtures/edge.acidcat.json. The air-conditioner example of the repository also writes its catalog with this library, in examples/aircon/catalog/python.py. Its test compares the output with the Pkl catalog. Each committed catalog file is in canonical form, and the root moon run check checks this. Thus all catalog libraries agree on the canonical form, and they do not share a test file. Test with moon run catalog-python:test.

Metadata

Release files for acid-cat-catalog 0.3.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 acid-cat-catalog 0.3.0
File Size Uploaded Provenance Actions
acid_cat_catalog-0.3.0.tar.gz 6.0 kB With provenance Details for acid_cat_catalog-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for acid-cat-catalog 0.3.0
File Interpreter ABI Platform Actions
acid_cat_catalog-0.3.0-py3-none-any.whl Python 3 none any Details for acid_cat_catalog-0.3.0-py3-none-any.whl

Total release size: 13.0 kB

Release files / acid_cat_catalog-0.3.0.tar.gz

Download URL acid_cat_catalog-0.3.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e41b1ac6783ca1c27680c81679fd0c7ff61e89a7669c3352920fc4139112d647
BLAKE2b-256 checksum
How to use checksums
1fd162196cd5d447539cbeb2cadd0899f8f5e379be0e4233844ec7cea0cdbdda
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 Nov 17, 2026.

Transparency log

Release files / acid_cat_catalog-0.3.0-py3-none-any.whl

Download URL acid_cat_catalog-0.3.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97b3d5e588708202476a378e7e2f64d5a38915f1cebbfd3f0d3832b92410a5e4
BLAKE2b-256 checksum
How to use checksums
9a30fd713554854f882f02787b364cb10160434d1fb972eebb222b12973c7b65
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 Nov 17, 2026.

Transparency log

Security for acid-cat-catalog 0.3.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 acid_cat_catalog-0.3.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 Nov 17, 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