GitHunt
DA

danoscarmike/waqi-python

Python wrapper for the World Air Quality Index Project JSON API

waqi-python

Python wrapper for the World Air Quality Index Project JSON API

Build Status codecov

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

Languages

Python100.0%

Contributors

MIT License
Created November 21, 2018
Updated December 17, 2024
danoscarmike/waqi-python | GitHunt