Skip to main content

datafold-sdk

An SDK library for the datafold application.

Installation

First, create your virtual environment for python:

> python3 -m venv venv
> source venv/bin/activate
> pip install --upgrade pip setuptools wheel

Now, you're ready to install the datafold SDK:

> pip install datafold-sdk

Datafold CLI

The datafold CLI is a utility that automates and simplifies certain tasks. Help for using this utility is available in the utility itself:

> datafold --help

Preliminary Datafold SDK

The Datafold SDK are python functions and classes that allow you to integrate these CLI functions directly in your application source code.

In the future, the SDK will contain a more type-safe and integrated "API" client library, which further facilitates integration with the datafold app server.

The only function currently implemented is the submit_artifacts function to upload the dbt run artifacts to the app server:

import os

from datafold.sdk.dbt import submit_artifacts

host = os.environ.get("DATAFOLD_HOST")
api_key = os.environ.get('DATAFOLD_APIKEY')

submit_artifacts(host=host,
                 api_key=api_key,
                 ci_config_id=1,
                 run_type='pull_request',
                 target_folder='<abs-path-to-dbt-target-folder>',
                 commit_sha='abcdef1234567890')

Metadata

Release files for datafold-xdiff 0.0.1

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

Built distribution (wheel)

Table of built distributions (wheels) for datafold-xdiff 0.0.1
File Interpreter ABI Platform
datafold_xdiff-0.0.1-py3-none-any.whl Python 3 none any Details

Release files / datafold_xdiff-0.0.1-py3-none-any.whl

Download URL datafold_xdiff-0.0.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0e4d458c37bad9413ac5ab6504c1efa127e14a0fbacb1fb5741e776c0db2f01
BLAKE2b-256 checksum
How to use checksums
e08f5648115ab4b6896573137719ce4cfa5b83929f3ffccaa39be2df31a981dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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