Python Wake-on-lan client
pywake的Python项目详细描述
python唤醒局域网客户端,具有高级选项和ipv6功能。
功能
- 不需要特权(发送udp数据包)
- 高级配置选项
- 源IP地址
- 目标IP地址
- 目标UDP端口
- 目标MAC地址
- 默认情况下是ipv6(现在谁使用ipv4)
- 包含可在其他脚本中使用的可重用模块
位置
PyWake套餐可从奶酪店(PYPI)获得 在https://pypi.python.org/pypi/pywake
project page托管在github上。
如果您从未使用过git或参与过github上的项目, 有一个quick start guide。
如果你发现了什么问题或者知道一个缺失的功能,请 create an issue关于项目 第页。如果你觉得不方便或者有安全问题,你可以 同时在<;devel@beli.sk>;处给我一行。
如何使用
安装
pip install pywake
示例
使用默认设置唤醒mac(ipv6 udp数据包到“所有节点”多播 地址ff02::1和端口9-丢弃):
pywake 00:11:22:33:44:55
您可能需要为多播数据包指定一个源接口(或作用域) 如果有更多的可能性:
pywake -d ff02::1%eth0 00:11:22:33:44:55
或者使用普通的旧IPv4 UDP子网定向广播:
pywake -4 -d 192.168.1.255 00:11:22:33:44:55
许可证
版权所有2013 Michal Belica<;devel@beli.sk>;
PyWake is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PyWake is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with PyWake. If not, see < http://www.gnu.org/licenses/ >.