Skip to main content

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

  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

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)

Uploaded Source

Built Distribution

waqi_python-0.2.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for waqi-python-0.2.2.tar.gz
Algorithm Hash digest
SHA256 6062f8745ceb449ab3aa0ab0b7120cf907332e13650b91cd57ffa35d9443b21b
MD5 7554147283ceaf3878955a0a06d5398e
BLAKE2b-256 6dc40fe726fe4c67008226e7020391a53f4611393fc974f1c57239f90c0a3484

See more details on using hashes here.

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

Hashes for waqi_python-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49d09b3ee12458e56b9bea020d26b6c899135d1f0b0063978d43fbdfa0f3f947
MD5 67dac033c135081a441ece6a07c3d1bc
BLAKE2b-256 17b0c2eb81b5ff8dcb4200132518e9234e1a027f13c977db985fc1e60271e36a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page