euromod_linking.resources ========================= .. py:module:: euromod_linking.resources .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: euromod_linking.resources.PACKAGE Functions --------- .. autoapisummary:: euromod_linking.resources.load_mapping_text euromod_linking.resources.load_schema euromod_linking.resources.mapping_names Module Contents --------------- .. py:function:: load_mapping_text(name: str) -> str | None Raw YAML of a shipped mapping spec, or None when absent. .. py:function:: load_schema(name: str) -> dict A JSON Schema shipped under ``schemas/``. .. py:function:: mapping_names() -> list[str] Names (stems) of the shipped mapping specs, sorted. .. py:data:: PACKAGE :value: 'euromod_linking'