inventree-cups-plugin
A label printer driver plugin for InvenTree, which provides support for Cups label printing servers. If your printer is not cups compatible, you can setup a cups printing server. This article describes how to setup a cups printing server for the DYMO LabelWriter 450 Duo. If you have a Dymo printer, you might also want to check out the dedicated inventree-dymo-plugin which is the recommended choice because it works more performant.
Installation
Goto "Settings > Plugins > Install Plugin" and enter inventree-cups-plugin as package name.
Docker
For docker installs you need to build your own docker image based on the inventree image to install the required system dependencies. The following Dockerfile is using a multistage build to only install what is needed onto the inventree image and do the building in a separate stage.
To use it you have to do some slight modifications of the docker-compose.yml file and create the Dockerfile as follows:
docker-compose.yml changes
diff --git a/docker-compose.yml b/docker-compose.yml
index 8adee63..dc3993c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -69,7 +69,14 @@ services:
# Uses gunicorn as the web server
inventree-server:
# If you wish to specify a particular InvenTree version, do so here
- image: inventree/inventree:${INVENTREE_TAG:-stable}
+ image: inventree/inventree:${INVENTREE_TAG:-stable}-printing
+ pull_policy: never
+ build:
+ context: .
+ dockerfile: Dockerfile
+ target: production
+ args:
+ INVENTREE_TAG: ${INVENTREE_TAG:-stable}
# Only change this port if you understand the stack.
# If you change this you have to change:
# - the proxy settings (on two lines)
@@ -88,7 +95,8 @@ services:
# Background worker process handles long-running or periodic tasks
inventree-worker:
# If you wish to specify a particular InvenTree version, do so here
- image: inventree/inventree:${INVENTREE_TAG:-stable}
+ image: inventree/inventree:${INVENTREE_TAG:-stable}-printing
+ pull_policy: never
command: invoke worker
depends_on:
- inventree-server
Dockerfile
ARG INVENTREE_TAG
# prebuild stage - needs a lot of build dependencies
FROM python:3.11-slim-trixie as prebuild
RUN apt-get update && apt-get install -y libcups2-dev gcc git musl-dev && apt-get clean && \
pip install --user --no-cache-dir git+https://github.com/wolflu05/inventree-cups-plugin
# production image - only install the cups shared library
FROM inventree/inventree:${INVENTREE_TAG} as production
RUN apt-get update && apt-get install -y libcups2 && apt-get clean
COPY --from=prebuild /root/.local /root/.local
Configuration Options
| Name | Description | Example |
|---|---|---|
| Server | IP/Hostname to connect to the cups server | 192.168.1.5 |
| Port | Port to connect to the cups server | 631 |
| User | User to connect to the cups server | can also be empty |
| Password | Password to connect to the cups server | can also be empty |
| Printer | Printer from cups server, can be selected if valid connection options are set | myprinter |
Metadata
Release files for inventree-cups-plugin 1.1.2
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_cups_plugin-1.1.2.tar.gz | 6.6 kB | With provenance | Details for inventree_cups_plugin-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inventree_cups_plugin-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for inventree_cups_plugin-1.1.2-py3-none-any.whl |
Total release size: 13.7 kB
Release files / inventree_cups_plugin-1.1.2.tar.gz
| Download URL | inventree_cups_plugin-1.1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c22001207fed0cd5b28c379aa0985767eb45ab981263609487b2aa1434282a8
|
|
BLAKE2b-256 checksum How to use checksums |
02e1a5423b27559ca720e6cd71a07d371432f9c39728df2d2902c3172065f20a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jan 15, 2026.
Transparency logRelease files / inventree_cups_plugin-1.1.2-py3-none-any.whl
| Download URL | inventree_cups_plugin-1.1.2-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0f71157fa32cef1f17c77d6202e680fcfddb66973ea33d974afdf5f2fc2c853
|
|
BLAKE2b-256 checksum How to use checksums |
107071e71212d9186d22152f6b7fcc766e98e3b887ef70e4b3efc37775ce57d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 Jan 15, 2026.
Transparency logSecurity for inventree-cups-plugin 1.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.
Attestation for inventree_cups_plugin-1.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 Jan 15, 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.