HP Network Automation Framework (HPNAPy) is a Python library for automating HP/Aruba network devices. Current version 1.0.7 provides a simple API for SSH/CLI interactions with HP Comware and ProVision based switches. Release cadence is sporadic, with limited recent activity.
pip install hpnapyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize a switch connection and run a show command.
Use `from hpnapy import HpnaSwitch` instead of `from hpnapy.hpna import HpnaSwitch`.
Check device_type documentation or use known strings: 'HP_ProVision', 'HP_Comware'.
Use threads or asyncio via loop.run_in_executor for concurrent connections.