Skip to main content

Asynchronous wrapper for Gismeteo.ru API

Project description

aiopygismeteo

Build Status codecov Python Version License: MIT

Асинхронная обёртка для Gismeteo.ru API.

Синхронная версия здесь.

Установка

pip install -U aiopygismeteo

Документация

Для текущей релизной версии - https://aiopygismeteo.readthedocs.io

Для git версии - https://aiopygismeteo.readthedocs.io/ru/latest

Пример, выводящий температуру в Москве сейчас

import asyncio

import aiopygismeteo


async def main():
    city_id = await aiopygismeteo.search.id_by_query("Москва")
    gm = await aiopygismeteo.current(city_id)
    print(gm.temperature.air.c)


asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiopygismeteo-3.0.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

aiopygismeteo-3.0.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page