schematools.utils module
- schematools.utils.dataset_schema_from_path(dataset_path: Path | str) types.DatasetSchema
Read a dataset schema from the filesystem.
- Parameters
dataset_path – Filesystem path to the dataset.
- schematools.utils.dataset_schema_from_url(schemas_url: URL | str, dataset_name: str, prefetch_related: bool = False) types.DatasetSchema
Fetch a dataset schema from a remote file.
- schematools.utils.dataset_schemas_from_schemas_path(root: Path | str) dict[str, types.DatasetSchema]
Read all dataset schemas from a directory tree.
- Parameters
root – Path of a directory containing dataset schemas in subdirs.
- schematools.utils.dataset_schemas_from_url(schemas_url: URL | str, dataset_name: str | None = None, prefetch_related: bool = False) dict[str, types.DatasetSchema]