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>' 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
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.2.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file waqi-python-0.2.2.tar.gz.
File metadata
- Download URL: waqi-python-0.2.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6062f8745ceb449ab3aa0ab0b7120cf907332e13650b91cd57ffa35d9443b21b
|
|
| MD5 |
7554147283ceaf3878955a0a06d5398e
|
|
| BLAKE2b-256 |
6dc40fe726fe4c67008226e7020391a53f4611393fc974f1c57239f90c0a3484
|
File details
Details for the file waqi_python-0.2.2-py3-none-any.whl.
File metadata
- Download URL: waqi_python-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49d09b3ee12458e56b9bea020d26b6c899135d1f0b0063978d43fbdfa0f3f947
|
|
| MD5 |
67dac033c135081a441ece6a07c3d1bc
|
|
| BLAKE2b-256 |
17b0c2eb81b5ff8dcb4200132518e9234e1a027f13c977db985fc1e60271e36a
|