Data lineage API for Python scripts
Project description
aiSSEMBLE™ Foundation Data Lineage Python
This module serves as a generic wrapper for data lineage types, objects, and functions. While it is designed to be leveraged through the aiSSEMBLE™ ecosystem, it is not dependent on aiSSEMBLE for execution. It is intentionally designed for portability.
This Readme is intended to provide technical insight into the implementation of this package. For consumption guidance, please refer to the aiSSEMBLE Github Pages
Core Functionality
This module presently provides three main capabilities:
- Generic types to represent Data Lineage metadata
- Convenience methods for emitting Data Lineage through various mediums
- Conversion functions to transform the generic types to and from popular Data Lineage formats.
Through these capabilities, this module fulfills the need for an easy-to-use, implementation-agnostic Data Lineage interface.
Developer Guidance
- This module should display little to no dependence on any other aiSSEMBLE module. It is intentionally generic.
- Any changes to method or function signatures must be reflected in any relevant template code within
foundation-mda
. - Any change or addition in functionality must be accompanied by associated automated tests.
- As we are serving as an interface to third party libraries and services, any input parameters must be exhaustively validated.
Use Custom Microprofile config properties
By default, foundation-data-lineage uses the below microprofile-config.properties for the messaging service configurations
kafka.bootstrap.servers=kafka-cluster:9093
mp.messaging.outgoing.lineage-event-out.cloud-events=false
mp.messaging.outgoing.lineage-event-out.connector=smallrye-kafka
mp.messaging.outgoing.lineage-event-out.topic=lineage-event-out
mp.messaging.outgoing.lineage-event-out.key.serializer=org.apache.kafka.common.serialization.StringSerializer
mp.messaging.outgoing.lineage-event-out.value.serializer=org.apache.kafka.common.serialization.StringSerializer
You can also use your own microprofile-config.properties file. To do that, you must provide your own property path to the code:
- Set the path of the microprofile-config.properties on your file system
# specify the new microprofile-config properties path
self.emitter.set_messaging_properties_path(string_path_to_the_property_file)
- Set the new emitter topic
add below property to the data-lineage.properties file of the appropriate docker image (e.g. spark-worker)
data.lineage.emission.topic=replace-with-your-topic
- (Optional) If you are using the v1 kafka-cluster helm chart, add the new topic to kafka-cluster values.yaml file; e.g.: add
replace-with-your-topic:1:1
to the KAFKA_CREATE_TOPICS environment variable in the-deploy/src/main/resources/apps/kafka-cluster/values.yaml
NOTE:
There is a known issue with the confluent-kafka dependency that is brought in by the openlineage-client library that prevents it from installing this requirement on some arm64 environments. The problem is that librdkafka does not provide a wheel for all operating systems in the arm64 architecture, requiring that it be built from source in order for confluent-kafka to be installed. If you run into this problem, you can install it from source using the below commands:
- apt-get update
- apt install -y python3-dev git
- git clone https://github.com/confluentinc/librdkafka.git
- cd librdkafka
- ./configure --arch=aarch64
- make
- make install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aissemble_foundation_data_lineage_python-1.9.3.tar.gz
.
File metadata
- Download URL: aissemble_foundation_data_lineage_python-1.9.3.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/5.14.0-427.40.1.el9_4.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82ca29e22aa687d1dac91373f7e7d93addb2cfcfd368a45d0c0dff666586283b |
|
MD5 | f81844ac465348672a9137468ca85dab |
|
BLAKE2b-256 | 3288584983007612be86c017e27404648752f5fcf5a7a22099834b7ae378c273 |
File details
Details for the file aissemble_foundation_data_lineage_python-1.9.3-py3-none-any.whl
.
File metadata
- Download URL: aissemble_foundation_data_lineage_python-1.9.3-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/5.14.0-427.40.1.el9_4.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4648c4c5f305dd0c860e21294327ba32a0d33f8b6d4a2d9d9272fcda6c27b9c6 |
|
MD5 | 469968668e96e7af6639d3c629588a3f |
|
BLAKE2b-256 | 2640779e3487c9d175161b765eed06b004e76d39cad0eca11f8642ff7a4b35d8 |