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
Examples use the configuration shown in Configuration
Wake a specific host:
$ wake host abcd
Waking host "abcd"
Wake all hosts:
$ wake host --all
Waking host "abcd"
Waking host "wxyz"
Show hosts:
$ wake show
Hostname MAC Address IP Address Port
---------- ----------------- --------------- ------
abcd AA:BB:CC:DD:EE:FF 255.255.255.255 9
wxyz 00:11:22:33:44:55 192.168.0.255 7
Configuration
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 = "abcd"
mac = "AABBCCDDEEFF"
[[ hosts ]]
name = "wxyz"
mac = "00:11:22:33:44:55"
ip = "192.168.0.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
Built Distribution
File details
Details for the file py_wake_cli-2.0.5.tar.gz
.
File metadata
- Download URL: py_wake_cli-2.0.5.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 247d2d59ae4aab771f1ab7da0a6aefa3d02ee0906735d257df00a2b34a6a00ec |
|
MD5 | 91e54582a693c945bd5c9e8fdfd1ae7e |
|
BLAKE2b-256 | 5c93338bfacd459be2855d68232a1683e07335420d21de3794e264395596cd47 |
File details
Details for the file py_wake_cli-2.0.5-py3-none-any.whl
.
File metadata
- Download URL: py_wake_cli-2.0.5-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f14578a2056d7ed59cf766708342953ae31d7a36f448f364920124119b509f |
|
MD5 | 491e09b2be2864b21f34340b0ea4d750 |
|
BLAKE2b-256 | f436114f66afdf9ee418f9eb4b3b025d8210e073769f21a9871033ed9a84082b |