Metadata-Version: 2.5
Name: aiopygismeteo
Version: 7.0.10
Summary: Typed asyncio Python client for the Gismeteo weather API
Project-URL: changelog, https://github.com/monosans/aiopygismeteo/blob/main/CHANGELOG.md
Project-URL: documentation, https://monosans.github.io/aiopygismeteo
Project-URL: issues, https://github.com/monosans/aiopygismeteo/issues
Project-URL: repository, https://github.com/monosans/aiopygismeteo
Author-email: monosans <hsyqixco@protonmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: aiohttp,api-client,async,asyncio,forecast,gismeteo,pydantic,weather,weather-api,погода
Classifier: Framework :: AsyncIO
Classifier: Framework :: Pydantic
Classifier: Framework :: Pydantic :: 2
Classifier: Framework :: aiohttp
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: Russian
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: 3.16
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: aiohttp>=3.8
Requires-Dist: pydantic>=2.5
Requires-Dist: pygismeteo-base<7,>=6.0.1
Description-Content-Type: text/markdown

# <img src="https://raw.githubusercontent.com/monosans/aiopygismeteo/main/docs/assets/logo.svg" alt="" width="40" align="top"> aiopygismeteo

[![Downloads](https://static.pepy.tech/badge/aiopygismeteo)](https://pepy.tech/project/aiopygismeteo)

Асинхронная обёртка для [Gismeteo API](https://gismeteo.ru/api/) на Python с типизированными ответами. Синхронная версия называется [pygismeteo](https://github.com/monosans/pygismeteo).

Разработка приостановлена: у разработчика нет токена Gismeteo API, поэтому библиотека не проверяется на реальном API. Работает с Gismeteo API v2, новая v4 не поддерживается. Погоду без токена можно получить через [aiopywttr](https://github.com/monosans/aiopywttr).

## In English

aiopygismeteo is an async Python wrapper for the [Gismeteo API](https://gismeteo.ru/api/) with typed responses. The sync version is [pygismeteo](https://github.com/monosans/pygismeteo). The documentation and the rest of this README are in Russian, but the code example below should be easy to follow.

Development is on hold. The author has no Gismeteo API token, so the library isn't tested against the real API. It works with Gismeteo API v2 and doesn't support v4. Gismeteo issues tokens on request at [b2b@gismeteo.ru](mailto:b2b@gismeteo.ru). For weather data without a token, try [aiopywttr](https://github.com/monosans/aiopywttr).

## Установка

```bash
uv add aiopygismeteo pygismeteo-base
# или
pip install -U aiopygismeteo pygismeteo-base
```

## Пример

```python
import asyncio

import aiopygismeteo


async def main() -> None:
    async with aiopygismeteo.Gismeteo(token="56b30cb255.3443075") as gismeteo:
        city = (await gismeteo.search.by_query("Москва"))[0]
        current = await gismeteo.current.by_id(city.id)
    print(current.temperature.air.c, current.description.full)


asyncio.run(main())
```

В примере стоит образец токена. Свой выдают по запросу на [b2b@gismeteo.ru](mailto:b2b@gismeteo.ru).

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

<https://monosans.github.io/aiopygismeteo>

## License / Лицензия

[MIT](https://github.com/monosans/aiopygismeteo/blob/main/LICENSE)
