napalm
Network Automation and Programmability Abstraction Layer with Multivendor support
What it is and what it does
NAPALM is a Python library that abstracts network device vendor differences behind a single API, letting you write automation code once and run it against multiple supported platforms. It handles the low-level details of connecting via SSH, NETCONF, or vendor APIs, and provides methods to retrieve device facts, configuration data, and operational state, as well as to push configuration changes.
The library is designed for network engineers and automation platforms (Ansible, SaltStack, StackStorm) that need to manage heterogeneous networks without rewriting logic for each vendor. It depends on vendor-specific libraries like netmiko, junos-eznc, and ncclient to handle device communication, and uses textfsm and jinja2 for parsing and templating. Device-specific caveats and feature requirements are documented, and the library provides a CLI tool for testing connectivity and basic operations.
Use it for:
- Retrieve operational data (facts, interfaces, routes) from multiple vendor devices in a single script.
- Push configuration changes to routers from different vendors using a unified method call.
- Integrate network device management into Ansible playbooks or SaltStack states without vendor-specific modules.
- Validate network device configurations by comparing running and intended state across a fleet.
- Build custom network automation tools that work across multiple supported network operating systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
NAPALM provides a unified Python API to interact with network devices from multiple vendors, abstracting away vendor-specific differences for configuration management and data retrieval.
Yes—if you manage or automate networks with multiple vendor devices. NAPALM is actively maintained, has no known vulnerabilities, and is widely adopted. The 15 runtime dependencies are substantial but necessary for vendor support; verify your target devices are in the supported list before committing. Requires Python 3.10+.
Install
napalm on PyPI
pip
pip install napalmuv
uv add napalmpoetry
poetry add napalmInstalling napalm
Before you install
Low install friction with a pure-Python wheel. Active maintenance with a release 18 days ago and 2486 GitHub stars. Requires Python 3.10+. Brings 15 runtime dependencies including paramiko, netmiko, junos-eznc, and ncclient for vendor-specific device communication.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for enterprise network automation workflows.
Quickstart
pip install napalm
from napalm import get_network_driver
driver = get_network_driver('ios')
device = driver('hostname', 'username', 'password')
device.open()
facts = device.get_facts()
device.close()
Requires network device access with valid credentials; device must support one of NAPALM's supported operating systems and may require specific feature enablement (e.g., XML agent on IOS-XR, NXAPI on NXOS).
Verify before relying
- Exact list of supported network operating systems and device models beyond the reference to external documentation.
- Performance characteristics when managing large numbers of devices or retrieving large configuration files.
- Whether all 15 runtime dependencies are required for basic use or if some are optional per vendor.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 15 — paramiko, requests, textfsm, jinja2, netaddr, pyyaml, pyeapi, netmiko, junos-eznc, lxml, ncclient, ttp, ttp-templates, netutils, typing-extensions |
| Maintenance | actively maintained — 18 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 205,706/month — #9,583 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: napalm-5.2.0-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
netmikoNetmiko simplifies SSH connections to network…
permissive · top 5,000 on PyPI
catalystwanProvides a Python SDK for programmatic…
unclear · top 15,000 on PyPI
pynetgearpyNetgear provides a Python API to communicate…
permissive · top 15,000 on PyPI
asyauthProvides unified authentication handling across…
unclear · top 15,000 on PyPI
rest.connectorProvides REST API connectivity for network…
permissive · top 15,000 on PyPI
ncclientncclient is a Python library that implements…
permissive · top 5,000 on PyPI
ansibleAnsible is an IT automation system that handles…
copyleft · top 5,000 on PyPI
castellanCastellan provides a unified interface for…
permissive · top 15,000 on PyPI
asusrouterAsynchronous API wrapper for querying and…
permissive · top 15,000 on PyPI
unicryptoProvides a unified interface to cryptographic…
unclear · top 15,000 on PyPI