Skip to main content

Replicate iterable data in databricks

Project description

iterable_etl

Replicate data from iterable in databricks

pypi

Usage

CLI

python -m iterable_etl --table <table-name>

where is one of the following: campaign_history, campaign_metrics, campaign_list_history, list, or ALL.

API

from iterable_etl.tables.campaign_history import campaign_history_df
from iterable_etl.tables.campaign_metrics import campaign_metrics_df
from iterable_etl.tables.list import list_df
from iterable_etl.tables.campaign_list_history import campaign_list_history_df

campaign_history_df()
campaign_metrics_df()
list_df()
campaign_list_history_df()

Further configs are set via environment variables:

  • ITERABLE_KEY: API access
  • APP_ENV: <development/production> - debug mode
  • SAMPLE_OUTPUT: <True/False> - Save dataframes to csv

DEV

Create venv

python -m venv env

Activate venv

  • unix
source env/bin/activate
  • windows
env\Scripts\activate.bat

Install Packages

pip install -r requirements.txt

Test

make test

Format

make format
make lint

Version & Release

bump2version <major/minor/patch>
make release

note Don't forget to git push with --tags

pre-commit

Setup

pre-commit install

Run all

make pre-commit

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

iterable_etl-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file iterable_etl-0.2.0.tar.gz.

File metadata

  • Download URL: iterable_etl-0.2.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for iterable_etl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e0a423d69953822e8d5737708f5f4fa87db5b57df0c472a35ddd1cf386763510
MD5 3782664b0781e48aeb8abc726fb5451b
BLAKE2b-256 f9c4ea8c3689f4c7c554603a3980996309679ab2920e886cc95d32fdfd018949

See more details on using hashes here.

Provenance

Supported by

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