Skip to main content

A python client for aqms.doe.ir (Iran's AQI measuring system)

Project description

aqipy

A python client for aqms.doe.ir (Iran's AQI measuring system)

installation

install using:

pip install aqms-iran

examples

fetch city data:

import aqipy

client = aqipy.AQIClient()
data = client.fetch_city_aqi_data('مشهد')
# or data = client.fetch_city_aqi_data('mashhad', names_are_farsi=False)

print(data)

fetch station data

import aqipy

client = aqipy.AQIClient()
data = client.fetch_all_stations()

station = 'دورود'
data = list(
    filter(
        lambda x: station in x['S'].strip(),
        data
    )
)[0]

print(data)

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

aqms_iran-0.0.2.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aqms_iran-0.0.2-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file aqms_iran-0.0.2.tar.gz.

File metadata

  • Download URL: aqms_iran-0.0.2.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aqms_iran-0.0.2.tar.gz
Algorithm Hash digest
SHA256 500754d4304875178c5b96ba96346800d980a37a1e1a35ad4e66e6a475a5be04
MD5 6c6cfab621b8770eda65e3d314c6b16f
BLAKE2b-256 4ab3b552ea2b98d7bed7fc27c764780d0244288476f275bf4679984a4645ad21

See more details on using hashes here.

File details

Details for the file aqms_iran-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: aqms_iran-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for aqms_iran-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a004c1a8c6f490e3ab10ce7d4121621e529ed39a065de3c7f11b1e7e4c54bb78
MD5 da8e1e59f07b2e4885009c87f3e012d1
BLAKE2b-256 316f49b193275a4ea88c423a9c874ca6d0bf952ac2a3f6ece17a87de50332f8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page