A uniform API for downloading, saving, and updating analysis-ready data across cloud apps like Stripe, Hubspot, and Metabase.
Project description
PetalData Python Library
PetalData is a uniform API for exporting data science-ready datasets from cloud apps like Stripe, Hubspot, and Metabase.
Installation
pip install --upgrade petaldata
Requirements
Python 3.4+
Usage
import petaldata
Example Usage
See the examples directory in the GitHub repo.
Documentation
Interactive documentation is at https://petaldata.app/.
Releasing
Bump the version number in setup.py
. Then generate the distribution archive and upload the archive:
rm dist/*
python setup.py sdist bdist_wheel
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
Adding a Dataset
- Create a
petaldata/datasets/[CLOUD_APP]
directory - Create a
petaldata/datasets/[CLOUD_APP]/[DATASET_NAME (PLURAL)].py
file.- Create a class that inherits from
petaldata.datasets.abstract.Dataset
. Seepetaldata.datasets.stripe.Invoices
for an example.
- Create a class that inherits from
- Create a
petaldata/datasets/[CLOUD_APP]/__init__.py
file.- Import the dataset created above.
- Add config variables needed to use the
[CLOUD_APP] API (like an
API KEY`).
- Add
from petaldata.datasets import [CLOUD_APP]
topetaldata/__init__.py
Questions
Email support@petaldata.app.
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
petaldata-1.0.1.tar.gz
(13.1 kB
view hashes)
Built Distribution
petaldata-1.0.1-py3-none-any.whl
(33.6 kB
view hashes)
Close
Hashes for petaldata-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05c5bea29597847c7a3938963b8f2edc33336397b2c43a6e04b0512bcb26d876 |
|
MD5 | 5c95fea9fad9f61995419817e51509e2 |
|
BLAKE2b-256 | cc3dc3ec1c6094adfd507e0a810d856c585d82da2db994f68dc3e6d4d365d3cb |