{"id":27655,"library":"cloudshell-pdu-core","title":"CloudShell PDU Core","description":"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).","status":"maintenance","version":"1.0.21","language":"python","source_language":"en","source_url":"https://github.com/QualiSystems/cloudshell-pdu-core","tags":["cloudshell","pdu","qualisystems"],"install":[{"cmd":"pip install cloudshell-pdu-core","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Provides base QualiSystems utilities and modeling.","package":"cloudshell-core","optional":true}],"imports":[{"note":"Use dot notation (cloudshell.pdu.core) not underscores.","wrong":"from cloudshell_pdu_core.driver import PDUResourceDriver","symbol":"PDUResourceDriver","correct":"from cloudshell.pdu.core.driver import PDUResourceDriver"},{"note":"","wrong":null,"symbol":"PowerControlInterface","correct":"from cloudshell.pdu.core.interfaces import PowerControlInterface"}],"quickstart":{"code":"from cloudshell.pdu.core.driver import PDUResourceDriver\nfrom cloudshell.pdu.core.interfaces import PowerControlInterface\n\nclass MyPDUDriver(PDUResourceDriver):\n    def __init__(self):\n        super().__init__()\n        # No authentication required for this example\n\ndriver = MyPDUDriver()\nprint(\"PDU driver initialized successfully.\")","lang":"python","description":"Minimal example of subclassing PDUResourceDriver."},"warnings":[{"fix":"Use 'from cloudshell.pdu.core.driver import PDUResourceDriver'","message":"Import paths use 'cloudshell.pdu.core' (dots), not underscores. Wrong imports from underscores will fail.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.8+","message":"Python 3.7 and lower are no longer supported; requires Python >= 3.8.","severity":"deprecated","affected_versions":">=1.0.20"},{"fix":"Subclass PDUResourceDriver and implement abstract methods.","message":"The package is a utility library, not a standalone driver. Direct instantiation of PDUResourceDriver without a concrete implementation will raise errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use: from cloudshell.pdu.core.driver import PDUResourceDriver","cause":"Importing with underscores instead of dots.","error":"ModuleNotFoundError: No module named 'cloudshell_pdu_core'"},{"fix":"Subclass PDUResourceDriver and implement all abstract methods from PowerControlInterface.","cause":"Trying to instantiate PDUResourceDriver directly without implementing required methods.","error":"TypeError: Can't instantiate abstract class PDUResourceDriver with abstract methods ..."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}