Skip to main content

A module for getting air quality data from Luchtmeetnet OpenAPI

Project description

PyPI - Version PyPI - Status PyPI - Downloads

pyluchtmeetnet

A python package to use the Luchtmeetnet 2020 OpenAPI.

Installation

$ pip3 install pyluchtmeetnet

Code example

from pyluchtmeetnet import Luchtmeetnet

latitude = 52.0808
longitude = 4.3063

lmn = Luchtmeetnet()

# Get nearest station
station = lmn.get_nearest_station_data(latitude, longitude)
print(station)

# Get latest LKI from station
lki = lmn.get_latest_station_lki(station["number"])
print(lki)

# Get latest measurements from station
measurements = lmn.get_latest_station_measurements(station["number"])
print(measurements)

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

pyluchtmeetnet-0.1.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyluchtmeetnet-0.1.3-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pyluchtmeetnet-0.1.3.tar.gz.

File metadata

  • Download URL: pyluchtmeetnet-0.1.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyluchtmeetnet-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6ee6dcb90b128ca2e72dc417af0afa2c0cf7f44bd79d7a61ae925fcc4b68bf02
MD5 40de85d7f7a2d077bdb170998d6213cc
BLAKE2b-256 e26b9024279e02cba1fc2c7a6a2bfe456261e79d509154eff758c14fb1648169

See more details on using hashes here.

File details

Details for the file pyluchtmeetnet-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pyluchtmeetnet-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 014036663d2796a0acb7ead82c251330ed8ca2a6cc1c4debdf5e2f06a2e939ea
MD5 fe63edfdf141cedfae980a15776c8b13
BLAKE2b-256 074d85e697552bc9514433ed301d4d88ddba99b511f3a98c998befd882d60a53

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