Asynchronous wrapper for Gismeteo API
Project description
aiopygismeteo
Асинхронная обёртка для Gismeteo API.
Синхронная версия здесь.
Установка
python -m pip install -U aiopygismeteo pygismeteo-base
Документация
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.2.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a074475df9d6eb610857a7204d1385f01e256fc5933dd14a11f29a6ec12088c |
|
MD5 | d845795fcb046c7cf65608f8cd037c79 |
|
BLAKE2b-256 | 9c4556c4aec7f2ccd52dcfa0c667f8f04ef470f91b3679e035a00a1ad7e0ef32 |