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 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.1.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for waqi_python-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3be7c22c592abe670b67a53f3fada2b008bc746bc613c67984f02be592b09e81 |
|
MD5 | 3680425f0f7870b3b5af39c168062830 |
|
BLAKE2b-256 | 70431fa40fab2d871c1371deb00516a236092ecccbebdabc5704105d4360751c |