dlipower-1.0.176


توضیحات

Control digital loggers web power switch
ویژگی مقدار
سیستم عامل POSIX :: SunOS/Solaris
نام فایل dlipower-1.0.176
نام dlipower
نسخه کتابخانه 1.0.176
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Dwight Hubbard
ایمیل نویسنده dwight@dwighthubbard.com
آدرس صفحه اصلی https://github.com/dwighthubbard/python-dlipower/
آدرس اینترنتی https://pypi.org/project/dlipower/
مجوز BSD
Digital Loggers Network Power Switch Python Module ************************************************** .. image:: https://img.shields.io/travis/dwighthubbard/python-dlipower.svg :target: https://travis-ci.org/dwighthubbard/python-dlipower .. image:: https://img.shields.io/coveralls/dwighthubbard/python-dlipower.svg :target: https://coveralls.io/r/dwighthubbard/python-dlipower .. image:: https://img.shields.io/pypi/v/dlipower.svg :target: https://pypi.python.org/pypi/dlipower/ .. image:: https://img.shields.io/badge/python-3.4,3.5,3.6-blue.svg :target: https://pypi.python.org/pypi/dlipower/ .. image:: https://img.shields.io/pypi/l/dlipower.svg :target: https://pypi.python.org/pypi/dlipower/ .. image:: https://readthedocs.org/projects/dlipower/badge/?version=latest :target: http://dlipower.readthedocs.org/en/latest/ :alt: Documentation Status DESCRIPTION =========== This is a python module and a script to mange the Digital Loggers Web Power switch. The module provides a python class named PowerSwitch that allows managing the web power switch from python programs. When run as a script this acts as a command line utility to manage the DLI Power switch. SUPPORTED DEVICES ================= This module has been tested against the following Digital Loggers Power network power switches: * ProSwitch * WebPowerSwitch II * WebPowerSwitch III * WebPowerSwitch IV * WebPowerSwitch V * Ethernet Power Controller III Example ======= .. code-block:: python import dlipower print('Connecting to a DLI PowerSwitch at lpc.digital-loggers.com') switch = dlipower.PowerSwitch(hostname="lpc.digital-loggers.com", userid="admin") print('Turning off the first outlet') switch.off(1) print('The powerstate of the first outlet is currently', switch[0].state) print('Renaming the first outlet as "Traffic light"') switch[0].name = 'Traffic light' print('The current status of the powerswitch is:') print(switch) Connecting to a DLI PowerSwitch at lpc.digital-loggers.com Turning off the first outlet The powerstate of the first outlet is currently OFF Renaming the first outlet as "Traffic light" The current status of the powerswitch is: DLIPowerSwitch at lpc.digital-loggers.com Outlet Hostname State 1 Traffic light OFF 2 killer robot ON 3 Buiten verlicti ON 4 Meeting Room Li OFF 5 Brocade LVM123 ON 6 Shoretel ABC123 ON 7 Shortel 24V - T ON 8 Shortel 24V - T ON


نحوه نصب


نصب پکیج whl dlipower-1.0.176:

    pip install dlipower-1.0.176.whl


نصب پکیج tar.gz dlipower-1.0.176:

    pip install dlipower-1.0.176.tar.gz