Skip to main content

[![Anaconda-Server Badge](https://anaconda.org/octo/pyddapi/badges/installer/conda.svg)](https://conda.anaconda.org/octo) [![Anaconda-Server Badge](https://anaconda.org/octo/pyddapi/badges/platforms.svg)](https://anaconda.org/octo/pyddapi) [![Anaconda-Server Badge](https://anaconda.org/octo/pyddapi/badges/latest_release_date.svg)](https://anaconda.org/octo/pyddapi) [![Anaconda-Server Badge](https://anaconda.org/octo/pyddapi/badges/version.svg)](https://anaconda.org/octo/pyddapi)

# DDAPI introduction - [What is it](#what-is-it) - [Install](#install) - [Contributing](#contributing)

## What is it?

The following section describes the main concepts used in the Data Driver environment.

### Workflow A Data Driver workflow is a network of tasks (python function) linked together. This workflow is typically described as a DAG (Direct Acyclic Graph). The jobs can execute all kind of Python code like data loading, feature engineering, model fitting, alerting, etc.

A workflow can be scheduled and monitored in the Data Driver architecture with the tool Airflow. The Data Driver API adds data science capabilities to Airflow and the capacity to audit the input / output of each task.

### Data Driver API or ddapi

ddapi is a Python library. It is the access layer to Data Driver and you can use it to manipulated datasets and workflows. Some main usages are described below, for more informations and tutorials you can access to the OCTO notebook tutorials repository.

`python import dd `

Ddapi is composed of several modules.

#### DB module

import dd.db

DB is an easier way to interact with your databases. You can use it to explore your databases or import new data.

#### Context module

from dd.api.contexts.distributed import AirflowContext from dd.api.contexts.local import LocalContext

The context is an object which will allow you to communicate with your environment during your exploration. As such, it needs to be able to communicate with your database. This is done by creating a DB object and passing it to the context constructor.

#### Dataset module

import dd.api.workflow.dataset

You may consider datasets as wrappers around Pandas DataFrames. It gives you access to some methods you may recognise if you are familiar with this awesome library.

### Disclaimer

#### It does not / it is not for :

  • Code versionning

  • Enforce good code quality

  • Data quality tool

  • ETL

  • Data Catalog & Data Lineage

  • Data visualisation

  • Datalake

  • Magical stuffs

  • Coffee

#### It is a set of tools unified into a unique platform to accelerate data science :

  • we have made an API that lets DataScientists use the same technologies they use in exploration to do industrialisation, because we saw it was the most impactfull parameter on the success of the project. (DDAPI)

  • monitore Machine Learning models (your code + DDAPI + Airflow)

  • schedule builds of datascience’s pipeline (your code + DDAPI + Airflow)

  • datascience feature engineering functions (your code + BDACore)

  • metrics and datascience helpers to study model shifting (BDACore)

  • integration of open source standards Jupyterhub, Airflow and PostgreSQL together (Lab and Factory machine roles)

## Install

last release

pip install pyddapi

last build from master

pip install -i https://pypi.anaconda.org/octo/label/dev/simple pyddapi

### Developer setup

#### Setup your virtual env

virtualenv venv source venv/bin/activate pip install -e . pip install -r ci/tests_requirements.txt

_ddapi_ only supports python versions 2.7 and 3.6/ Running _ddapi_ with other versions is not advised, so avoid it if possible, or do it at your own risk.

You can find the package in [anaconda cloud repository](https://anaconda.org/octo/pyddapi)

## Contributing In case you want to contribute to the code, do not forget to check our [Developer Guidelines](DEVGUIDE.md)

Metadata

Release files for pyddapi 3.0.3

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

Source distribution (sdist)

Source distribution for pyddapi 3.0.3
File Size Uploaded Provenance Actions
pyddapi-3.0.3.tar.gz 54.1 kB Without provenance Details for pyddapi-3.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyddapi 3.0.3
File Interpreter ABI Platform Actions
pyddapi-3.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for pyddapi-3.0.3-py2.py3-none-any.whl

Total release size: 128.3 kB

Release files / pyddapi-3.0.3.tar.gz

Download URL pyddapi-3.0.3.tar.gz
Size 54.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e8ea4ffe95719d9bbe16ecd8478b7d2514c22933c537ea85d5395db03f0455cd
BLAKE2b-256 checksum
How to use checksums
ee424429ea6261179b25ab291599ee7f71c217b123a9ac72ffee357fbb061d55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / pyddapi-3.0.3-py2.py3-none-any.whl

Download URL pyddapi-3.0.3-py2.py3-none-any.whl
Size 74.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9fccebb962407d5ab5d81afcc500049568e478939a3d82d10b2eaac6953a1426
BLAKE2b-256 checksum
How to use checksums
7b3872851a1968ea4da4483905c84673b246b5f8118be97f8c1e09cf8f01a140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Security for pyddapi 3.0.3

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.

Release history Release notifications | RSS feed

This release

3.0.3 This release

2 release files No provenance

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