Skip to main content

aioowm - Easy Async library for working with OpenWeatherMap

Что нужно, чтобы пользоваться библиотекой:

PyCharm

OpenWeatherMap Token

Установка:

pip install aioowm
pip install -U https://github.com/vladislavkovalskyi/aioowm/archive/master.zip

Ссылки:

Пример:

from asyncio import run

from aioowm import OWM

weather = OWM(token="OpenWeatherMap Token", language="ru")


async def app():
   result = await weather.get("Saint Petersburg")
   print(
       f"Город: {result.city.name} ({result.city.country})\n"
       f"Температура: {result.weather.temperature.now}°C\n"
       f"Описание: {result.weather.description}\n"
       f"Скорость ветра: {result.weather.wind.speed} м/с"
   )

run(app())

Вывод:

Город: Санкт-Петербург (RU)
Температура: 2.12°C
Описание: Облачно
Скорость ветра: 1.34 м/с

Metadata

Release files for aioowm 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioowm 2.0.1
File Size Uploaded
aioowm-2.0.1.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aioowm 2.0.1
File Interpreter ABI Platform
aioowm-2.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.2 kB

Release files / aioowm-2.0.1.tar.gz

Download URL aioowm-2.0.1.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ad0ad6e34fa8cc26fdb2eb2d5c4eb9fce0f60e7d83e09626eeba4e4069dd7de0
BLAKE2b-256 checksum
How to use checksums
113555ffd674d5df8207f7617ac5115b1109f3a54268d81d28f5d365b45105b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release files / aioowm-2.0.1-py3-none-any.whl

Download URL aioowm-2.0.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92b979e833e12529c0a021c121bdb92acded8525083ca3d8e47259530e1a1bb0
BLAKE2b-256 checksum
How to use checksums
3309a1404d2471b6dfe25794011b7237fec202120745fc8ef67a87e7b9c1c820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page