Skip to main content

A simple CLI to get live Air Quality Indices

Project description

AQIPY

A simple tool to get Air Quality Indices from around the world.

Installation

  1. Get an API token here.
  2. Create an environment variable with your token:
    export AQIPY_TOKEN='<your_new_token>'

From source

  1. Clone this repository.
  2. From your new directory:
    pip3 install -e .

From PyPI

pip install aqipy

Usage

To get the AQI for your current location (IP based):
aqipy

To get the AQI for a specific location (latitude longitude):
aqipy geo [--latlon / -l <lat lon>]

Example

$ aqipy geo --latlon 53.8 -7.4

Attribution

This tool uses APIs provided by the World Air Quality Index Project.

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

aqipy-0.4.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file aqipy-0.4.1.tar.gz.

File metadata

  • Download URL: aqipy-0.4.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for aqipy-0.4.1.tar.gz
Algorithm Hash digest
SHA256 854edc49e43dbe70348e1cd138ead3a86996d45e9bb681e6b818a019769b15df
MD5 a46633da8b91e63f76896f51b2d67183
BLAKE2b-256 eeb92880112acf1d3ba16b686063463cd6bfe653d3d12d480abb2efd4260d1e4

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