Skip to main content


Project description

pypi actions codecov downloads


Print labels from for clinic/edc projects

To add print servers update settings.CUPS_SERVERS:


CUPS_SERVERS = ["localhost", ""]


If not set, the default print server is “localhost”.

Note: it is fine to just configure the local CUPS server (localhost) with remote printers as per below.

CUPS and printer Installation

Install CUPS Print Server:

sudo apt-get install cups

sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original

sudo chmod a-w /etc/cups/cupsd.conf.original

Edit /etc/cups/cupsd.conf to listen on your public IP:

sudo  nano /etc/cups/cupsd.conf

Add the last line with your public IP:

    Listen           # existing loopback Listen
    Listen /var/run/cups/cups.sock # existing socket Listen
--> Listen PUBLIC_IP:631      # Listen on the LAN interface, Port 631 (IPP)

Restart CUPS:

sudo systemctl restart cups.service

Add a remote printer by name to your CUPS server

LOCAL_PRINTER_NAME: printer as named on the EDC, your server


REMOTE_PRINTER_NAME: printer name installed on remote CUPS server


For example:

lpadmin -p ambition_clinic_label_printer -E -v ipp://
lpadmin -p ambition_lab_label_printer -E -v ipp://
lpadmin -p specimen_reception_label_printer -E -v ipp://

Add an IP addressable remote printer

REMOTE_CUPS_IP_ADDRESS: printer IP installed on remote CUPS server

lpadmin -p LOCAL_PRINTER_NAME -E -v ipp://REMOTE_CUPS_IP_ADDRESS/ipp/print -m everywhere

For example:

lpadmin -p PRINTER_NAME -E -v ipp://REMOTE_IP_ADDRESS/ipp/print -m everywhere

See also

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edc-label-0.3.11.tar.gz (38.5 kB view hashes)

Uploaded source

Built Distribution

edc_label-0.3.11-py3-none-any.whl (42.0 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page