Skip to main content

Python runtime for Mosvera: load aesthetic registries, resolve named compositions, compile neutral tokens, validate schemas, and apply merge/compile semantics.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mosvera-0.1.2.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosvera-0.1.2-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file mosvera-0.1.2.tar.gz.

File metadata

  • Download URL: mosvera-0.1.2.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mosvera-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6f6e3d330282d65feb1dc9523f2c8e36c7cb10424e993ffddd81d8da5afb5cff
MD5 7f73c4b20b7376dee3f25bd85cb1d31c
BLAKE2b-256 91c07d397f427652ebcd190d3a03ccca77b863b96dbdfcac372f765afc670d1d

See more details on using hashes here.

File details

Details for the file mosvera-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mosvera-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for mosvera-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 43c3ddaa1fedad56466b0ee2d76d2b83811f9374157e6f73306032baa8eed6c1
MD5 e8fe244a6197896764722966896a574b
BLAKE2b-256 37813463509a628400d9b0773758e4c07e744a571e421a9944caa342f5f05e12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page