The valence-domains package exposes registry queries, mesh metadata, deterministic identity helpers, proposal contracts, and validation utilities.
Install
Install the base package:
pip install valence-domainsTo load mesh bytes from the HuggingFace dataset, install with the [hf] extra:
pip install 'valence-domains[hf]'The [hf] extra enables Mesh.load() to download mesh bytes from the HuggingFace dataset.
Common imports
from valence_domains import find_domains, find_meshes, get_mesh, test_meshestest_meshes returns Mesh instances marked for testing (test_case=True), useful for wiring test fixtures into downstream libraries.
Typical flow
- Find domains or meshes from the bundled manifest.
- Resolve a mesh by composite id such as `WNAT/hagen@v1`.
- Load mesh bytes on demand when the
[hf]extra is installed. - Use proposal and scope APIs for deterministic review workflows.