wakeonlan
A small python module for wake on lan.
What it is and what it does
wakeonlan is a lightweight Python module that implements the wake-on-LAN protocol to remotely power on computers across a network. It sends specially formatted magic packets to a target MAC address, optionally with SecureOn password authentication, and can route packets through specific network interfaces or external hosts. The package works as both a Python library and a standalone command-line tool.
Typical use cases include remote system administration, lab automation, and power management in networked environments. The module requires only typing_extensions as a runtime dependency and supports Python 3.10 and later. It is actively maintained, production-stable, and carries no known security vulnerabilities.
Use it for:
- Wake a single remote computer by MAC address for scheduled maintenance or remote access.
- Power on multiple computers in sequence for lab or cluster initialization.
- Integrate wake-on-LAN into automation scripts or system administration tools.
- Route magic packets through a specific network interface or external gateway for cross-subnet waking.
- Enforce SecureOn password authentication when waking sensitive network devices.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Sends wake-on-LAN magic packets to power on computers remotely by MAC address, with support for SecureOn passwords, custom hosts, ports, and network interfaces.
Yes. wakeonlan is a stable, actively maintained, single-purpose tool with minimal dependencies and no security issues. Install it if you need to remotely power on computers via wake-on-LAN; the low friction and permissive MIT license make it a straightforward choice. The only prerequisite is that wake-on-LAN must be enabled in your target hardware's BIOS.
Install
wakeonlan on PyPI
pip
pip install wakeonlanuv
uv add wakeonlanpoetry
poetry add wakeonlanInstalling wakeonlan
Before you install
Low friction: pure Python wheel with a single lightweight dependency (typing_extensions). Active maintenance with a recent release 47 days ago and 309 repository stars.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal attribution requirements—no licensing friction for any use case.
Quickstart
pip install wakeonlan
import wakeonlan
wakeonlan.wake('ff:ff:ff:ff:ff:ff')
# Or with custom host and port:
wakeonlan.wake('ff:ff:ff:ff:ff:ff', host='192.168.1.1', port=9)
Wake-on-LAN must be enabled in the target computer's BIOS; the target computer must have a MAC address but does not need an IP address at wake time.
Verify before relying
- Whether the package handles IPv6 wake-on-LAN in addition to IPv4 (CLI shows both flags but Python API documentation is not detailed).
- Performance characteristics when waking many computers in sequence or in parallel.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing_extensions |
| Maintenance | actively maintained — 47 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 209,215/month — #9,517 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: wakeonlan-4.0.0-py3-none-any.whl
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
flux-ledControls Magic Home and Surp Life WiFi LED…
copyleft · top 15,000 on PyPI
magic-wormholeMagic Wormhole transfers files, directories,…
permissive · top 15,000 on PyPI
getmacRetrieves MAC addresses of local network…
permissive · top 15,000 on PyPI
yeelightControl YeeLight WiFi RGB LED bulbs over LAN…
permissive · top 15,000 on PyPI
midea-localControl Midea M-Smart appliances over local…
permissive · top 15,000 on PyPI
broadlinkA Python module and CLI for discovering,…
permissive · top 15,000 on PyPI
netifacesProvides portable access to network interface…
permissive · top 5,000 on PyPI
tinytuyaControls and monitors Tuya WiFi smart devices…
permissive · top 15,000 on PyPI
samsungtvwsA Python library for remotely controlling…
copyleft · top 15,000 on PyPI
netifaces-plusRetrieves network interface information…
permissive · top 15,000 on PyPI