Skip to main content

Asynchronous wrapper for Gismeteo API

Project description

aiopygismeteo

CI pre-commit.ci status codecov

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

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

Установка

python -m pip install -U aiopygismeteo

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

aiopygismeteo.readthedocs.io

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

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 / Лицензия

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

Uploaded Source

Built Distribution

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