Export your data from cloud apps like Stripe, Hubspot, and Metabase into Pandas Dataframes with PetalData.
pip install --upgrade petaldata
Python 3.4+
import petaldata
See the examples directory in the GitHub repo.
Interactive documentation is at https://petaldata.app/.
- Update CHANGELOG
- Bump the version number in
setup.py
. - 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/*
- 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
Email derek@petaldata.app.