Skip to content

Export your data from cloud apps like Stripe, Hubspot, and Metabase into Pandas Dataframes.

License

Notifications You must be signed in to change notification settings

petaldata/petaldata-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Export your data from cloud apps like Stripe, Hubspot, and Metabase into Pandas Dataframes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages