MeerK40t Barcode Extension
Project description
meerk40t-barcodes
MeerK40t 0.8+ Barcode extension.
Barcode-Extension
- Registers the console command:
qrcode
which will generate a qrcode
Usage: qrcode x_pos y_pos dim code
Arguments:
x_pos X-position of qr-code y_pos Y-position of qr-code dim Width/length of qr-code code Text to create qr-code from
Options:
--boxsize (-x) Boxsize (default 10) --border (-b) Border around qr-code (default 4) --version (-v) size (1..40) --errcorr (-e) error correction, one of L (7%), M (15%), Q (25%), H (30%)
- Registers the console command:
barcode
which will generate a barcode
Usage: barcode x_pos y_pos dimx dimy btype code
Arguments:
x_pos X-Position of barcode y_pos Y-Position of barcode dim Width of barcode, may be 'auto' to keep native width dimy Height of barcode, may be 'auto' to keep native height btype Barcode type code The code to process
Options:
--notext (-n) suppress text display
- GUI-Support The installation of this tool will register a new button in the Design section of MeerK40t:
If you click on it then a dialog will pop up allowing you to design a qr-code / a barcode:
This will create an element in Meerk40t that can be treated like any other regular path, but which will allow post-creation change of the underlying code (ie the barcode will be regenerated based on the new input).
Installation
pip install meerk40t-barcodes
Or- Download into a directory:
$ pip install .
Development
- If you are developing your own extension for meerk40t you will want to use:
$ pip install -e .
this installs the python module in edit mode which allows you to easily see and experience your changes. Without reinstalling your module.
Acknowledgements
-
This MeerK40t extension uses the work of two great libraries to create barcodes & QR codes:
-
The python-barcode library (https://github.com/WhyNotHugo/python-barcode)
-
The qrcode library (https://github.com/lincolnloop/python-qrcode)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file meerk40t-barcodes-0.2.7.tar.gz
.
File metadata
- Download URL: meerk40t-barcodes-0.2.7.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c773b6144adfec042d459ffb5b204a804bd94bc88f70fa74ff3bb00f6e9b949b |
|
MD5 | 80838afe523d532f8cbede0725caea98 |
|
BLAKE2b-256 | 341d76b1a378cbad272c415e86adec7e157da116eec18a1c95c29b6eaf6436d0 |
File details
Details for the file meerk40t_barcodes-0.2.7-py2.py3-none-any.whl
.
File metadata
- Download URL: meerk40t_barcodes-0.2.7-py2.py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da394d2c14340dec2efbe41e91cab7fd8f02273754fe08c1989f2508863ec7ac |
|
MD5 | 4478fe0a2d5a588f0dbdbc3c460e668a |
|
BLAKE2b-256 | 309b84959b027d490ed6749f1e06cbb13c7c95b6244d15a6206c3869bd49e574 |