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 downloading, saving, and updating analysis-ready data across 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.0.tar.gz
(13.0 kB
view hashes)
Built Distribution
petaldata-1.0.0-py3-none-any.whl
(33.6 kB
view hashes)
Close
Hashes for petaldata-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99c19412a705690124d40f61df0af418c83bf7492e13c2b7f0b6172a4c81aa47 |
|
MD5 | 6ce2ecd10d9b601bd019ab256e5465d9 |
|
BLAKE2b-256 | 9ac9f57b1d7919a984c1dd6aae2b9a807b4f4c973b509f1ed1eef8aea9038058 |