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():
gm = 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.0.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for aiopygismeteo-5.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f3fd576bd4f67ee335cbefa7892bcbd96d46517641d1304c8dc496f08dbdd6 |
|
MD5 | ed9f60d7581af60a94ca9db16089191a |
|
BLAKE2b-256 | 6d55c3b0045e571d49b67c45e28da5a933863a7c65ef02f03a2b4f80e16aa35e |