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.cache_dir = os.getenv("CACHE_DIR") # downloads are saved to this directory
Example Usage
See the examples directory.
Releasing
Generate the distribution archive, then 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.3.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file petaldata-0.0.3.tar.gz
.
File metadata
- Download URL: petaldata-0.0.3.tar.gz
- Upload date:
- Size: 3.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a45b92670739e6acad0dec1462a46f2f988ae671e9807bdf7e5bdd3853a3a41 |
|
MD5 | 3e283e401a31a5751ca96562cfdccf0a |
|
BLAKE2b-256 | 5718ca1ef39f8e6b0070d71967198d364ea2b2a194b24a7821d9e9e382736ba8 |
File details
Details for the file petaldata-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: petaldata-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27e9a6bfb71690a5ef114b4e20c9187c57e6aa307e1742195e0ad464c3e6e8ea |
|
MD5 | 6d049d7e68ae0c80b53c6ab9789e8751 |
|
BLAKE2b-256 | c8a836b0cea1edb8e05eca9a279be04d087b117e37108a9a2032d7de05316964 |