Registry / devops / hpnapy

hpnapy

JSON →
library1.0.7pypypi✓ verified 79d ago

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 hpnapy
INSTALL
IMPORT
SIG · HPNAPY
H
hpnapy
devopspythonv1.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NAInterface
from hpnapy import NAInterface
from hpnapy import HpnaSwitch

Initialize a switch connection and run a show command.

from hpnapy import HpnaSwitch switch = HpnaSwitch(host='10.0.0.1', username='admin', password='password', device_type='HP_ProVision') output = switch.send_command('display version') print(output)
Debug
Known issues
breakingIn version 1.0.0, the import path changed from `hpnapy.hpna` to `hpnapy`.
fix
Use `from hpnapy import HpnaSwitch` instead of `from hpnapy.hpna import HpnaSwitch`.
affects: <=0.9.9
deprecatedThe `device_type` parameter in HpnaSwitch expects specific values like 'HP_ProVision', 'HP_Comware'. Incorrect values will raise errors.
fix
Check device_type documentation or use known strings: 'HP_ProVision', 'HP_Comware'.
affects: all
gotchaLibrary does not support async connections; all I/O is synchronous blocking.
fix
Use threads or asyncio via loop.run_in_executor for concurrent connections.
affects: all
Upgrade
Version history
1.0.7latest on PyPI · released Mar 11, 2020
Audit
Dependencies
paramikorequiredSSH transport for network device connections
Agent activity
18 hits · last 30 days
node
18
Resources
hpnapy — pip install hpnapy · libregistry