Python wrapper for the World Air Quality Index Project JSON API
Project description
waqi-python
Python wrapper for the World Air Quality Index Project JSON API
Installation
- Get an API token from the World Air Quality Index Project
- Create an environment variable called AQIPY_TOKEN:
export AQIPY_TOKEN='<your_new_token>'
pip3 install waqi-python
Usage
>>> from waqi_python import client as core
>>> client = core.WaqiClient()
>>> my_station = client.get_local_station()
>>> my_station.city.name
'San Francisco-Arkansas Street, San Francisco, California'
>>> my_station.aqi
46
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
waqi-python-0.2.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for waqi_python-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb80f8cd683712ffb982f97a6d4c6b1eef7a82834b49cbd6598d9b5c2eb43cee |
|
MD5 | 05a44df1122eb4f2e7139f160f11b8c9 |
|
BLAKE2b-256 | 2c20ba5824f26910acb5d06d8821fc04ba42ed9500bbb44be62f288e9507b195 |