Skip to main content

Tree Schema Python Client

Version:

1.0.8

Documentation:

https://developer.treeschema.com/python-client

Download:

https://pypi.org/project/treeschema

Source:

https://github.com/tree-schema/tree-schema-python

Keywords:

data lineage, metadata

Your ETL/ELT processes are diverse, your pipelines are serverless - the Tree Schema Python client aims to provide you the flexibility to integrate into any ecosystem!

What You Can Do

The Tree Schema library is a simple interface that enables data creators and data users to manage their Tree Schema Data Catalog as code. The Tree Schema library enables you to:

  • Manage data lineage as code

  • Capture the values of your fields and their definitions

  • Explore your catalog in the same notebook as your data analysis

Here are a few quick snippets:

Manage Your Data Lineage as Code

# Import Tree Schema
from treeschema import TreeSchema
ts = TreeSchema('<your email>', '<your secret key>')

# Define the source and target fields
src_field = ts.data_store('Kafka Cluster').schema('dvc.user:v1').field('user_id')
tgt_field = ts.data_store('Kafka Cluster ').schema('usr.clickstream:v1').field('user_id')
link = (src_field, tgt_field)

# Select your transformation
t = ts.transformation('Kafka Pub-Sub')

# Create the data lineage
t.create_links(link)

The complexity of your transformation is only limited by your own imagination. Data lineage can be explored within the Tree Schema GUI once created, a slightly more complex example may look like:

./docs/imgs/links_example.png

Create Definitions for Field Values

# Import Tree Schema
from treeschema import TreeSchema
ts = TreeSchema('<your email>', '<your secret key>')

# Select the field to add sample values to
src_field = ts.data_store('Kafka Cluster').schema('dvc.user:v1').field('user_status')

# Define the value and it's definition
sample_value = {
   'field_value': '02',
   'description': 'User has converted from lead to customer'
}
field.field_value(sample_value)

How to Get Started

Make sure you sign up for Tree Schema - it’s completely free to sign up with no card required - and follow the instructions for how to get your secret key .

Check out all of the Examples in the documentation to see all of the library features and to explore more in-depth and complex use-cases.

Have Questions or Need Help?

Shoot an email to developer@treeschema.com to get help integrating Tree Schema.

Metadata

Release files for treeschema 1.0.8

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

Source distribution (sdist)

Source distribution for treeschema 1.0.8
File Size Uploaded Provenance Actions
treeschema-1.0.8.tar.gz 35.1 kB Without provenance Details for treeschema-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for treeschema 1.0.8
File Interpreter ABI Platform Actions
treeschema-1.0.8-py3-none-any.whl Python 3 none any Details for treeschema-1.0.8-py3-none-any.whl

Total release size: 85.4 kB

Release files / treeschema-1.0.8.tar.gz

Download URL treeschema-1.0.8.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29f0224eafae5316abf68385749c8e3379d184110cc0a7fd739710952e61da55
BLAKE2b-256 checksum
How to use checksums
814392ac4e20272a961d8b08bbcf3cacdb97bb131b65af98cd1f9743388e4ec6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.7

Release files / treeschema-1.0.8-py3-none-any.whl

Download URL treeschema-1.0.8-py3-none-any.whl
Size 50.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6259f80272ec4a88451beec65a25e1a99043f4eb3421b55c333c0d3126067acc
BLAKE2b-256 checksum
How to use checksums
d705402c93e0fd57d0b41132391f5437e392eb02e3499a1d2d1bd7bd1db5f43c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.7.7

Security for treeschema 1.0.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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