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.6.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0275862d850b60e2838d923bd99ed3a9683f0908266fac03d648d518211afcd2 |
|
MD5 | 4b109c73466ca2d95a3a8981c99860ec |
|
BLAKE2b-256 | 579552a8919de1deb0426e5b992a1a4d0c9bb76cf115080c7d8cb7bfe00a8003 |