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)].pyfile.- Create a class that inherits from
petaldata.datasets.abstract.Dataset. Seepetaldata.datasets.stripe.Invoicesfor an example.
- Create a class that inherits from
- Create a
petaldata/datasets/[CLOUD_APP]/__init__.pyfile.- Import the dataset created above.
- Add config variables needed to use the
[CLOUD_APP] API (like anAPI KEY`).
- Add
from petaldata.datasets import [CLOUD_APP]topetaldata/__init__.py
Questions
Email derek@petaldata.app.
Release files for petaldata 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| petaldata-1.0.2.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| petaldata-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.9 kB
Release files / petaldata-1.0.2.tar.gz
| Download URL | petaldata-1.0.2.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e573cfd20f865d5d4849fe36a8e408194dda5b8dcaf5a22e2f42b29e7bbd8db
|
|
BLAKE2b-256 checksum How to use checksums |
46f84730e70cc55c450579d1c8922abb8dfa843005c50ce346db615e2a850389
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / petaldata-1.0.2-py3-none-any.whl
| Download URL | petaldata-1.0.2-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dffedb4bf2368fdbec621970f82b1adfad102c1be91b420d1ddc7caedbf9317b
|
|
BLAKE2b-256 checksum How to use checksums |
ad270b324e76605fe12f3e2266f755c08e9270263515332255cae698253b0687
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|