Asynchronous wrapper for Gismeteo API
Project description
aiopygismeteo
Асинхронная обёртка для Gismeteo API.
Синхронная версия здесь.
Установка
python -m pip install -U aiopygismeteo
Документация
https://aiopygismeteo.readthedocs.io/
Пример, выводящий температуру в Москве сейчас
import asyncio
import aiopygismeteo
async def main():
gm = aiopygismeteo.Gismeteo()
search_results = await gm.search.by_query("Москва")
city_id = search_results[0].id
current = await gm.current.by_id(city_id)
print(current.temperature.air.c)
asyncio.run(main())
License / Лицензия
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiopygismeteo-5.1.0.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859c16a44581b034bc86d58097be546d31b56feaafff90e6cdb152ac752bc70c |
|
MD5 | c121bf43cfbd3dda963a9a853157ba3a |
|
BLAKE2b-256 | 50ffa1d3c06c63ba142d3a03aecd61ebf04aa71615263842ecf50558a1e22744 |