Würth Elektronik Barcode
InvenTree plugin (>= 1.0) that reads the barcodes of the Würth Elektronik labels, from the web interface and from the InvenTree app: scanning a label opens the part, and inside a purchase order it receives the line item with the quantity of the label.
The labels
The Würth Elektronik labels (reels, bags, samples) carry the ANSI MH10.8.2 data identifiers:
| Identifier | Field | Example |
|---|---|---|
1P |
Part number (Würth order code = manufacturer part number) | 609 002 134 21 |
Q |
Quantity | 10 |
1T |
Lot number | 298010012537000 |
16D |
Production date | 20250908 |
The DataMatrix holds all of them (ISO/IEC 15434 format 06:
[)>␞06␝1P60900213421␝Q10␝1T298010012537000␝16D20250908␞␄); each Code 128 barcode holds one field. The plugin
reads the DataMatrix and the part number barcode (1P…).
The label names no supplier: it is recognised by its content, a numeric 1P and none of the fields that distributors
add to their own labels (DigiKey P / 30P, Mouser and DigiKey 11K), so it is not confused with them.
What a scan does
-
Part lookup (scan from the home page, web or app):
- the supplier part of the Würth supplier, with the order code as SKU;
- the manufacturer part of Würth Elektronik with the order code as MPN, also when the part is bought from a distributor (e.g. Mouser).
Spaces are ignored:
609 002 134 21and60900213421are the same code. -
Purchase order receiving (Purchase order → Scan to receive, web or app): in a placed order of the Würth supplier the line item of the part is received with the quantity of the label, into the destination of the line or of the order.
Installation
The plugin is on PyPI:
- from the InvenTree UI (Settings → Plugins → Install plugin): Package Name
inventree-wurth-barcode; - or with
plugins.txt(next toconfig.yaml, or the file set byINVENTREE_PLUGIN_FILE): a lineinventree-wurth-barcode.
Then activate Würth Elektronik Barcode in Settings → Plugins and restart server and worker. The plugin has no database tables: no migrations are needed. With Docker, install it in both the server and the worker container (different versions cause the Plugin Registry Mismatch error, INVE-E20):
docker compose exec inventree-server invoke plugins
docker compose exec inventree-worker invoke plugins
docker compose restart inventree-server inventree-worker
With the package installer (.deb): sudo inventree run invoke plugins, then sudo inventree restart.
The InvenTree app needs no change: it sends the scanned barcodes to the server, which passes them to the active barcode plugins.
Settings
| Setting | Notes |
|---|---|
SUPPLIER_ID |
Supplier company of the parts bought from Würth Elektronik. If empty, the only supplier whose name contains Würth, Wurth or Wuerth is used (and saved) |
MANUFACTURER_ID |
Manufacturer company of the Würth Elektronik parts. If empty, found by name as above |
Development
python -m pytest # parser tests, no InvenTree needed
ruff check wurth_barcode tests
tests/integration runs on a real InvenTree (INVENTREE_SRC set): the GitLab CI uses the
inventree/inventree:stable image with a SQLite database. Sample labels and their decoded barcodes are in
docs/samples.
License
MIT
Metadata
Release files for inventree-wurth-barcode 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inventree_wurth_barcode-0.1.1.tar.gz | 8.7 kB | With provenance | Details for inventree_wurth_barcode-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inventree_wurth_barcode-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for inventree_wurth_barcode-0.1.1-py3-none-any.whl |
Total release size: 17.5 kB
Release files / inventree_wurth_barcode-0.1.1.tar.gz
| Download URL | inventree_wurth_barcode-0.1.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6ad286e6591bb1a78154ab68344f7caca94f0a92fbd9f5e8d871c319b4ebe9f
|
|
BLAKE2b-256 checksum How to use checksums |
2412c2be6c1a3ae3a6d3f6ec4f4088d1dd0d09f45066a80e444c3666c34c0c20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 27, 2026.
Transparency logRelease files / inventree_wurth_barcode-0.1.1-py3-none-any.whl
| Download URL | inventree_wurth_barcode-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67734bc259ae0f2de23ee5fc1ebd480df4c44ecf376c3c8419b0c2006e14edbb
|
|
BLAKE2b-256 checksum How to use checksums |
3b819ca96455cda6985541e1fbd1245f4e9acfcc63d6e1f8231e7a46e78b2bc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 27, 2026.
Transparency logSecurity for inventree-wurth-barcode 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for inventree_wurth_barcode-0.1.1.tar.gz
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 Nov 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.