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 details)
Built Distribution
petaldata-1.0.0-py3-none-any.whl
(33.6 kB
view details)
File details
Details for the file petaldata-1.0.0.tar.gz
.
File metadata
- Download URL: petaldata-1.0.0.tar.gz
- Upload date:
- Size: 13.0 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 | e3450d164bc7cc4cab0999e0c3e5622e22ab8f71ed4a207d7156bf0e14a2b08c |
|
MD5 | f3b662af9702ab944cf6565ca62b6f70 |
|
BLAKE2b-256 | e7efb73e832913dfb6b5369eaef850ccaddcc673301cb0da5cd14a598c63609a |
File details
Details for the file petaldata-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: petaldata-1.0.0-py3-none-any.whl
- Upload date:
- Size: 33.6 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 | 99c19412a705690124d40f61df0af418c83bf7492e13c2b7f0b6172a4c81aa47 |
|
MD5 | 6ce2ecd10d9b601bd019ab256e5465d9 |
|
BLAKE2b-256 | 9ac9f57b1d7919a984c1dd6aae2b9a807b4f4c973b509f1ed1eef8aea9038058 |