Export your data from cloud apps like Stripe, Hubspot, and Metabase into Pandas Dataframes.
Project description
PetalData Python Library
Export your data from cloud apps like Stripe, Hubspot, and Metabase into Pandas Dataframes with PetalData.
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
- 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/*
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 derek@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.2.tar.gz
(13.1 kB
view details)
Built Distribution
petaldata-1.0.2-py3-none-any.whl
(33.7 kB
view details)
File details
Details for the file petaldata-1.0.2.tar.gz
.
File metadata
- Download URL: petaldata-1.0.2.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e573cfd20f865d5d4849fe36a8e408194dda5b8dcaf5a22e2f42b29e7bbd8db |
|
MD5 | cf2aabeb0479e7b9deae3d0658db4ca1 |
|
BLAKE2b-256 | 46f84730e70cc55c450579d1c8922abb8dfa843005c50ce346db615e2a850389 |
File details
Details for the file petaldata-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: petaldata-1.0.2-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dffedb4bf2368fdbec621970f82b1adfad102c1be91b420d1ddc7caedbf9317b |
|
MD5 | fbd5e4fc244ed24812351895453c698f |
|
BLAKE2b-256 | ad270b324e76605fe12f3e2266f755c08e9270263515332255cae698253b0687 |