euromod_linking.resources

Access to the package’s shipped data files (JSON Schemas, mapping specs).

Uses importlib.resources rather than Path(__file__).parent so the package keeps working when installed as a zipped wheel or bundled — a plain filesystem path is only valid for an unpacked install.

Attributes

Functions

load_mapping_text(→ str | None)

Raw YAML of a shipped mapping spec, or None when absent.

load_schema(→ dict)

A JSON Schema shipped under schemas/.

mapping_names(→ list[str])

Names (stems) of the shipped mapping specs, sorted.

Module Contents

euromod_linking.resources.load_mapping_text(name: str) str | None[source]

Raw YAML of a shipped mapping spec, or None when absent.

euromod_linking.resources.load_schema(name: str) dict[source]

A JSON Schema shipped under schemas/.

euromod_linking.resources.mapping_names() list[str][source]

Names (stems) of the shipped mapping specs, sorted.

euromod_linking.resources.PACKAGE = 'euromod_linking'