Async OpenWeatherMap API!
Project description
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 м/с
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
aioowm-2.0.1.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file aioowm-2.0.1.tar.gz
.
File metadata
- Download URL: aioowm-2.0.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0ad6e34fa8cc26fdb2eb2d5c4eb9fce0f60e7d83e09626eeba4e4069dd7de0 |
|
MD5 | c07913f73409ec1104f308720df61f0a |
|
BLAKE2b-256 | 113555ffd674d5df8207f7617ac5115b1109f3a54268d81d28f5d365b45105b1 |
File details
Details for the file aioowm-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: aioowm-2.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b979e833e12529c0a021c121bdb92acded8525083ca3d8e47259530e1a1bb0 |
|
MD5 | 63396fc207c35427086a79950f58b2ce |
|
BLAKE2b-256 | 3309a1404d2471b6dfe25794011b7237fec202120745fc8ef67a87e7b9c1c820 |