Asynchronous wrapper for Gismeteo API
Project description
aiopygismeteo
Асинхронная обёртка для Gismeteo API.
Синхронная версия здесь.
Установка
python -m pip install -U aiopygismeteo
Документация
https://aiopygismeteo.readthedocs.io/
Пример, выводящий температуру в Москве сейчас
import asyncio
from aiopygismeteo import Gismeteo
async def main():
gm = 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.0.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8275d029db26f381ff84c783157d970253cd778fc8e0263fba70c89586b8ec12 |
|
MD5 | d077c51621b108cb266f794f3a664cda |
|
BLAKE2b-256 | 222905b364d80309b046e26cff30a667fb00a6d2eec9375f35259fd5cd096f9a |