{"id":45110,"library":"hpnapy","title":"HPNAPy","description":"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.","status":"active","version":"1.0.7","language":"python","source_language":"en","source_url":"https://github.com/spenceation/hpnapy","tags":["network-automation","hp","aruba","ssh"],"install":[{"cmd":"pip install hpnapy","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"SSH transport for network device connections","package":"paramiko","optional":false}],"imports":[{"wrong":"from hpnapy import HpnaSwitch","symbol":"NAInterface","correct":"from hpnapy import NAInterface"}],"quickstart":{"code":"from hpnapy import HpnaSwitch\nswitch = HpnaSwitch(host='10.0.0.1', username='admin', password='password', device_type='HP_ProVision')\noutput = switch.send_command('display version')\nprint(output)","lang":"python","description":"Initialize a switch connection and run a show command."},"warnings":[{"fix":"Use `from hpnapy import HpnaSwitch` instead of `from hpnapy.hpna import HpnaSwitch`.","message":"In version 1.0.0, the import path changed from `hpnapy.hpna` to `hpnapy`.","severity":"breaking","affected_versions":"<=0.9.9"},{"fix":"Check device_type documentation or use known strings: 'HP_ProVision', 'HP_Comware'.","message":"The `device_type` parameter in HpnaSwitch expects specific values like 'HP_ProVision', 'HP_Comware'. Incorrect values will raise errors.","severity":"deprecated","affected_versions":"all"},{"fix":"Use threads or asyncio via loop.run_in_executor for concurrent connections.","message":"Library does not support async connections; all I/O is synchronous blocking.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.0.7':18 'activ':40 'api':22 'aruba':45 'autom':4,12,43 'base':31 'cadenc':34 'comwar':28 'current':16 'devic':15 'framework':5 'hp':2,27,44 'hp/aruba':13 'hpnapi':1,6 'interact':25 'librari':10 'limit':38 'network':3,14,42 'network-autom':41 'provid':19 'provis':30 'python':9 'recent':39 'releas':33 'simpl':21 'sporad':36 'ssh':46 'ssh/cli':24 'switch':32 'version':17","created_at":"2026-06-07T12:53:24.306609+00:00","updated_at":"2026-06-07T12:53:24.306609+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/spenceation/hpnapy","github":"https://github.com/spenceation/hpnapy","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}