NetBox SQIDs
Alpha -- this plugin is functional but under active development. The API and SQID encoding may change before 1.0.
Short, URL-safe, globally unique identifiers for every NetBox object.
NetBox SQIDs adds a computed sqid property to every model in your NetBox instance. SQIDs encode the content type and primary key into a compact string that can be shared, bookmarked, and resolved back to the original object — no database changes required.
Quick Example
>>> device = Device.objects.first()
>>> device.sqid
'WK1J'
>>> from netbox_sqids.sqids import resolve_sqid
>>> resolve_sqid('WK1J')
<Device: my-switch>
Visit /s/WK1J/ in your browser to be redirected to the device's detail page.
Features
- Zero-config — install and every model gets a
.sqidproperty - No migrations — pure computed properties, no database changes
- Globally unique — SQIDs are unique across all models
- URL-safe — curated 33-character alphabet, no ambiguous characters
- Redirect views — resolve any SQID via browser or API
- Short URLs — optional root-level routes like
/s/WK1J/ - Visible in the UI -- every object detail page shows its SQID on a button that copies the short link
Requirements
| Dependency | Version |
|---|---|
| NetBox | >= 4.5.0 |
| Python | >= 3.12 |
Installation
pip install netbox-sqids
Add to your NetBox configuration.py:
PLUGINS = ["netbox_sqids"]
Restart NetBox. That's it.
Configuration
All settings are optional:
PLUGINS_CONFIG = {
"netbox_sqids": {
"min_length": 4, # Minimum SQID length (default: 4)
"blocklist": None, # Word blocklist (None = extended default)
"monkeypatched_url_prefix": "s", # Short URL prefix (None to disable)
},
}
URL Routes
| Route | Description |
|---|---|
/plugins/sqids/<sqid>/ |
Browser redirect to object |
/api/plugins/sqids/<sqid>/ |
API redirect to object |
/s/<sqid>/ |
Short browser redirect (configurable) |
/api/s/<sqid>/ |
Short API redirect (configurable) |
Documentation
Full documentation: jsenecal.github.io/netbox-sqids
License
MIT
Metadata
Release files for netbox-sqids 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| netbox_sqids-0.3.0.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| netbox_sqids-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / netbox_sqids-0.3.0.tar.gz
| Download URL | netbox_sqids-0.3.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c49f2c7f46e6ab225347c37ecae57dfa4a095bdafe010e1b1348db5367557f7
|
|
BLAKE2b-256 checksum How to use checksums |
563b0c5a87fe1409828f6722aecbf76273a91c9aed19c99afe3bc50ddd373804
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency logRelease files / netbox_sqids-0.3.0-py3-none-any.whl
| Download URL | netbox_sqids-0.3.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4100248c95084c802c83b8b74ccfd8dbfaa400619b99313d62e6fdb219c3e11b
|
|
BLAKE2b-256 checksum How to use checksums |
46be28d0462ae490d90bf9eb4f9985427d4fece5561510fa76646352c032fc98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 2, 2026.
Transparency log