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.4.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8415b06d02ef41302df364d05b2c7e874ce536cb2dd756ebc5d820f6665d8083 |
|
MD5 | 424e72581ad3798289a0d9d5a7339851 |
|
BLAKE2b-256 | eaa8dd34bd522ef6f7d2c682e5c8c2808da4f8efa2edbc591b1ce4053bc4e872 |