Skip to main content

Async OpenWeatherMap API!

Project description

aioowm - Easy Async library for working with OpenWeatherMap

Installing (Установка):

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

Links (Ссылки):

Example (Пример):

from aioowm import OWM
import asyncio


weather = OWM(token='Token Here', language='ru')
# https://home.openweathermap.org/api_keys
# language accepts country identifier (en, ru, fr)

async def app():
    result = await weather.get(city='Moscow')
    print(result.name)  # City name
    print(result.coord.lat, result.coord.lon)  # Coords of your city
    print(result.weather[0].description)  # Weather description

asyncio.run(app())

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

Uploaded Source

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