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.2.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dc3c4cff9f4e0473e1b873c475f13e8b33108eeaca2cadd9a9f56f63f5a47ff |
|
MD5 | c2357f80764c046d371e09adfbd15018 |
|
BLAKE2b-256 | 2a30100c82671d8fc3b85a2bb723462d298486ad0af13fc8aff589a1779720c9 |