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.1
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 |
|---|---|---|---|---|
| capacium_models-1.1.1.tar.gz | 19.6 kB | With provenance | Details for capacium_models-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| capacium_models-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for capacium_models-1.1.1-py3-none-any.whl |
Total release size: 33.3 kB
Release files / capacium_models-1.1.1.tar.gz
| Download URL | capacium_models-1.1.1.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40413dd07fd1d4900b1a66d525cde98c60040860387276c270a159492ceaae80
|
|
BLAKE2b-256 checksum How to use checksums |
6eed7aa8e0a7b0676867de74e2d1b8a9492e7730116a198ca3e3693618fb447c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 18, 2026.
Transparency logRelease files / capacium_models-1.1.1-py3-none-any.whl
| Download URL | capacium_models-1.1.1-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6431fdb12c804f3cf524cd05a219770d41a84766548700fae83117fc1aadc33
|
|
BLAKE2b-256 checksum How to use checksums |
ec6383be8359bf3c311430065d8aee4e76d125ac11af754efea402e15f88e67e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 18, 2026.
Transparency logSecurity for capacium-models 1.1.1
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 capacium_models-1.1.1.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 18, 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.