Skip to main content

An simple API for allergen and disease data from Pollen.com

Project description

pypollencom: A Simple Python API for Pollen.com

https://travis-ci.org/bachya/pypollencom.svg?branch=master https://img.shields.io/pypi/v/pypollencom.svg https://img.shields.io/pypi/pyversions/pypollencom.svg https://img.shields.io/pypi/l/pypollencom.svg https://codecov.io/gh/bachya/pypollencom/branch/master/graph/badge.svg https://api.codeclimate.com/v1/badges/71eb642c735e33adcdfc/maintainability https://img.shields.io/badge/SayThanks-!-1EAEDB.svg

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

  1. Check for open features/bugs or initiate a discussion on one.

  2. Fork the repository.

  3. Install the dev environment: make init.

  4. Enter the virtual environment: pipenv shell

  5. Code your new feature or bug fix.

  6. Write a test that covers your new functionality.

  7. Run tests: make test

  8. Build new docs: make docs

  9. Add yourself to AUTHORS.rst.

  10. Submit a pull request!

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

pypollencom-1.1.2.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

pypollencom-1.1.2-py3-none-any.whl (7.2 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