Skip to content

Python wrapper for the World Air Quality Index Project JSON API

License

Notifications You must be signed in to change notification settings

danoscarmike/waqi-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

waqi-python

Python wrapper for the World Air Quality Index Project JSON API

Build Status codecov

Installation

  1. Get an API token from the World Air Quality Index Project
  2. Create an environment variable called AQIPY_TOKEN: export AQIPY_TOKEN='<your_new_token>'
  3. pip install waqi-python

Usage

>>> from waqi_python import client as base
>>> client = base.WaqiClient()
>>> my_station = client.get_local_station()
>>> my_station.city.name
'San Francisco-Arkansas Street, San Francisco, California'
>>> my_station.aqi
46

About

Python wrapper for the World Air Quality Index Project JSON API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages