Skip to main content

AQI calculation library

Project description

AQI calculation library (python)

The library calculates the following indexes:

  • AQI (US)
  • AQHI (Canada)
  • CAQI (Europe)
  • DAQI (UK)
  • AQI (Australia)
  • CAI (South Korea)
  • PSI (Singapore)
  • AQHI (Hong Kong)
  • AQI (Mainland China)
  • AQI (India)

Installation

From source:

git clone --recursive https://github.com/atmotube/aqipy.git
cd python
python setup.py install

From PyPI directly:

pip install aqipy-atmotech

Examples

calculate US AQI:

from aqipy import aqi_us

aqi, aqi_data = aqi_us.get_aqi(o3_8h=0.07853333)
print('aqi', aqi)
print('effects', aqi_data['o3_8h'][1])
print('cauntions', aqi_data['o3_8h'][2])

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-atmotech-0.1.1.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

aqipy_atmotech-0.1.1-py3-none-any.whl (22.6 kB view hashes)

Uploaded Python 3

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