Skip to main content

Prefect integration with OpenMetadata

Project description

prefect-openmetadata

Welcome!

Using Prefect and OpenMetadata together will help you build and maintain a data platform you can trust.

Prefect allows you to orchestrate your data workflows and provides visibility into the health of your workflow execution and workflow lineage. With OpenMetadata integration, you can enrich your orchestration system with metadata about data lineage, data catalog, data quality and governance, giving you a single pane of glass about the health of your system.

Getting Started

Python setup

Requires an installation of Python 3.8+.

We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.

This prefect-openmetadata package is designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the documentation.

Installation

Install prefect-openmetadata with pip:

pip install prefect-openmetadata

Install OpenMetadata and Prefect 2.0

Head over to the install OpenMetadata page for detailed instructions on how to install and configure both platforms.

Write and run metadata ingestion flow

from prefect_openmetadata.flows import ingest_metadata

json_config = """See an example in the section: Run ingestion flow"""

if __name__ == "__main__":
    ingest_metadata(json_config)

For more details, check the run ingestion flow section.

Schedule a metadata ingestion flow

Simple example:

DeploymentSpec(
    name="openmetadata-dev",
    flow=ingest_metadata,
    schedule=IntervalSchedule(interval=timedelta(minutes=15)),
)

For more details, check the schedule ingestion flow section.

Resources

If you encounter any bugs while using prefect-openmetadata, feel free to open an issue in the prefect-openmetadata repository.

If you have any questions or issues while using prefect-openmetadata, you can find help in either the Prefect Discourse forum or the Prefect Slack community.

Development

If you'd like to install a version of prefect-openmetadata for development, clone the repository and perform an editable install with pip:

git clone https://github.com/PrefectHQ/prefect-openmetadata.git

cd prefect-openmetadata/

pip install -e ".[dev]"

# Install linting pre-commit hooks
pre-commit install

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prefect-openmetadata-0.1.1.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prefect_openmetadata-0.1.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file prefect-openmetadata-0.1.1.tar.gz.

File metadata

  • Download URL: prefect-openmetadata-0.1.1.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for prefect-openmetadata-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0fff86c7c13ba36be7a6c0bc5c13b537079cea0f2a0a2ba08976387c993a1625
MD5 252f6f2b10540b3da462474d5aed32b5
BLAKE2b-256 cb8479f8cb5ebcea9498a232ce0605737a4c2fa362f0024fd4ee323c6e06b3ec

See more details on using hashes here.

File details

Details for the file prefect_openmetadata-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for prefect_openmetadata-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7ad8e1dbe8ee4045883f0ef80bb3a032e933562784c70771797d3bc8984bc4
MD5 35c9b23e4f5040eab0bb11039b65c96f
BLAKE2b-256 efa8b2ac5609ed28bf7a3dce55faee32be0e0e8d178978fd1778a837b9ab4d5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page