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

Uploaded Source

Built Distribution

petaldata-0.0.6-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file petaldata-0.0.6.tar.gz.

File metadata

  • Download URL: petaldata-0.0.6.tar.gz
  • Upload date:
  • Size: 8.9 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-0.0.6.tar.gz
Algorithm Hash digest
SHA256 dee5e4fba17739b3f48ae30ad212f3aa0845b31ad813d867137fad3878037099
MD5 7bfdcc694eca674cfa43cdadd851da8d
BLAKE2b-256 53552774c9865b7e50c9bd632752719e28682e8a32ddc1719721ab6e18eee440

See more details on using hashes here.

File details

Details for the file petaldata-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: petaldata-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.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-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3893788b4bde97daee9222a3f6d0a2e07af96443330010515f6d0e1d5bbefe05
MD5 281f3265bf47c6e38a410b40b69c8879
BLAKE2b-256 2ea359a81618ade4bdb1d42728724c0f3ddbc3b42964e4f5da09d17b65488880

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