Skip to main content

NetBox plugin: visual floor-plan management linked to Sites and Locations, with DXF/DWG import

Project description

netbox-cadplan

NetBox plugin for visual floor-plan management. A plan is attached to a NetBox Site (required) and, optionally, to a Location within that site, based on an imported DXF/DWG file. The plan is split into zones associated with locations (descendant Locations of the plan's Location, or the whole site if no Location is specified), with the SVG of each location displayed in a dedicated tab on its NetBox page.

Compatibility

Package NetBox Python
0.1.x 4.6.0 – 4.6.99 ≥ 3.10

Installation

1. Install the package

pip install netbox-cadplan
# or from source:
pip install git+https://github.com/simonlacroix/netbox-cadplan.git

2. Enable the plugin in NetBox

Add the plugin to configuration.py (or configuration/plugins.py depending on your setup):

PLUGINS = [
    # ... other plugins
    'netbox_cadplan',
]

3. Run migrations and restart NetBox

python manage.py migrate netbox_cadplan
sudo systemctl restart netbox netbox-rq

Usage

  • Import a DXF/DWG file to create a Plan, linked to a Site and optionally a Location.
  • The plan is automatically split into zones matched to Locations descending from the plan's scope.
  • Each Location gets a dedicated tab showing the SVG of its zone.
  • Objects (device types with a configured plan shape) can be placed on a zone and repositioned interactively.
  • Plans can be re-exported to DXF.

License

MIT — see LICENSE.

Contributors

Developer setup

Quick setup for contributors — creates a virtualenv, installs development dependencies and installs the pre-commit git hooks.

PowerShell (Windows):

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
pip install -e ".[dev]"
pre-commit install
pre-commit run --all-files

POSIX (macOS / Linux):

python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -e '.[dev]'
pre-commit install
pre-commit run --all-files

If you prefer automation, run scripts/bootstrap.ps1 on Windows or scripts/bootstrap.sh on POSIX systems to perform these steps.

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_cadplan-0.2.0.tar.gz (75.2 kB view details)

Uploaded Source

Built Distribution

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

netbox_cadplan-0.2.0-py3-none-any.whl (84.9 kB view details)

Uploaded Python 3

File details

Details for the file netbox_cadplan-0.2.0.tar.gz.

File metadata

  • Download URL: netbox_cadplan-0.2.0.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for netbox_cadplan-0.2.0.tar.gz
Algorithm Hash digest
SHA256 681ef10f0c2e6c5e09c96edfe52cfb8927d2778c4e73d0517029c9b4507331b8
MD5 1e393676eb6ef4c43a85fb777efaf8b1
BLAKE2b-256 009eb0e46e47bb08210c6b7b69ac2e832c19884ebae8123cbecd584078a6cef2

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_cadplan-0.2.0.tar.gz:

Publisher: publish.yml on SelfSimon/netbox-cadplan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netbox_cadplan-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: netbox_cadplan-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 84.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for netbox_cadplan-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e43bb1319e31c5befff05ac86da27740a35bc8209d997abe1c0011b372502490
MD5 928d5b938c5bce22da1d36aed34ba10b
BLAKE2b-256 640bacc8b04ad29cb2b31a25e07202d81d2454a085e85efd02ef9df63a5af2eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for netbox_cadplan-0.2.0-py3-none-any.whl:

Publisher: publish.yml on SelfSimon/netbox-cadplan

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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