skillfed

wled

Asynchronous Python client for WLED.

wled v0.23.0 75.7K downloads/30d#14,681 on PyPI156
Permissive license MIT Active released

What it is and what it does

wled is an asynchronous Python client for controlling WLED devices—programmable LED strips that expose a network API. It wraps HTTP communication with aiohttp and handles serialization via mastering and orjson, allowing you to query device state, adjust brightness and color, toggle effects, and manage segments from Python code. The library is designed for integration into home automation systems and third-party applications that need to automate LED behavior without blocking the event loop.

The package targets modern Python (3.11–3.14) and is actively maintained with a permissive MIT license. It depends on standard async ecosystem libraries (aiohttp, yarl, awesomeversion, python-backoff, mashumaro) and installs as a pure wheel with no compiled dependencies, making it straightforward to add to existing projects.

Use it for:

  • Integrate WLED strips into a Home Assistant automation or custom home automation system.
  • Build a Python script to synchronize LED colors with music, time of day, or external events.
  • Monitor and control multiple WLED devices programmatically from a central application.
  • Automate LED brightness and effects based on sensor input or scheduled tasks.
  • Develop a web dashboard or CLI tool that communicates with WLED devices over the network.

Worth the install?

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

An asynchronous Python client library for controlling and monitoring WLED devices over the network, enabling programmatic automation of LED strip behavior.

Yes. The package is actively maintained, carries no known vulnerabilities, installs with low friction, and provides a clean async API for a well-defined task. Install it if you need to control WLED devices from Python; skip it if you have no WLED hardware or prefer synchronous code.

Install

wled on PyPI

pip

pip install wled

uv

uv add wled

poetry

poetry add wled

Installing wled

Before you install

Low friction install with a pure-Python wheel distribution. The package is actively maintained with recent releases and carries no known vulnerabilities. Dependencies are all stable, widely-used async and serialization libraries.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both personal and commercial projects.

Quickstart

pip install wled

import asyncio
from wled import WLED

async def main():
    async with WLED("wled-frenck.local") as led:
        device = await led.update()
        await led.master(on=True, brightness=255)

asyncio.run(main())

Requires Python 3.11 or later; the WLED device must be reachable on the network.

Verify before relying

  • Whether the package supports all WLED firmware versions or only recent ones.
  • Whether network discovery or device auto-detection is available beyond direct hostname/IP.
  • Specific rate limits or throttling behavior when controlling multiple segments or effects.

Package facts

License MIT (permissive)
Python support supports the current Python release (<4.0,>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 6 — aiohttp, awesomeversion, mashumaro, orjson, python-backoff, yarl
Maintenance actively maintained — 86 days since the last release
Last repo commit
First released
Downloads 75,748/month — #14,681 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: wled-0.23.0-py3-none-any.whl

Keywords: api, async, client, home-assistant, led, wled

Development Status :: 4 - BetaFramework :: AsyncIOIntended Audience :: DevelopersNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python Modules

Tags

wled api client pythonasync led control librarywled device automationpython wled integrationsmart led strip controlhome automation led clientwled network control
async-iohome-automationled-control

More Python Modules packages