feat: add site prefix column to device and rack tables

- derive prefix from the first word of the site name
- display prefix as the first data column
- support NetBox 4.6.5 through 4.6.x
- add packaging, installation documentation, and tests
This commit is contained in:
2026-07-23 10:36:57 +02:00
commit 27cc25f648
8 changed files with 182 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "netbox-site-prefix"
version = "1.0.0"
description = "Adds a site-name prefix column to NetBox device and rack tables."
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [
{ name = "NetBox Site Prefix contributors" },
]
classifiers = [
"Framework :: Django",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
]
[tool.setuptools.packages.find]
include = ["netbox_site_prefix*"]