Metadata-Version: 2.5
Name: pygismeteo
Version: 8.0.9
Summary: Typed Python client for the Gismeteo weather API
Project-URL: changelog, https://github.com/monosans/pygismeteo/blob/main/CHANGELOG.md
Project-URL: documentation, https://monosans.github.io/pygismeteo
Project-URL: issues, https://github.com/monosans/pygismeteo/issues
Project-URL: repository, https://github.com/monosans/pygismeteo
Author-email: monosans <hsyqixco@protonmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: api-client,forecast,gismeteo,httpx,pydantic,weather,weather-api,погода
Classifier: Framework :: Pydantic
Classifier: Framework :: Pydantic :: 2
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: httpx2>=2.0.0
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/pygismeteo/main/docs/assets/logo.svg" alt="" width="40" align="top"> pygismeteo

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

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

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

## In English

pygismeteo is a Python wrapper for the [Gismeteo API](https://gismeteo.ru/api/) with typed responses. The async version is [aiopygismeteo](https://github.com/monosans/aiopygismeteo). 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 [pywttr](https://github.com/monosans/pywttr).

## Установка

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

## Пример

```python
import pygismeteo

with pygismeteo.Gismeteo(token="56b30cb255.3443075") as gismeteo:
    city = gismeteo.search.by_query("Москва")[0]
    current = gismeteo.current.by_id(city.id)

print(current.temperature.air.c, current.description.full)
```

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

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

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

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

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