Skip to main content

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. 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 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)

Uploaded Source

Built Distribution

petaldata-1.0.2-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

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

Hashes for petaldata-1.0.2.tar.gz
Algorithm Hash digest
SHA256 2e573cfd20f865d5d4849fe36a8e408194dda5b8dcaf5a22e2f42b29e7bbd8db
MD5 cf2aabeb0479e7b9deae3d0658db4ca1
BLAKE2b-256 46f84730e70cc55c450579d1c8922abb8dfa843005c50ce346db615e2a850389

See more details on using hashes here.

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

Hashes for petaldata-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dffedb4bf2368fdbec621970f82b1adfad102c1be91b420d1ddc7caedbf9317b
MD5 fbd5e4fc244ed24812351895453c698f
BLAKE2b-256 ad270b324e76605fe12f3e2266f755c08e9270263515332255cae698253b0687

See more details on using hashes here.

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