Skip to main content

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 21 and 60900213421 are 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 to config.yaml, or the file set by INVENTREE_PLUGIN_FILE): a line inventree-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 active 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

Only active companies are listed and used: a selected company which is later deleted or deactivated is replaced by the lookup by name.

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inventree-wurth-barcode 0.1.2
File Size Uploaded Provenance Actions
inventree_wurth_barcode-0.1.2.tar.gz 8.8 kB With provenance Details for inventree_wurth_barcode-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inventree-wurth-barcode 0.1.2
File Interpreter ABI Platform Actions
inventree_wurth_barcode-0.1.2-py3-none-any.whl Python 3 none any Details for inventree_wurth_barcode-0.1.2-py3-none-any.whl

Total release size: 17.7 kB

Release files / inventree_wurth_barcode-0.1.2.tar.gz

Download URL inventree_wurth_barcode-0.1.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6cb164842b6d97fa1c30581bc82ba01e2200be4a7419d6049627bf7ac623eb1c
BLAKE2b-256 checksum
How to use checksums
ee7ee158e0f73326489333ff9c136b8d7684eff50069f2a8e1b4de0ceff12987
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 log

Release files / inventree_wurth_barcode-0.1.2-py3-none-any.whl

Download URL inventree_wurth_barcode-0.1.2-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9814c1ba0594ce7db1009daad126ba4ca3ca9e55cf0b86ebab3c19af3f62c20d
BLAKE2b-256 checksum
How to use checksums
d6298205f7bcba2a577dded336bc032664a81df1cbf957b2834e34a04e43eac8
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 log

Security for inventree-wurth-barcode 0.1.2

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.

Select from 2 files

Attestation for inventree_wurth_barcode-0.1.2.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 log

A 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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page