Asynchronous wrapper for Gismeteo.ru API
Project description
aiopygismeteo
Асинхронная обёртка для Gismeteo.ru API.
Синхронная версия здесь.
Установка
python -m pip install -U aiopygismeteo
Документация
Релизная версия - https://aiopygismeteo.readthedocs.io
Git версия - https://aiopygismeteo.readthedocs.io/ru/latest
Пример, выводящий температуру в Москве сейчас
import asyncio
from aiopygismeteo import Gismeteo
async def main():
gm = Gismeteo()
city_id = await gm.get_id_by_query("Москва")
current = await gm.current(city_id)
print(current.temperature.air.c)
asyncio.run(main())
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-4.0.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-4.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d3c7f88ee2df7d63be50af35178243ee268de64a89b6ff42b02f33f63dd7f5 |
|
MD5 | 3d0466df6e54470f31c83170b61b8061 |
|
BLAKE2b-256 | 408c372f3b29bbd02658ead93a6c4c5a857bda2a2a01277eb100f8dd6fac6732 |