Skip to main content
https://img.shields.io/travis/dwighthubbard/python-dlipower.svg https://img.shields.io/coveralls/dwighthubbard/python-dlipower.svg https://img.shields.io/pypi/v/dlipower.svg https://img.shields.io/badge/python-3.4,3.5,3.6-blue.svg https://img.shields.io/pypi/l/dlipower.svg 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

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

Release files for dlipower 1.0.176

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dlipower 1.0.176
File Size Uploaded
dlipower-1.0.176.tar.gz 13.4 kB Details

Release files / dlipower-1.0.176.tar.gz

Download URL dlipower-1.0.176.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5fb0f857bdc5a062cce179aacd2635e6ad3109957e799b4e50db0d10995be704
BLAKE2b-256 checksum
How to use checksums
7dd08ca8d5a8ab971c8722521afcceaaf2ebef899bc08d9e39f8416387496ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.176 This release

1 release file

1.0.174

1 release file

0.7.152

1 release file

0.7.125

1 release file

0.7.117

1 release file

0.7.114

1 release file

0.7.108

1 release file

0.7.106

1 release file

0.2.126

1 release file

0.2.117

1 release file

0.2.116

0.2.114

1 release file

0.2.75

1 release file

0.2.40

1 release file

0.2.33

1 release file

0.2.32

1 release file

0.2.23

1 release file

0.2.22

1 release file

0.2.20

1 release file

0.2.19

1 release file

0.2.18

1 release file

0.2.17

1 release file

0.2.16

1 release file

0.2.15

1 release file

0.2.14

1 release file

0.2.13

1 release file

0.2.12

1 release file

0.2.11

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

3 release files

0.2.5

1 release file

0.2.4

1 release file

0.2.3

2 release files

0.2.2

3 release files

0.2.1

3 release files

0.2.0

3 release files

0.1.9

3 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.1

1 release file

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page