Skip to main content

datahub-yaml-source

CI PyPI Python versions License: Apache 2.0

A standalone DataHub ingestion source plugin that reads a directory tree of declarative YAML "metadata as code" files and emits the DataHub entities they describe (platforms, tags, glossary, domains, containers, datasets with schema/lineage, data products, pipelines, pipeline run history, and data quality assertions).

See docs/sources/yaml/yaml.md for a narrative introduction, docs/sources/yaml/reference.md for a generated field-by-field reference of every kind, and docs/sources/yaml/yaml_recipe.yml for an example recipe. See _PLANNING.md for the architecture decisions behind this connector.

A JSON Schema for the document format (autocomplete/validation in VS Code, IntelliJ, ...) is also generated from the Pydantic models -- see the "Editor autocomplete and validation" section in yaml.md.

Both reference.md and the JSON Schema are generated from src/datahub_yaml_source/models.py; regenerate them after changing a model:

python scripts/generate_json_schema.py
python scripts/generate_markdown_docs.py

Installation

pip install -e .

This registers the yaml source type with acryl-datahub via a datahub.ingestion.source.plugins entry point. Verify it's picked up with:

datahub check plugins

Usage

datahub ingest -c docs/sources/yaml/yaml_recipe.yml

Development

pip install -e ".[dev]"
pytest tests/unit                 # unit tests
pytest tests/integration          # integration test against a curated fixture,
                                   # golden-file checked

To regenerate the integration golden file after an intentional output change:

pytest tests/integration/yaml_source/test_yaml_source_golden.py --update-golden-files

Metadata

Release files for datahub-yaml-source 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datahub-yaml-source 0.1.0
File Size Uploaded
datahub_yaml_source-0.1.0.tar.gz 67.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datahub-yaml-source 0.1.0
File Interpreter ABI Platform
datahub_yaml_source-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 143.8 kB

Release files / datahub_yaml_source-0.1.0.tar.gz

Download URL datahub_yaml_source-0.1.0.tar.gz
Size 67.6 kB
Tags Source
SHA-256 checksum
How to use checksums
80d14c79a9e73375587f1624a8146c7fd19b5462020586b800e49e6ac2b5669d
BLAKE2b-256 checksum
How to use checksums
caef9aabfe04e19ef6a62ecfcab53cfb5485ff25ea75b56d9b4dcd752d2da626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release files / datahub_yaml_source-0.1.0-py3-none-any.whl

Download URL datahub_yaml_source-0.1.0-py3-none-any.whl
Size 76.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23a53b5815e96a2492b92b84b8bf1fbcd9617387ffdb3cc96c2bb1fcc1db3786
BLAKE2b-256 checksum
How to use checksums
6e4be5898ddbb344bde845e739894533000430602180b5b98b473f2d4477c78a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page