An simple API for allergen and disease data from Pollen.com
Project description
pypollencom: A Simple Python API for Pollen.com
pypollencom is a simple Python library for allergen and disease data from Pollen.com.
Installation
$ pip install pypollencom
Usage
import pypollencom
# --- CLIENT CREATION -------------------------------------------------------
# Create a client based on ZIP code:
client = pypollencom.Client(80012)
# ZIP codes starting with 0 need to be provided as strings:
client = pypollencom.Client('00544')
# --- DATA RETRIEVAL --------------------------------------------------------
# Get current allergen information:
client.allergens.current()
# Get more information on the current allergen outlook:
client.allergens.outlook()
# Get extended forecast allergen information:
client.allergens.extended()
# Get historic allergen information:
client.allergens.historic()
# Get extended forecast cold and flu information:
client.disease.extended()
Contributing
Check for open features/bugs or initiate a discussion on one.
Install the dev environment:
make init
.Enter the virtual environment:
pipenv shell
Code your new feature or bug fix.
Write a test that covers your new functionality.
Run tests:
make test
Build new docs:
make docs
Add yourself to AUTHORS.rst.
Submit a pull request!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pypollencom-1.1.2.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for pypollencom-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29aa400ba5aff053ee7c07dee07c987c688fd6ed38f45e5cd285661f1cceb178 |
|
MD5 | 3e9bef1908a1c34b005166c77993edff |
|
BLAKE2b-256 | 200b957d5d3eb9093ddb9b816869f6b9eb4d2c748d3e56ceb47fce9730226eaf |