A simple wakeonlan implementation.
Project description
wake
A simple wakeonlan implementation for waking defined hosts.
Requirements
- Python 3.10.x, 3.11.x
- Linux / macOS
Note: wake is not tested on Windows.
Installation
pip install py-wake-cli
Usage
Usage: wake [OPTIONS] COMMAND [ARGS]...
A simple wakeonlan implementation.
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
host Wake the specified host(s).
show Show all hosts.
Examples
Wake a specific host:
> wake host myhost
Wake all hosts:
> wake host --all
Show hosts:
> wake show
Configure
Hosts should be defined in the file ~/.config/wake.toml
. Every host must have a name
and mac
value; ip
and port
are optional. ip
is an IPv4 address. Optional valid MAC address separators are :
, -
, and .
. The number of characters between separators does not matter. Example formats:
- AA:00:BB:11:CC:22
- AA-00-BB-11-CC-22
- AA00.BB11.CC22
- AA00BB11CC22
Example configuration:
[[ hosts ]]
name = "myhost"
mac = "AABBCCDDEEFF"
[[ hosts ]]
name = "myotherhost"
mac = "00:11:22:33:44:55"
ip = "255.255.255.255"
port = 7
License
Wake is released under the MIT License
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
py_wake_cli-2.0.2.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for py_wake_cli-2.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 695fe6ddbc285835dd5f5fed4193cb0d96c90b7346e9e8a796dcc70846b974d0 |
|
MD5 | a380b78980ad29fb2150f5591564ccd4 |
|
BLAKE2b-256 | 449d708c92cff0006ed5900b5a9fd9f766278256bb2095755f73d9af83f75d51 |