Skip to main content

Asynchronous wrapper for Gismeteo API

Project description

aiopygismeteo

CI pre-commit.ci status Coverage PyPI Downloads

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

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

Установка

python -m pip install -U aiopygismeteo

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

https://aiopygismeteo.readthedocs.io/

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

import asyncio

import aiopygismeteo


async def main():
    gm = aiopygismeteo.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 / Лицензия

MIT

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-5.1.0.tar.gz (7.0 kB view hashes)

Uploaded Source

Built Distribution

aiopygismeteo-5.1.0-py3-none-any.whl (8.5 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