Skip to main content

Networka is a lightweight CLI for network engineers and integrators. Run ad hoc commands or reusable sequences across network devices from multiple vendors, then save the output and compare it with a baseline.

Use Networka for on-demand troubleshooting and before-and-after checks. Pair it with continuous monitoring for alerting, telemetry, and ongoing health checks.

Python 3.15+ Platform License: Apache-2.0 Code style: ruff Type checked with mypy Docs

Getting Started

See how to run a reusable sequence, save the output, and compare it with a baseline.

Networka Setup Demo

Networka setup and command execution demo

Networka vs the alternatives

Networka Ansible Nornir
Primary interface CLI commands YAML playbooks Python scripts
Time to first command Seconds after install After writing playbook + inventory After writing Python script
Learning curve Familiar CLI patterns YAML, Jinja2, modules Python programming
Execution Concurrent by default Sequential by default Depends on implementation
Best for Daily operations, ad-hoc commands Infrastructure-as-code, compliance Custom automation frameworks

Networka is built for network engineers who want to run commands now. Ansible excels at declarative infrastructure-as-code. Nornir shines when you need full Python programmability. Different tools, each great at what they do.

Features

Core Capabilities

  • Multi-vendor network automation: Native support for MikroTik RouterOS, Cisco IOS/IOS-XE/NX-OS, Arista EOS, Juniper JunOS, and more
  • Scalable device management: Execute commands across individual devices or groups
  • Cross-platform compatibility: Scrapli 2 wheels for Linux and Apple Silicon
  • Flexible configuration: YAML and CSV configuration options with powerful device tagging and grouping

Operational Features

  • Command execution: Run single commands or predefined sequences across devices and groups
  • File management: Upload/download files to/from network devices with verification and error handling
  • Device backup: Automated configuration and comprehensive backups with vendor-specific implementations
  • Firmware management: Upgrade, downgrade, and BIOS operations with platform validation
  • CLI session management: Direct CLI access with tmux integration for interactive sessions

Advanced Features

  • Intelligent completions: Context-aware shell completions for devices, groups, and sequences
  • Vendor-aware sequences: Predefined command sets optimized for different network platforms
  • Results management: Organized storage with multiple output formats and automatic timestamping
  • Configuration validation: Schema-based validation with detailed error reporting
  • Credential management: Secure credential handling via environment variables with device-specific overrides

Developer & Integration Features

  • Type safety: Full mypy type checking for reliability and maintainability
  • Modern architecture: Built with scalable scrapli and nornir support
  • Extensible design: Plugin-friendly architecture for adding new vendors and operations
  • Rich output: Professional CLI interface with color coding and structured information display

Installation

System Requirements

  • Operating System: Linux x86-64/arm64 or macOS arm64
  • Python: 3.15 or later
  • Network Access: SSH connectivity to target devices
  • Package Manager: uv (recommended) or pip
  • tmux for nw cli: Install tmux to use the multi-pane CLI command (brew install tmux on macOS, apt install tmux on Debian/Ubuntu). libtmux is installed automatically with Networka.

Install from the checkout

With uv 0.13.10 in this checkout, use a project environment to keep the native driver isolated.

uv sync --locked
uv run --locked nw --version
uv run --locked nw --help

Networka 0.2.0 uses Scrapli 2 via the scrapli==2026.11.12 distribution. An in-place upgrade replaces legacy Scrapli through pip or uv. Early candidate installations that included scrapli2==2.0.4 should use a fresh environment. Networka 0.2.0 targets Linux and Apple Silicon macOS. RouterOS restart confirmation and Cisco enable-password escalation passed in disposable labs. WSL2 remains unverified. Transport selection · Platform compatibility

Quick Start

Inspect a packaged sequence and run it on a RouterOS device. Replace the example address and enter your device credentials when prompted.

nw info system_info --vendor mikrotik_routeros
nw run 192.0.2.10 system_info --platform mikrotik_routeros --interactive-auth

For recurring work, use nw config init to create your configuration and target devices by name.

Library API

Use Networka programmatically in your Python applications:

from network_toolkit import NetworkaClient, DeviceSession

client = NetworkaClient()

with DeviceSession("router1", client.config) as session:
    output = session.execute_command("show version")
    print(output)

See the Library Documentation for:

  • Multi-command workflows with persistent sessions
  • Ad-hoc IP targeting without configuration files
  • Credential handling patterns
  • Integration recipes

One-liners (no config)

Run directly against an IP without creating files. --platform selects the network OS driver; --interactive-auth prompts for credentials.

# MikroTik RouterOS
nw run --platform mikrotik_routeros 192.0.2.10 "/system/identity/print" --interactive-auth
# Cisco IOS-XE
nw run --platform cisco_iosxe 198.51.100.20 "show version" --interactive-auth

Terminology: device_type vs hardware platform vs transport

  • device_type is the logical platform used to select commands and the native connection definition.
  • The inventory platform field describes hardware architecture for firmware.
  • --platform names the logical platform for a raw IP target.
  • --transport selects the Scrapli driver family. The underlying connection backend defaults to OpenSSH. Transport settings

CLI overview

Community & support

Contributing

Have a look through existing Issues and Pull Requests that you could help with. If you'd like to request a feature or report a bug, please create a GitHub Issue using one of the templates provided.

See contribution guide →

Documentation

License

Apache License 2.0 - Free for commercial and personal use. No paid tiers, no enterprise versions, no licensing restrictions.

Community-driven project with contributions from narrowin and network engineers worldwide. See GOVERNANCE.md for maintenance and decision-making model.

Acknowledgments

  • Scrapli - Network device connections
  • Nornir - Network automation framework
  • Netmiko - Multi-vendor CLI connections to network devices
  • Typer - CLI framework
  • Pydantic - Data validation
  • Rich - Terminal formatting

Built for network engineers who value clean, reliable automation

Metadata

Release files for networka 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for networka 0.4.1
File Size Uploaded Provenance Actions
networka-0.4.1.tar.gz 7.3 MB Without provenance Details for networka-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for networka 0.4.1
File Interpreter ABI Platform Actions
networka-0.4.1-py3-none-any.whl Python 3 none any Details for networka-0.4.1-py3-none-any.whl

Total release size: 7.6 MB

Release files / networka-0.4.1.tar.gz

Download URL networka-0.4.1.tar.gz
Size 7.3 MB
Tags Source
SHA-256 checksum
How to use checksums
cf2cfd4236ebb382dac3c287822fccec3cbf1b7091209404e49e3cf0884feff9
BLAKE2b-256 checksum
How to use checksums
e69daf9c4f4dcd9ea97ea0232c4da3e69f705af3d9bab5de02ba70a27c72cb1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / networka-0.4.1-py3-none-any.whl

Download URL networka-0.4.1-py3-none-any.whl
Size 233.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80f785abc1ce771f280028cc5020fd15b898731d3be5d3e9baad67f1b542d399
BLAKE2b-256 checksum
How to use checksums
7be6861cb42246d59c55743cc6ec3c451979fd3de8e8643869e7fbe8db298b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for networka 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page