Generic-delimited ingestion¶
Reading long- and wide-format CSV/TSV via a manifest. See Generic delimited and Manifest version 1.
The manifest¶
GenericManifest
¶
Bases: _Base
The top-level manifest model.
load_manifest
¶
Load and validate a manifest from a JSON or YAML file.
Raises:
| Type | Description |
|---|---|
ManifestError
|
if the file is missing, unparseable, or fails schema validation. |
Source code in src/openauc/formats/manifest.py
Parser registry¶
get_parser
¶
Return the parser registered under format_id.
Raises:
| Type | Description |
|---|---|
UnsupportedFormatError
|
if no parser is registered under that id. |
Source code in src/openauc/formats/registry.py
registered_ids
¶
FormatInfo
dataclass
¶
FormatInfo(
format_id: str,
name: str,
suffixes: tuple[str, ...],
layouts: tuple[str, ...],
limitations: tuple[str, ...],
doc_reference: str,
)
Public description of a registered parser (for available_formats).
Extending¶
A first-party parser subclasses Parser and registers itself. See
Parser detection and ADR-0004.
Parser
¶
Bases: ABC
Abstract base class for a format parser plugin.
Concrete subclasses set the class attributes below and implement
:meth:detect and :meth:parse.