Skip to main content

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. See petaldata.datasets.stripe.Invoices for an example.
  • 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] to petaldata/__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)

Uploaded Source

Built Distribution

petaldata-1.0.0-py3-none-any.whl (33.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page