Replicate iterable data in databricks
Project description
iterable_etl
Replicate data from iterable in databricks
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 accessAPP_ENV
: <development/production> - debug modeSAMPLE_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
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
iterable_etl-0.1.2.tar.gz
(7.5 kB
view details)
File details
Details for the file iterable_etl-0.1.2.tar.gz
.
File metadata
- Download URL: iterable_etl-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d13ac9576deae324436a8d663c80d6f2cc8a87f2dbf1b9426b29e3ac471b6c8e |
|
MD5 | 5c0a73ef893e0e14eab3e71fd008f471 |
|
BLAKE2b-256 | 90a189896a0de4e131f13366da14b81be36643db8bc14c0f076b8ae2fd479a78 |