CloudShell PDU Core

raw JSON →
1.0.21 verified Sat May 09 auth: no python maintenance

QualiSystems PDU core package for managing Power Distribution Units (PDUs) in CloudShell sandboxes. Version 1.0.21 provides abstract base classes and interfaces for PDU integration, including power control commands and resource modeling. Release cadence is low (approximately yearly).

pip install cloudshell-pdu-core
error ModuleNotFoundError: No module named 'cloudshell_pdu_core'
cause Importing with underscores instead of dots.
fix
Use: from cloudshell.pdu.core.driver import PDUResourceDriver
error TypeError: Can't instantiate abstract class PDUResourceDriver with abstract methods ...
cause Trying to instantiate PDUResourceDriver directly without implementing required methods.
fix
Subclass PDUResourceDriver and implement all abstract methods from PowerControlInterface.
gotcha Import paths use 'cloudshell.pdu.core' (dots), not underscores. Wrong imports from underscores will fail.
fix Use 'from cloudshell.pdu.core.driver import PDUResourceDriver'
deprecated Python 3.7 and lower are no longer supported; requires Python >= 3.8.
fix Upgrade to Python 3.8+
gotcha The package is a utility library, not a standalone driver. Direct instantiation of PDUResourceDriver without a concrete implementation will raise errors.
fix Subclass PDUResourceDriver and implement abstract methods.

Minimal example of subclassing PDUResourceDriver.

from cloudshell.pdu.core.driver import PDUResourceDriver
from cloudshell.pdu.core.interfaces import PowerControlInterface

class MyPDUDriver(PDUResourceDriver):
    def __init__(self):
        super().__init__()
        # No authentication required for this example

driver = MyPDUDriver()
print("PDU driver initialized successfully.")