Socket
Socket
Sign inDemoInstall

waqi-python

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

waqi-python

Python wrapper for the World Air Quality Index Project JSON API


Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc