edc-label


Nameedc-label JSON
Version 0.3.20 PyPI version JSON
download
home_pagehttps://github.com/clinicedc/edc-label
SummaryLabeling
upload_time2024-11-20 22:44:41
maintainerNone
docs_urlNone
authorErik van Widenfelt
requires_python>=3.12
licenseGPL license, see LICENSE
keywords django edc labelling clinicedc clinical trials
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            |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/actions/workflows/build.yml/badge.svg
  :target: https://github.com/clinicedc/edc-label/actions/workflows/build.yml

.. |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": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "django Edc labelling, clinicedc, clinical trials",
    "author": "Erik van Widenfelt",
    "author_email": "ew2789@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/89/79/7e92e3cddf457d2ccf09ae810e0d19e422f573c9985a457b477daee3f11d/edc_label-0.3.20.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/actions/workflows/build.yml/badge.svg\n  :target: https://github.com/clinicedc/edc-label/actions/workflows/build.yml\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.20",
    "project_urls": {
        "Homepage": "https://github.com/clinicedc/edc-label"
    },
    "split_keywords": [
        "django edc labelling",
        " clinicedc",
        " clinical trials"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8579ed97117093f494a967135a9db9365abfef5010ed302985b7a7161ba92716",
                "md5": "a863ce8975f00387b87cbc26b72941e1",
                "sha256": "20c75f5555fc5a698df595e4bab0f1bcc59f6e1998a58a679dea8c3c327c4492"
            },
            "downloads": -1,
            "filename": "edc_label-0.3.20-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a863ce8975f00387b87cbc26b72941e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 50851,
            "upload_time": "2024-11-20T22:44:39",
            "upload_time_iso_8601": "2024-11-20T22:44:39.373388Z",
            "url": "https://files.pythonhosted.org/packages/85/79/ed97117093f494a967135a9db9365abfef5010ed302985b7a7161ba92716/edc_label-0.3.20-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89797e92e3cddf457d2ccf09ae810e0d19e422f573c9985a457b477daee3f11d",
                "md5": "7c375995b7fac6d8b95530ed047b8ef1",
                "sha256": "1b40ce06c7cb4750d5418c03558e5cc330688f2ce1a56ea59e504052b2a4c6bb"
            },
            "downloads": -1,
            "filename": "edc_label-0.3.20.tar.gz",
            "has_sig": false,
            "md5_digest": "7c375995b7fac6d8b95530ed047b8ef1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 45107,
            "upload_time": "2024-11-20T22:44:41",
            "upload_time_iso_8601": "2024-11-20T22:44:41.426254Z",
            "url": "https://files.pythonhosted.org/packages/89/79/7e92e3cddf457d2ccf09ae810e0d19e422f573c9985a457b477daee3f11d/edc_label-0.3.20.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-20 22:44:41",
    "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"
}
        
Elapsed time: 0.35562s