1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-netbox-qrcode
7 SDESC[v11]= QR Code generation for netbox objects (3.11)
8 SDESC[v12]= QR Code generation for netbox objects (3.12)
9 HOMEPAGE= https://github.com/k01ek/netbox-qrcode
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPIWHL/86/ae/30f1fb2cea5acc930247c0f4b2d8c12dc00f7dce30e7541410dda11562c3
14 DISTFILE[1]= netbox_qrcode-0.0.13-py3-none-any.whl:main
19 OPTIONS_AVAILABLE= PY311 PY312
20 OPTIONS_STANDARD= none
21 VOPTS[v11]= PY311=ON PY312=OFF
22 VOPTS[v12]= PY311=OFF PY312=ON
24 DISTNAME= netbox_qrcode-0.0.13.dist-info
28 [PY311].RUN_DEPENDS_ON= python-qrcode:single:v11
29 python-Pillow:single:v11
30 [PY311].USES_ON= python:v11,wheel
32 [PY312].RUN_DEPENDS_ON= python-qrcode:single:v12
33 python-Pillow:single:v12
34 [PY312].USES_ON= python:v12,wheel
36 [FILE:3399:descriptions/desc.single]
37 # Netbox QR Code Plugin
39 [Netbox] plugin for generate QR codes for objects: Rack, Device, Cable.
41 This plugin depends on [qrcode] and [Pillow] python library
49 | Plugin Version | NetBox Version | Tested on |
50 | ------------- |:-------------| :-----:|
51 | 0.0.11 | >= 3.7.0 | 3.7.x |
52 | 0.0.13 | >= 4.0.2 | v4.0.2 |
56 If Netbox was installed according to the standard installation
57 instructions. It may be necessary to activate the virtual environment.
60 source /opt/netbox/venv/bin/activate
63 The plugin is available as a Python package in pypi and can be installed
67 pip install netbox-qrcode
69 Enable the plugin in /opt/netbox/netbox/netbox/configuration.py:
71 PLUGINS = ['netbox_qrcode']
73 Restart NetBox and add `netbox-qrcode` to your local_requirements.txt
77 The following options are available:
79 * `with_text`: Boolean (default True). Text label will be added to QR code
81 * `text_template`: Jinja2 template with {{ obj }} as context, using it
82 ignores `text_fields` and `custom_text`
83 * `text_fields`: List of String (default ['name']). Text fields of an
84 object that will be added as text label to QR image. It's possible to use
86 * `font`: String (default TahomaBold) Font name for text label ( Some font
87 include in package, see fonts dir).
88 * `text_location`: Where to render the text, relative to the QR code.
89 Valid values are `"right"` (default), `"left"`", `"up"`, and `"down"`.
90 * `custom_text`: String or None (default None) additional text label to QR
91 code image (will be added after text_fields).
92 * `qr_version`: Integer (default 1) parameter is an integer from 1 to 40
93 that controls the size of
94 the QR Code (the smallest, version 1, is a 21x21 matrix).
95 * `qr_error_correction`: Integer (default 0), controls the error
96 correction used for the
97 QR Code. The following values are available:
99 1 - About 7% or less errors can be corrected.
100 0 - About 15% or less errors can be corrected.
101 2 - About 30% or less errors can be corrected.
102 3 - About 25% or less errors can be corrected.
104 * `qr_box_size`: Integer (default 6), controls how many pixels each "box"
107 * `qr_border`: Integer (default 4), controls how many boxes thick the
109 (the default is 4, which is the minimum according to the specs).
111 ### Per object options
113 Per object options override default options. Per object options dictionary
114 can contains any of default options inside.
116 * `device`: Dict or None (default {'text_fields': ['name', 'serial']}), set
117 None to disble QR code
118 * `rack`: Dict or None (default {'text_fields': ['name']}) , set None to
120 * `cable`: Dict or None ( defaul {'text_fields': ['_termination_a_device',
121 'termination_a', '_termination_b_device', 'termination_b',]}), set None to
124 Configuration example:
129 'text_fields': ['name', 'serial'],
131 'font_size': 12, # If the value is 0 or the line does not exist,
132 then the text is automatically adjusted
133 'custom_text': 'Property of SomeCompany\ntel.8.800333554-CALL',
134 'text_location': 'up',
136 'qr_error_correction': 0,
140 d806e525cf9869c89c79806c09994e53b0e1f2492be1310c4a932e0e650fc71b 1690199 netbox_qrcode-0.0.13-py3-none-any.whl