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.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for waqi_python-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3444b5abd8bb3ffd941556cc7dda81d113bc5033648ff6b375722ef570e7cf70 |
|
MD5 | c2e2128ee2e30363b83d8ce537f8fee5 |
|
BLAKE2b-256 | 47fb95b07b7d3a58c75be001d9b8d103367858802c0e692266fff49cf3be82d8 |