capacium-models
Shared domain models for the Capacium ecosystem. Used by capacium-exchange and capacium-crawler.
Installation
pip install capacium-models
Models
| Model | Description |
|---|---|
TrustState |
Enum: DISCOVERED → PENDING_REVIEW → VERIFIED → SIGNED → DEPRECATED |
TrustMachine |
State machine with VALID_TRANSITIONS, can_transition(), transition() |
Listing |
Full listing model (24 fields, auto-UUID, auto-timestamps) |
Publisher |
Publisher profile with verification support |
MCPClient |
Enum of supported MCP clients |
MCPMetadata |
MCP-specific metadata (transport, runtime, auth_model, etc.) |
Category / Subcategory / TagCount |
Taxonomy models |
Collection |
Curated collection of listing IDs |
ClaimRequest / VerificationRecord |
Trust workflow models |
SearchQuery |
Faceted search query model (16 fields) |
ExchangeSearch |
Faceted search SQL engine |
The package-level TRUST_BADGES and get_trust_badge() exports retain the
rich badge metadata introduced in v0.4.0. UI-facing canonical text labels,
including the string-only trust labels, live in capacium_models.labels.
Usage
from capacium_models import Listing, TrustState, TrustMachine
# Create a discovered listing
listing = Listing(
canonical_name="org/my-mcp-server",
package_type="mcp-server",
canonical_source_url="https://github.com/org/my-mcp-server",
short_description="A cool MCP server",
trust_state=TrustState.DISCOVERED,
)
# Transition through trust states
machine = TrustMachine()
if machine.can_transition(listing.trust_state, TrustState.PENDING_REVIEW):
listing = machine.transition(
listing,
TrustState.PENDING_REVIEW,
"Validated metadata",
)
Dependencies
Zero runtime dependencies — stdlib only (dataclasses, enum, uuid, datetime, json, typing).
License
MIT
Development
Canonical repository: self-hosted Forgejo — git.langevc.com/capacium/capacium-models
(git clone git@git.langevc.com:capacium/capacium-models.git). Develop against the Forgejo
clone and open pull requests there. The GitHub copy is a read-only mirror.
Metadata
Release files for capacium-models 1.1.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 | |
|---|---|---|---|
| capacium_models-1.1.0.tar.gz | 19.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| capacium_models-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.3 kB
Release files / capacium_models-1.1.0.tar.gz
| Download URL | capacium_models-1.1.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae48ff611a18e14aeec0edbad0d4c76ad0ad6194c767e1e0f095bd41174b6e39
|
|
BLAKE2b-256 checksum How to use checksums |
c54c977d365ec36666d96105c634c0503fc47d756d6f724c1c7be686a3e89679
|
| 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 7, 2026.
Transparency logRelease files / capacium_models-1.1.0-py3-none-any.whl
| Download URL | capacium_models-1.1.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d88c2280dfe214fa320d578463b5ea4fd515ba097ec1bbe336be94c9f886c6b
|
|
BLAKE2b-256 checksum How to use checksums |
438e7d573701fd5ad43cbb5d1eda37e14395950e4d51e36a62df917bcd869c25
|
| 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 7, 2026.
Transparency log