Skip to content

lemonov/PyAirly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyAirly

Python binding of https://developer.airly.eu/ REST api

Python version >= 3

Installation

pip install pyairly

Constructor params

accept_gzip_encoding: True to get gzip response

apikey: apikey as specified in https://developer.airly.eu/docs#general.authentication

debug: True for extra printed information on requests/responses

from pyairly import PyAirly

airly = PyAirly(apikey, debug=True, accept_gzip_encoding=True)
print(airly.get_installations_by_id(122))
print(airly.get_installations_nearest(50.062006, 19.940984, 1, 2))

print(airly.get_measurements_by_installation(122))
print(airly.get_measurements_nearest(50.062006, 19.940984, 1))
print(airly.get_measurements_for_point(50.062006, 19.940984))

print(airly.get_meta_indexes())
print(airly.get_meta_measurements())

Releases

No releases published

Packages

No packages published

Languages