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.1.tar.gz (23.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.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mosvera-0.1.1.tar.gz
  • Upload date:
  • Size: 23.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.1.tar.gz
Algorithm Hash digest
SHA256 cd90954589b077799b0617852f3311d432c6ba2e959803110ff4bf0b4557fa8b
MD5 4cf3b8bf69135117c8c04245c7f032b0
BLAKE2b-256 a5f9e7d0c3bf7d3857f3307d192ab6eddba6572582504207e02a9cece1ede577

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mosvera-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 27.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4cc956ac95d2b940daae07735824da85ef3bc1485dda9364633b6ec6575a8ca8
MD5 543643b8d409dcce90d12d9caef7919c
BLAKE2b-256 933076307cb7be7f7986b2ed4494d0ee05ce8de8188c957bf95653e5f446cbeb

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