pyxsd.integrations.projection ============================= .. py:module:: pyxsd.integrations.projection .. autoapi-nested-parse:: Dependency-free specifications for named contextual scalar columns. Classes ------- .. autoapisummary:: pyxsd.integrations.projection.FieldSource Functions --------- .. autoapisummary:: pyxsd.integrations.projection.field_source_metadata Module Contents --------------- .. py:class:: FieldSource Select a scalar or attribute by expanded XML names, relative to a row. .. py:attribute:: scope :type: Literal['record', 'ancestor', 'root'] :value: 'record' .. py:attribute:: path :type: tuple[str, ...] :value: () .. py:attribute:: attribute :type: str | None :value: None .. py:attribute:: levels :type: int :value: 0 .. py:attribute:: datatype :type: tuple[str, str] | None :value: None .. py:attribute:: candidate_id :type: str | None :value: None .. py:function:: field_source_metadata(source) Serialize one source without adding unset RELAX NG selectors. The leading key order matches the historical ``dataclasses.asdict`` output, so existing XSD ``pyxsd:source`` metadata stays byte-compatible.