Installation¶
netbox-sdk requires Python 3.11 or newer.
From PyPI¶
SDK only:
The base package already includes the dependencies required by the async SDK and
the versioned typed SDK, including pydantic and email-validator.
CLI:
TUI:
Everything:
With uv tool¶
From source¶
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
Typed SDK support¶
The repository ships committed OpenAPI bundles and generated Pydantic models for
NetBox 4.5, 4.4, and 4.3. Users do not need to run code generation locally.
Which install should I pick?¶
pip install netbox-sdkif you only need the Python SDKpip install 'netbox-sdk[cli]'if you want thenbxcommandpip install 'netbox-sdk[tui]'if you want to launch Textual TUIs from the package in an existing Python environmentpip install 'netbox-sdk[all]'if you want every interface available locally
Contributor workflow¶
uv run pre-commit install --hook-type pre-commit --hook-type pre-push
uv run pre-commit run --all-files
uv run pytest
Optional demo automation¶
nbx demo init uses Playwright. The browser runtime must be installed separately: