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 not published yet. Until the first coordinated JS/Python release, install from a local checkout.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mosvera-0.1.0.tar.gz
  • Upload date:
  • Size: 23.4 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.0.tar.gz
Algorithm Hash digest
SHA256 e144464f2faa2a0a24efc0441720b2b82d98ecd12fc873dd8bc890ef74263563
MD5 a83fa312bf37a5cf95ecfd5f482f1cd9
BLAKE2b-256 63ee4a51d382f480e8fdc9d8cb1084bd25e270659d4318d40e3bd2339a7d4523

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mosvera-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d593060fe3efd64d7d9d300e8353b5bae087d844529948f1020f26fc170c5a6a
MD5 59ff31b00094820af6d2ee4954c12075
BLAKE2b-256 fe3dfd76a3627938fa671ae554d84e9462d0438708755ae2ff7ee5bac6b097fc

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