mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-02 16:13:05 +02:00
added v3
This commit is contained in:
@ -0,0 +1 @@
|
||||
pip
|
@ -0,0 +1,23 @@
|
||||
###########
|
||||
MIT License
|
||||
###########
|
||||
|
||||
Copyright © 2012 Remco Haszing <remcohaszing@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
@ -0,0 +1,143 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: wakeonlan
|
||||
Version: 3.1.0
|
||||
Summary: A small python module for wake on lan.
|
||||
Home-page: https://github.com/remcohaszing/pywakeonlan
|
||||
License: MIT
|
||||
Author: Remco Haszing
|
||||
Author-email: remcohaszing@gmail.com
|
||||
Requires-Python: >=3.7,<4.0
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Intended Audience :: System Administrators
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Topic :: System :: Networking
|
||||
Classifier: Typing :: Typed
|
||||
Project-URL: Changelog, https://github.com/remcohaszing/pywakeonlan/releases
|
||||
Project-URL: Documentation, http://pywakeonlan.readthedocs.io
|
||||
Project-URL: Issues, https://github.com/remcohaszing/pywakeonlan/issues
|
||||
Project-URL: Repository, https://github.com/remcohaszing/pywakeonlan
|
||||
Project-URL: Sponsor, https://github.com/sponsors/remcohaszing
|
||||
Description-Content-Type: text/x-rst
|
||||
|
||||
#########
|
||||
wakeonlan
|
||||
#########
|
||||
|
||||
.. image:: https://img.shields.io/pypi/v/wakeonlan.svg
|
||||
:target: https://pypi.org/project/wakeonlan/
|
||||
:alt: Pypi version
|
||||
|
||||
.. image:: https://img.shields.io/pypi/pyversions/wakeonlan.svg
|
||||
:target: https://pypi.org/project/wakeonlan/#files
|
||||
:alt: Supported Python versions
|
||||
|
||||
.. image:: https://github.com/remcohaszing/pywakeonlan/actions/workflows/ci.yaml/badge.svg
|
||||
:target: https://github.com/remcohaszing/pywakeonlan/actions/workflows/ci.yaml
|
||||
:alt: Build Status
|
||||
|
||||
.. image:: https://readthedocs.org/projects/pywakeonlan/badge/?version=latest
|
||||
:target: https://pywakeonlan.readthedocs.io/en/latest
|
||||
:alt: Documentation Status
|
||||
|
||||
.. image:: https://codecov.io/gh/remcohaszing/pywakeonlan/branch/master/graph/badge.svg
|
||||
:target: https://codecov.io/gh/remcohaszing/pywakeonlan
|
||||
:alt: Code coverage
|
||||
|
||||
A small python module for wake on lan.
|
||||
|
||||
For more information on the wake on lan protocol please take a look at
|
||||
`Wikipedia <http://en.wikipedia.org/wiki/Wake-on-LAN>`_.
|
||||
|
||||
************
|
||||
Installation
|
||||
************
|
||||
|
||||
::
|
||||
|
||||
pip install wakeonlan
|
||||
|
||||
|
||||
*****
|
||||
Usage
|
||||
*****
|
||||
|
||||
To wake up a computer using wake on lan it must first be enabled in the BIOS
|
||||
settings. Please note the computer you are trying to power on does not have an
|
||||
ip address, but it does have a mac address. The package needs to be sent as a
|
||||
broadcast package.
|
||||
|
||||
|
||||
As a python module
|
||||
==================
|
||||
|
||||
Import the module
|
||||
|
||||
>>> from wakeonlan import send_magic_packet
|
||||
|
||||
|
||||
Wake up a single computer by its mac address
|
||||
|
||||
>>> send_magic_packet('ff.ff.ff.ff.ff.ff')
|
||||
|
||||
|
||||
Wake up multiple computers by their mac addresses.
|
||||
|
||||
>>> send_magic_packet('ff.ff.ff.ff.ff.ff',
|
||||
... '00-00-00-00-00-00',
|
||||
... 'FFFFFFFFFFFF')
|
||||
|
||||
|
||||
An external host may be specified. Do note that port forwarding on that host is
|
||||
required. The default ip address is 255.255.255.255 and the default port is 9.
|
||||
|
||||
>>> send_magic_packet('ff.ff.ff.ff.ff.ff',
|
||||
... ip_address='example.com',
|
||||
... port=1337)
|
||||
|
||||
|
||||
A network adapter may be specified. The magic packet will be routed through this interface.
|
||||
|
||||
>>> send_magic_packet('ff.ff.ff.ff.ff.ff',
|
||||
... interface='192.168.0.2')
|
||||
|
||||
|
||||
As a standalone script
|
||||
======================
|
||||
|
||||
::
|
||||
|
||||
usage: wakeonlan [-h] [-i ip] [-p port] [-n interface] mac address [mac address ...]
|
||||
|
||||
Wake one or more computers using the wake on lan protocol.
|
||||
|
||||
positional arguments:
|
||||
mac address The mac addresses of the computers you are trying to wake.
|
||||
|
||||
optional arguments:
|
||||
-h, --help show this help message and exit
|
||||
-i ip The ip address of the host to send the magic packet to. (default 255.255.255.255)
|
||||
-p port The port of the host to send the magic packet to. (default 9)
|
||||
-n interface The ip address of the network adapter to route the magic packet through. (optional)
|
||||
|
||||
|
||||
************
|
||||
Dependencies
|
||||
************
|
||||
|
||||
- Python 3.x
|
||||
|
||||
|
||||
*******
|
||||
License
|
||||
*******
|
||||
|
||||
`MIT <https://github.com/remcohaszing/pywakeonlan/blob/main/LICENSE.rst>`_ © `Remco Haszing <https://github.com/remcohaszing>`_
|
||||
|
@ -0,0 +1,11 @@
|
||||
../../../bin/wakeonlan,sha256=dPNUU4uNQNanex7R9aRZzHuEMcAq2oH_sGauRcVePcE,237
|
||||
wakeonlan-3.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
wakeonlan-3.1.0.dist-info/LICENSE.rst,sha256=JEcg4RIVHY-CDcrIDuM-M0iQyToGMQmFAbnHV11eoEk,1118
|
||||
wakeonlan-3.1.0.dist-info/METADATA,sha256=YGbxnFj0fKwET-woFct-17V6LhGSTo7z1TA03RTk0QM,4349
|
||||
wakeonlan-3.1.0.dist-info/RECORD,,
|
||||
wakeonlan-3.1.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
wakeonlan-3.1.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
||||
wakeonlan-3.1.0.dist-info/entry_points.txt,sha256=atYdSZ466xt7TcNn5XhOJDAK9_aup3aWyFzQRvZQAPg,44
|
||||
wakeonlan/__init__.py,sha256=urxoYsZgZTnxXYIQmn_51bAYEVMfZvXZ7BpH0u3OH_c,3968
|
||||
wakeonlan/__pycache__/__init__.cpython-311.pyc,,
|
||||
wakeonlan/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: poetry-core 1.8.1
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
@ -0,0 +1,3 @@
|
||||
[console_scripts]
|
||||
wakeonlan=wakeonlan:main
|
||||
|
Reference in New Issue
Block a user