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.5.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e85270a5ff17fc3d7f2ba1cdd87c98e0d3422f2356c0ae128b4d068a5e58f216 |
|
MD5 | 56043611b5ce25b76c67d5e65ddaf675 |
|
BLAKE2b-256 | e27a6ae37f1c52470a8fb05512a650582da83340960e741ac98f1c71fba131e3 |