Skip to main content

Python bindings for the PetalData API

Project description

PetalData Python Library

The PetalData Python library provides convenient access to the PetalData API from applications written in the Python language. It includes a set of convenience methods to handle common data access patterns like downloading data from a resource and incrementally updating the dataset.

Installation

pip install --upgrade petaldata

Requirements

Python 3.4+

Usage

The following configuration is required:

import petaldata
petaldata.storage.Local.dir = os.getenv("CACHE_DIR") # downloads are saved to this directory

Example Usage

See the examples directory.

Releasing

Bump the version number in setup.py. Then generate the distribution archive and upload the archive:

python setup.py sdist bdist_wheel
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

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-0.0.6.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

petaldata-0.0.6-py3-none-any.whl (14.7 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