skillfed

accuweather

Python wrapper for getting weather data from AccuWeather API.

accuweather v5.1.0 75.6K downloads/30d#14,702 on PyPI22
Permissive license Apache-2.0 Active released

What it is and what it does

accuweather is an async Python client for the AccuWeather weather API. It wraps aiohttp to provide a non-blocking interface for fetching current weather conditions, daily forecasts, and hourly forecasts for specified coordinates. The package handles API authentication, location lookup, and response parsing, and raises specific exceptions (InvalidApiKeyError, InvalidCoordinatesError, RequestsExceededError) to help you handle common failure modes.

The library is built for modern Python (3.13+) with type hints and is designed to integrate into async applications. It depends on aiohttp for HTTP transport, orjson for fast JSON parsing, and yarl for URL handling. You provide an API key, coordinates, and an aiohttp ClientSession, then call async methods to retrieve weather data.

Use it for:

  • Fetch current weather conditions for a location in an async web service or bot
  • Build a weather dashboard that updates daily and hourly forecasts without blocking
  • Integrate AccuWeather data into a home automation or IoT monitoring system
  • Query weather for multiple locations concurrently in a data pipeline
  • Provide localized weather information in a multi-language application

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Async Python wrapper for fetching current conditions, daily forecasts, and hourly forecasts from the AccuWeather API using aiohttp.

Yes, if you need AccuWeather data in an async Python application and can meet the Python 3.13+ requirement. Low install friction, active maintenance, no known vulnerabilities, and permissive licensing make it a straightforward choice. The main constraint is the hard Python version floor and the requirement for an AccuWeather API key.

Install

accuweather on PyPI

pip

pip install accuweather

uv

uv add accuweather

poetry

poetry add accuweather

Installing accuweather

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-08-13 with recent releases; requires Python 3.13 or later.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions.

Quickstart

pip install accuweather

import asyncio
from aiohttp import ClientSession
from accuweather import AccuWeather

async def get_weather():
    async with ClientSession() as session:
        accuweather = AccuWeather("YOUR_API_KEY", session, latitude=52.0677904, longitude=19.4795644)
        current = await accuweather.async_get_current_conditions()
        return current

asyncio.run(get_weather())

Requires an AccuWeather API key from https://developer.accuweather.com/subscriptions; Python 3.13 or later.

Verify before relying

  • Rate limits and quota behavior for different AccuWeather subscription tiers
  • Whether the package handles API response schema changes or versioning
  • Performance characteristics with concurrent requests across multiple locations

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.13)
Install friction low — pure-Python wheel
Runtime dependencies 3 — aiohttp, orjson, yarl
Maintenance actively maintained — 170 days since the last release
Last repo commit
First released
Downloads 75,553/month — #14,702 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: accuweather-5.1.0-py3-none-any.whl

Development Status :: 5 - Production/StableOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

accuweather api wrapperasync weather data pythonaccuweather forecast clientweather api integrationcurrent conditions forecasthourly daily weather forecastaiohttp weather client
async-httpweather-apiaiohttp-client

More WWW/HTTP packages