Skip to main content

Adds custom fields 'Tag ID'.

Project description

netbox-tag-id

Description

This NetBox plugin adds a custom field type "Tag ID" and related actions. It allows you to generate, display, and print Code39 identifiers for devices, with customizable format and CUPS printing integration.

Features

  • Adds a "Tag ID" custom field type to NetBox.
  • Automatic generation of identifiers (customizable prefix, suffix, length).
  • Dedicated panel display.
  • Direct tag printing via CUPS (Code39, LibreBarcode font).
  • Customizable fonts and print message.
  • Patches NetBox form to support the Tag ID field.

Installation

  1. Copy the netbox_tag_id folder into your NetBox plugins directory.
  2. Install required Python dependencies (see pyproject.toml).
  3. Add the plugin to your NetBox configuration:
    PLUGINS = [
        "netbox_tag_id",
    ]
    
  4. Apply migrations:
    python manage.py migrate netbox_tag_id
    
  5. Restart NetBox.

Configuration

No mandatory configuration. Tag ID field parameters (prefix, suffix, length, printer, etc.) are managed via the NetBox interface.

Printing

  • Required fonts are included in netbox_tag_id/fonts/.
  • Printing uses CUPS via the lp command.
  • Printer name, CUPS host, options, etc. are customizable.

Dependencies

  • NetBox >= 4.4.0
  • Python >= 3.10
  • PIL (Pillow)
  • Django

Structure

  • netbox_tag_id/: plugin source code
    • models.py: Tag ID configuration model
    • printing.py: tag generation and printing
    • forms.py: CustomField form patch
    • cf_types.py: custom field type extension
    • static/: JS and CSS for Tag ID panel
    • templates/: HTML templates for UI
    • fonts/: fonts for Code39 rendering
    • migrations/: Django migrations

Author

ARCO - Sasha De Oliveira

License: Apache-2.0

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_tag_id-0.1.0.tar.gz (208.9 kB view details)

Uploaded Source

Built Distribution

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

netbox_tag_id-0.1.0-py3-none-any.whl (217.0 kB view details)

Uploaded Python 3

File details

Details for the file netbox_tag_id-0.1.0.tar.gz.

File metadata

  • Download URL: netbox_tag_id-0.1.0.tar.gz
  • Upload date:
  • Size: 208.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for netbox_tag_id-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32225b79b638806a213a0d5546f2898b9a789ddec9cf4087eb6b463ac6285106
MD5 d7eb36818b3bb892cfbb7a2cd3e5a03d
BLAKE2b-256 ead442a624344c5a905d098da08f9b4c2983c5a602fa482a16c166b36a309e58

See more details on using hashes here.

File details

Details for the file netbox_tag_id-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: netbox_tag_id-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 217.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for netbox_tag_id-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66e49d7c871b30f7d53d3fd3be82b125e2853f425c112e8486e9f1244e498797
MD5 b266601277aece0aa0aa1fcc8c0211bb
BLAKE2b-256 163af1445952123000c3e7de7daba6e40b37cb4ace302a0fc61029778b447dc8

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