Skip to main content

pypi actions codecov downloads

edc-label

Print labels from for clinic/edc projects

To add print servers update settings.CUPS_SERVERS:

# settings.py
...

CUPS_SERVERS = ["localhost", "prn.sample.org"]

...

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 127.0.0.1:631           # 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_CUPS_IP_ADDRESS: IP of remote CUPS server

REMOTE_PRINTER_NAME: printer name installed on remote CUPS server

lpadmin -p LOCAL_PRINTER_NAME -E -v ipp://REMOTE_CUPS_IP_ADDRESS/printers/REMOTE_PRINTER_NAME

For example:

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

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 http://labelary.com/viewer.html

Metadata

Release files for edc-label 1.0.0

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

Source distribution (sdist)

Source distribution for edc-label 1.0.0
File Size Uploaded
edc_label-1.0.0.tar.gz 45.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for edc-label 1.0.0
File Interpreter ABI Platform
edc_label-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 96.4 kB

Release files / edc_label-1.0.0.tar.gz

Download URL edc_label-1.0.0.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ad96dd31061b136e435ef31ad486833edb78fc0ca9ed94144675a121144da53e
BLAKE2b-256 checksum
How to use checksums
87f9734939bc86522fd812221c25470be5f80c674063fb345ffacc42ab36332d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.4

Release files / edc_label-1.0.0-py3-none-any.whl

Download URL edc_label-1.0.0-py3-none-any.whl
Size 51.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b43b295cf90dfc95bc7618644cba38115d0478f4fed615ef6b9221a50eb9c14
BLAKE2b-256 checksum
How to use checksums
ab1ea2252bde0b3afc925eabb79b2f7e1011e8777f24ba707333547cd766e5e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3.20

2 release files

0.3.19

2 release files

0.3.16

2 release files

0.3.15

2 release files

0.3.13

2 release files

0.3.12

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.1.30

1 release file

0.1.29

1 release file

0.1.28

1 release file

0.1.27

1 release file

0.1.26

1 release file

0.1.25

1 release file

0.1.24

1 release file

0.1.23

1 release file

0.1.22

1 release file

0.1.21

1 release file

0.1.20

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.14

2 release files

0.1.13

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.7

2 release files

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