Skip to main content

mosvera

Python runtime for the language-neutral Mosvera specification.

The Python runtime loads aesthetic registries, resolves named compositions, 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

The package is published on PyPI as the Python peer runtime for the language-neutral Mosvera spec.

Basic Use

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)

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 6E parity runtime. It is expected to pass the same 25 conformance vectors as @mosvera/runtime.

License

Code is Apache-2.0.

Metadata

Release files for mosvera 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mosvera 0.1.2
File Size Uploaded
mosvera-0.1.2.tar.gz 27.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mosvera 0.1.2
File Interpreter ABI Platform
mosvera-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 60.5 kB

Release files / mosvera-0.1.2.tar.gz

Download URL mosvera-0.1.2.tar.gz
Size 27.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6f6e3d330282d65feb1dc9523f2c8e36c7cb10424e993ffddd81d8da5afb5cff
BLAKE2b-256 checksum
How to use checksums
91c07d397f427652ebcd190d3a03ccca77b863b96dbdfcac372f765afc670d1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / mosvera-0.1.2-py3-none-any.whl

Download URL mosvera-0.1.2-py3-none-any.whl
Size 33.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43c3ddaa1fedad56466b0ee2d76d2b83811f9374157e6f73306032baa8eed6c1
BLAKE2b-256 checksum
How to use checksums
37813463509a628400d9b0773758e4c07e744a571e421a9944caa342f5f05e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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