Skip to main content

API-first NetBox CLI + Textual TUI

Project description

netbox-sdk

netbox-sdk is a terminal client and SDK for NetBox with two interfaces built on one core runtime:

  • netbox_cli — Typer command-line interface
  • netbox_tui — Textual terminal applications
  • netbox_sdk — standalone REST API SDK shared by both

Published package names remain:

  • netbox-sdk
  • netbox-console

Quick Start with the Demo Instance

Install:

pip install 'netbox-sdk[all]'

Authenticate against the public demo instance:

nbx demo init

Try a few commands:

nbx demo dcim devices list
nbx demo ipam prefixes list
nbx demo tui
nbx demo dev tui

Install

Minimal SDK only:

pip install netbox-sdk

CLI:

pip install 'netbox-sdk[cli]'

TUI:

pip install 'netbox-sdk[tui]'

Everything:

pip install 'netbox-sdk[all]'

With uv as a user tool:

uv tool install --force 'netbox-sdk[cli]'

Developer checkout:

git clone https://github.com/emersonfelipesp/netbox-sdk.git
cd netbox-sdk
uv sync --dev --extra cli --extra tui --extra demo
uv run nbx --help

Common Commands

nbx init
nbx dcim devices list
nbx dcim devices get --id 1
nbx tui
nbx dev tui
nbx logs

Architecture

  • netbox_sdk owns config, auth, caching, schema parsing, request resolution, shared formatting, and demo helpers.
  • netbox_cli owns the nbx command tree and lazy-loads netbox_tui where needed.
  • netbox_tui owns all Textual apps, themes, widgets, and TCSS.

Contributor Workflow

uv sync --dev --extra cli --extra tui --extra demo
uv run pre-commit install --hook-type pre-commit --hook-type pre-push
uv run pre-commit run --all-files
uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_sdk-0.0.5.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_sdk-0.0.5-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file netbox_sdk-0.0.5.tar.gz.

File metadata

  • Download URL: netbox_sdk-0.0.5.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for netbox_sdk-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7a51f456b21d4b5ad403a2d882b5b27c5273076f3484c0616d9c792ebbc2d5c3
MD5 f5eb3bc4b51a39ad498481e65369ed29
BLAKE2b-256 cdba08b96432f6c911b6da88e38c099012ae6cfa19172aef0519b6385a9504b7

See more details on using hashes here.

File details

Details for the file netbox_sdk-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: netbox_sdk-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for netbox_sdk-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 594229c43860b7670d5b5b624ad4b9008e129b31f4e37b5eb9652f23bfe4ada8
MD5 557726f0ada582ef824d38c3cedcd468
BLAKE2b-256 6a908a4112bc1711953377452f8ead5809264a7b3b151fa3415cbf8fd98da61f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page