Registry / devops / netapp-lib

netapp-lib

JSON →
library2021.6.25pypypiunverified

netapp-lib is a Python library required for Ansible deployments to interact with NetApp storage systems. It provides APIs for managing NetApp ONTAP and E-Series storage. Current version: 2021.6.25. Release cadence is sporadic.

pip install netapp-lib
INSTALL
IMPORT
SIG · NETAPP-LIB
N
netapp-lib
devopspythonv2021.6.25
Install
2.2s avg
Import
Disk
28MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2021.6.25 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 30.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.2s · import 0.000s · 31MB
28MB installed
● package 28MB
Code
Verified usage

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

NaServer
from netapp_lib.api.zapi import NaServer
from netapp_lib.api.zapi import NaServer

Connect to NetApp ONTAP and get system version

from netapp_lib.api.zapi import NaServer # Connect to a NetApp ONTAP system server = NaServer('10.0.0.1', 443) server.set_transport_type('HTTPS') server.set_server_type('ONTAP') # Set admin credentials - in production use environment variables server.set_admin_user('admin', 'password') # nosec # Test connection api = NaElement('system-get-version') result = server.invoke_element(api) print(result.to_string())
Debug
Known issues
breakingnetapp-lib is shipped with Ansible, but manually installed versions may conflict. Always use the version bundled with your Ansible installation to avoid incompatibility.
fix
If using Ansible, do not install netapp-lib separately; use the version that comes with the ansible package.
affects: all
deprecatedThis library is in maintenance mode and receives only critical updates. It is replaced by the NetApp Ansible collection's own modules; direct use of netapp-lib is discouraged for new projects.
fix
Consider using the NetApp ONTAP REST API directly or the na_ontap_* modules in Ansible.
affects: all
gotchaThe import path uses underscores (netapp_lib) not hyphens (netapp-lib). Many users mistakenly use the PyPI name directly.
fix
Use 'import netapp_lib' or 'from netapp_lib.api.zapi import ...'
affects: all
Upgrade
Version history
2021.6.25latest on PyPI · released Aug 3, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
netapp-lib — pip install netapp-lib · libregistry