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/ >.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何获取元素的文本值   javascript多websockets java   java无法在solaris中为非root用户打开选择器   SwingJava。如何使Jtable特定单元格不可选择?   java Android Studio从drawable中的文件夹获取图像   数组for循环中需要的Java变量   在Java中打印数组的索引   java HystrixCommand在Glassfish中运行时未通过JMX暴露   java Spring boot如何配置多个数据源   多线程Java threadsafe集合,在移除/获取时进行排序   java从ItemStack获取项目槽   eclipse中的java Access弹出菜单是用菜单(控件父级)构造函数创建的   java从POJO调用基于Spring的web应用程序类   使用文件集时,java Ant javadoc不会产生任何结果   java Jetty多个接受程序被阻止,等待锁定,对象被其他接受程序锁定   我不断得到的java在使用Comparable时找不到符号错误   java如何从<a href标记中提取特定url?   java如何在运行时向ScrollView添加文本?   java如何以波浪模式移动对象?   JavaSpring:如何使用注释注入字段