Skip to main content

Asynchronous wrapper for Gismeteo.ru API

Project description

aiopygismeteo

Build Status codecov Python Version License: MIT

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

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

Установка

python -m pip install -U aiopygismeteo

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

Релизная версия - https://aiopygismeteo.readthedocs.io

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

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

import asyncio

from aiopygismeteo import Gismeteo


async def main():
    gm = Gismeteo()
    city_id = await gm.get_id_by_query("Москва")
    current = await gm.current(city_id)
    print(current.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-4.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

aiopygismeteo-4.0.0-py3-none-any.whl (4.4 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