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. A test also compares examples/aircon.py with the air-conditioner catalog of the repository. 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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| acid_cat_catalog-0.2.0.tar.gz | 5.9 kB | With provenance | Details for acid_cat_catalog-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acid_cat_catalog-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for acid_cat_catalog-0.2.0-py3-none-any.whl |
Total release size: 12.8 kB
Release files / acid_cat_catalog-0.2.0.tar.gz
| Download URL | acid_cat_catalog-0.2.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b204fc97a8b462b2c2cd3fc12e6416a33c9377b687b160388b16a84ccf8d41ac
|
|
BLAKE2b-256 checksum How to use checksums |
8b2ec3a873b1bcfe6ed0e2311f303af0aebf60a42345b4b1da212ef6683c5b2e
|
| 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 10, 2026.
Transparency logRelease files / acid_cat_catalog-0.2.0-py3-none-any.whl
| Download URL | acid_cat_catalog-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d115e3cefc586e926e429d0778111f4f99c6fd8b669498a1a18496a802fa4bb4
|
|
BLAKE2b-256 checksum How to use checksums |
1ac9435ace12bb99fe96d42412361ff7129bd263ff801beaa920b1d49539b2c7
|
| 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 10, 2026.
Transparency logSecurity for acid-cat-catalog 0.2.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.
Attestation for acid_cat_catalog-0.2.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 10, 2026.
Transparency logA 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.