mosvera
Python runtime for the language-neutral Mosvera specification.
The Python runtime loads local aesthetic registries, resolves named
aesthetics from composition documents, validates Mosvera schemas, applies
merge and inheritance semantics, and compiles neutral design tokens. It
mirrors the @mosvera/runtime TypeScript/JavaScript package against the
shared conformance suite.
pip install mosvera
New users should start with the
10-minute quickstart,
which includes a Python runtime smoke after the Claude Desktop and MCP paths.
The package is published on PyPI as the Python peer runtime for the language-neutral Mosvera spec.
Basic Use
Load a registry, resolve a named aesthetic, and compile CSS variables:
from mosvera import (
compile_design_tokens,
compose_strategies,
derive_strategies,
load_project,
resolve_aesthetic,
to_css_variables,
)
project = load_project("./my-aesthetic-system")
strategies = compose_strategies(derive_strategies(), project.strategies)
canonical = resolve_aesthetic("executive-editorial", project.registry, strategies)
tokens = compile_design_tokens(canonical)
css_variables = to_css_variables(tokens)
Save a new composition document into a local registry:
from mosvera import create_composition, save_project_document
composition = create_composition(
"executive-editorial",
"base_t",
modifiers=["executive", "editorial"],
overrides={"voice": {"headline": "Board-ready and concise."}},
)
save_project_document("./my-aesthetic-system", "composition", composition)
Exchange a named aesthetic as a portable pack:
from mosvera import export_aesthetic_pack, import_aesthetic_pack
pack = export_aesthetic_pack("executive-editorial", project.registry)
imported = import_aesthetic_pack(project.registry, pack)
print(imported["plan"]["installed_entrypoint"]["id"])
The runtime does not generate decks, HTML reports, images, or provider calls. It supplies the structured aesthetic model that other tools can apply.
Status
Phase 6G complete. The runtime passes the same 25 conformance vectors as
@mosvera/runtime; the full Python suite currently covers parser,
validator, registry, pack, resolution, token, project persistence, and smoke
paths.
License
Code is Apache-2.0.
Metadata
Release files for mosvera 0.1.3
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 |
|---|---|---|---|---|
| mosvera-0.1.3.tar.gz | 28.1 kB | With provenance | Details for mosvera-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mosvera-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for mosvera-0.1.3-py3-none-any.whl |
Total release size: 61.9 kB
Release files / mosvera-0.1.3.tar.gz
| Download URL | mosvera-0.1.3.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bafbe103a8a697db06ad56472b27bfe3c13130f2af5c19200b7170278c5ed9a
|
|
BLAKE2b-256 checksum How to use checksums |
684752661d85d90561790ee1131f6608b11f6223d2f8b9788d7ca64eb52ce555
|
| 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 Oct 27, 2026.
Transparency logRelease files / mosvera-0.1.3-py3-none-any.whl
| Download URL | mosvera-0.1.3-py3-none-any.whl |
|---|---|
| Size | 33.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a09ba6d780aaa65f16b736831f85960860731c55aa40e8f45b40691042258139
|
|
BLAKE2b-256 checksum How to use checksums |
9a4339ae271184f36ca91374a5c33afda535c7a6429d21b118f20843f0da845a
|
| 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 Oct 27, 2026.
Transparency logSecurity for mosvera 0.1.3
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 mosvera-0.1.3.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 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.