Asynchronous wrapper for Gismeteo API
Project description
aiopygismeteo
Асинхронная обёртка для Gismeteo API.
Синхронная версия здесь.
Установка
python -m pip install -U aiopygismeteo
Документация
Пример, выводящий температуру в Москве сейчас
import asyncio
from aiopygismeteo import Gismeteo
async def main():
gismeteo = Gismeteo()
search_results = await gismeteo.search.by_query("Москва")
city_id = search_results[0].id
current = await gismeteo.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.0.3.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c248c21cbd1d76527a40362adc5377d96ee5fd89f1b201330a7ca20a02fbe5e7 |
|
MD5 | f45d1865679569fad13a19ff96ff3833 |
|
BLAKE2b-256 | f032048e8e025294cb69eae7fa21919552634ded45c77363bbd53b4d47d063c9 |