Skip to main content

[!IMPORTANT] This project is under development. All source code and features on the main branch are for the purpose of testing or evaluation and not production ready.

PowerManagement

Module for managing power (Raritan, APC, Digital Loggers, ipmi, etc. [powercycle, power off, reset])

How to use

Install module and from module import eg.Ipmi

Initialization:

PowerManagement(connection, host, ip, username, password)

host and ip can be used interchangeably. connection is an object from mfd_connect and is used for remote execution

Attributes:

States - enums are defined for every tool, so IpmiStates


Implemented tools:

Ipmi - implemented controlling via IPMITool and IPMIUtil
PDU - controlling power switch devices via SNMP
DLI - controlling Digital Loggers power switch devices
CCSG - controlling power switch devices via CCSG
SYSTEM - controlling power via system calls


Implemented methods

Every class that inherits from PowerManagement (IPMI, PDU, CCSG) overrides this abstract method:

set_state(**kwargs) -> bool - setting wanted state from available states

Methods are described for each implemented tool individually in theirs README.


OS supported:

  • WINDOWS
  • LNX
  • FREEBSD
  • ESXI

Issue reporting

If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.

Metadata

Release files for mfd-powermanagement 1.12.2

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

Built distribution (wheel)

Table of built distributions (wheels) for mfd-powermanagement 1.12.2
File Interpreter ABI Platform Actions
mfd_powermanagement-1.12.2-py3-none-any.whl Python 3 none any Details for mfd_powermanagement-1.12.2-py3-none-any.whl

Release files / mfd_powermanagement-1.12.2-py3-none-any.whl

Download URL mfd_powermanagement-1.12.2-py3-none-any.whl
Size 19.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
377f2fe349a1d3b9b4b7423a1da7d7d1f52f7f15bb8d464081a5e2c0bdc21fa9
BLAKE2b-256 checksum
How to use checksums
6fca376ee8bb81b5b7c8b1b1b2d662a4b64c8ba36f74fc603ae602963dea8123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for mfd-powermanagement 1.12.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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