Skip to main content

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

Metadata

Release files for waqi-python 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for waqi-python 0.2.2
File Size Uploaded Provenance Actions
waqi-python-0.2.2.tar.gz 2.7 kB Without provenance Details for waqi-python-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for waqi-python 0.2.2
File Interpreter ABI Platform Actions
waqi_python-0.2.2-py3-none-any.whl Python 3 none any Details for waqi_python-0.2.2-py3-none-any.whl

Total release size: 8.9 kB

Release files / waqi-python-0.2.2.tar.gz

Download URL waqi-python-0.2.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6062f8745ceb449ab3aa0ab0b7120cf907332e13650b91cd57ffa35d9443b21b
BLAKE2b-256 checksum
How to use checksums
6dc40fe726fe4c67008226e7020391a53f4611393fc974f1c57239f90c0a3484
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / waqi_python-0.2.2-py3-none-any.whl

Download URL waqi_python-0.2.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49d09b3ee12458e56b9bea020d26b6c899135d1f0b0063978d43fbdfa0f3f947
BLAKE2b-256 checksum
How to use checksums
17b0c2eb81b5ff8dcb4200132518e9234e1a027f13c977db985fc1e60271e36a
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for waqi-python 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page