Skip to main content

datahub-yaml-source

CI codecov 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:

uv run python scripts/generate_json_schema.py
uv run 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

Supported DataHub server versions: the acryl-datahub range in pyproject.toml is authoritative, compared per server minor (today: DataHub 1.7.x). See Supported DataHub versions for what happens against a server outside that range.

Usage

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

Development

Managed with uv:

uv sync --group dev --extra git --extra s3
uv run pytest tests/unit          # unit tests
uv run pytest tests/integration   # integration test against a curated fixture,
                                   # golden-file checked

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

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

Metadata

Release files for datahub-yaml-source 0.4.2

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.4.2
File Size Uploaded Provenance Actions
datahub_yaml_source-0.4.2.tar.gz 301.3 kB With provenance Details for datahub_yaml_source-0.4.2.tar.gz

Built distribution (wheel)

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

Total release size: 384.7 kB

Release files / datahub_yaml_source-0.4.2.tar.gz

Download URL datahub_yaml_source-0.4.2.tar.gz
Size 301.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9a39bcec0ebbe97af55205f3f625de957e4602eb7c466400025c297006049d35
BLAKE2b-256 checksum
How to use checksums
7d44291296b8a94230389be92e1e5fcafb714786f81af17c9e4d7b03adb531c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

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

Download URL datahub_yaml_source-0.4.2-py3-none-any.whl
Size 83.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a922d2b19c5a9d01d3710fc6c7d5bbe3a2ab8cfa3805d67e5ef4a131b84222b2
BLAKE2b-256 checksum
How to use checksums
cd97b2f69ff2dc39debd9e392faa81330e007b9dfd2d5e91684aca1a0a577dae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Security for datahub-yaml-source 0.4.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for datahub_yaml_source-0.4.2.tar.gz

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 Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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