|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
.. |pypi| image:: https://img.shields.io/pypi/v/edc-label.svg
:target: https://pypi.python.org/pypi/edc-label
.. |actions| image:: https://github.com/clinicedc/edc-label/workflows/build/badge.svg?branch=develop
:target: https://github.com/clinicedc/edc-label/actions?query=workflow:build
.. |codecov| image:: https://codecov.io/gh/clinicedc/edc-label/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/clinicedc/edc-label
.. |downloads| image:: https://pepy.tech/badge/edc-label
:target: https://pepy.tech/project/edc-label
Raw data
{
"_id": null,
"home_page": "https://github.com/clinicedc/edc-label",
"name": "edc-label",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": "",
"keywords": "django Edc labelling,clinicedc,clinical trials",
"author": "Erik van Widenfelt",
"author_email": "ew2789@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/bd/75/9d323ae429eba9fb1140b6ccb9de63c3372c139fe3fa650aa5e6bff90369/edc-label-0.3.19.tar.gz",
"platform": null,
"description": "|pypi| |actions| |codecov| |downloads|\n\n\nedc-label\n---------\n\nPrint labels from for clinic/edc projects\n\nTo add print servers update settings.CUPS_SERVERS::\n\n\t# settings.py\n\t...\n\n\tCUPS_SERVERS = [\"localhost\", \"prn.sample.org\"]\n\n\t...\n\nIf not set, the default print server is \"localhost\".\n\nNote: it is fine to just configure the local CUPS server (localhost) with remote printers as per below.\n\n\nCUPS and printer Installation\n+++++++++++++++++++++++++++++\n\n\nInstall CUPS Print Server::\n\n\tsudo apt-get install cups\n\n\tsudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original\n\n\tsudo chmod a-w /etc/cups/cupsd.conf.original\n\nEdit ``/etc/cups/cupsd.conf`` to listen on your public IP::\n\n\tsudo nano /etc/cups/cupsd.conf\n\nAdd the last line with your public IP::\n\n\t Listen 127.0.0.1:631 # existing loopback Listen\n\t Listen /var/run/cups/cups.sock # existing socket Listen\n\t--> Listen PUBLIC_IP:631 # Listen on the LAN interface, Port 631 (IPP)\n\nRestart CUPS::\n\n\tsudo systemctl restart cups.service\n\nAdd a remote printer by name to your CUPS server\n++++++++++++++++++++++++++++++++++++++++++++++++\n\n``LOCAL_PRINTER_NAME``: printer as named on the EDC, your server\n\n``REMOTE_CUPS_IP_ADDRESS``: IP of remote CUPS server\n\n``REMOTE_PRINTER_NAME``: printer name installed on remote CUPS server\n\n\tlpadmin -p LOCAL_PRINTER_NAME -E -v ipp://REMOTE_CUPS_IP_ADDRESS/printers/REMOTE_PRINTER_NAME\n\nFor example::\n\n\tlpadmin -p ambition_clinic_label_printer -E -v ipp://154.70.150.42/printers/ambition_clinic_label_printer\n\tlpadmin -p ambition_lab_label_printer -E -v ipp://154.70.150.42/printers/ambition_lab_label_printer\n\tlpadmin -p specimen_reception_label_printer -E -v ipp://154.70.150.42/printers/specimen_reception_label_printer\n\n\nAdd an IP addressable remote printer\n++++++++++++++++++++++++++++++++++++\n\n``REMOTE_CUPS_IP_ADDRESS``: printer IP installed on remote CUPS server\n\n\tlpadmin -p LOCAL_PRINTER_NAME -E -v ipp://REMOTE_CUPS_IP_ADDRESS/ipp/print -m everywhere\n\nFor example::\n\n\tlpadmin -p PRINTER_NAME -E -v ipp://REMOTE_IP_ADDRESS/ipp/print -m everywhere\n\n\nSee also http://labelary.com/viewer.html\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/edc-label.svg\n :target: https://pypi.python.org/pypi/edc-label\n\n.. |actions| image:: https://github.com/clinicedc/edc-label/workflows/build/badge.svg?branch=develop\n :target: https://github.com/clinicedc/edc-label/actions?query=workflow:build\n\n.. |codecov| image:: https://codecov.io/gh/clinicedc/edc-label/branch/develop/graph/badge.svg\n :target: https://codecov.io/gh/clinicedc/edc-label\n\n.. |downloads| image:: https://pepy.tech/badge/edc-label\n :target: https://pepy.tech/project/edc-label\n",
"bugtrack_url": null,
"license": "GPL license, see LICENSE",
"summary": "Labeling",
"version": "0.3.19",
"project_urls": {
"Homepage": "https://github.com/clinicedc/edc-label"
},
"split_keywords": [
"django edc labelling",
"clinicedc",
"clinical trials"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "274ad237054c6aba267c99ca428a8bb3c13611d4fcf74c0cef35855e25db3955",
"md5": "32dfed8324c7c0c019937c8f19772330",
"sha256": "b5a7d37d02357e067841526d91a7858107797eba5398939e79bd0b5abe41debd"
},
"downloads": -1,
"filename": "edc_label-0.3.19-py3-none-any.whl",
"has_sig": false,
"md5_digest": "32dfed8324c7c0c019937c8f19772330",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 50860,
"upload_time": "2024-01-29T05:41:09",
"upload_time_iso_8601": "2024-01-29T05:41:09.229542Z",
"url": "https://files.pythonhosted.org/packages/27/4a/d237054c6aba267c99ca428a8bb3c13611d4fcf74c0cef35855e25db3955/edc_label-0.3.19-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bd759d323ae429eba9fb1140b6ccb9de63c3372c139fe3fa650aa5e6bff90369",
"md5": "5116090c14d73a2064774f0e58fcecbd",
"sha256": "80ff530fdc99b7af48150293f3e523eac6690a5845676d876c5125d87c2254a9"
},
"downloads": -1,
"filename": "edc-label-0.3.19.tar.gz",
"has_sig": false,
"md5_digest": "5116090c14d73a2064774f0e58fcecbd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 44998,
"upload_time": "2024-01-29T05:41:11",
"upload_time_iso_8601": "2024-01-29T05:41:11.683684Z",
"url": "https://files.pythonhosted.org/packages/bd/75/9d323ae429eba9fb1140b6ccb9de63c3372c139fe3fa650aa5e6bff90369/edc-label-0.3.19.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-29 05:41:11",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "clinicedc",
"github_project": "edc-label",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "edc-label"
}