{"id":13469275,"url":"https://github.com/python-escpos/python-escpos","last_synced_at":"2025-03-26T06:32:03.941Z","repository":{"id":28839753,"uuid":"32363483","full_name":"python-escpos/python-escpos","owner":"python-escpos","description":"Python library to manipulate ESC/POS printers","archived":false,"fork":false,"pushed_at":"2025-01-28T10:42:02.000Z","size":1144,"stargazers_count":1064,"open_issues_count":56,"forks_count":297,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-02-09T09:30:02.691Z","etag":null,"topics":["escpos","hacktoberfest","pos-printer-driver","pos-printers","printer","python","python-escpos"],"latest_commit_sha":null,"homepage":"https://python-escpos.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/python-escpos.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-17T01:20:10.000Z","updated_at":"2025-01-30T10:00:42.000Z","dependencies_parsed_at":"2023-09-25T01:39:07.530Z","dependency_job_id":"62e4b2df-f9c8-4201-bd49-d354bb786452","html_url":"https://github.com/python-escpos/python-escpos","commit_stats":{"total_commits":579,"total_committers":49,"mean_commits":"11.816326530612244","dds":0.4905008635578584,"last_synced_commit":"2bc61d9bf8ecd5c6152abdb4b0a647085217f473"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-escpos%2Fpython-escpos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-escpos%2Fpython-escpos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-escpos%2Fpython-escpos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/python-escpos%2Fpython-escpos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/python-escpos","download_url":"https://codeload.github.com/python-escpos/python-escpos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245604060,"owners_count":20642931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["escpos","hacktoberfest","pos-printer-driver","pos-printers","printer","python","python-escpos"],"created_at":"2024-07-31T15:01:31.569Z","updated_at":"2025-03-26T06:32:03.933Z","avatar_url":"https://github.com/python-escpos.png","language":"Python","readme":"#############################################################\npython-escpos - Python library to manipulate ESC/POS Printers\n#############################################################\n\nDescription\n===========\n\n.. image:: https://readthedocs.org/projects/python-escpos/badge/?version=latest\n    :target: https://python-escpos.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\nPython ESC/POS is a library which lets the user have access to all those printers handled\nby ESC/POS commands, as defined by Epson, from a Python application.\n\nThe library tries to implement the functions provided by the ESC/POS-command-set and supports sending text, images,\nbarcodes and qr-codes to the printer.\n\nText can be aligned/justified and fonts can be changed by size, type and weight.\n\nAlso, this module handles some hardware functionalities like cutting paper, control characters, printer reset\nand similar functions.\n\nSince supported commands differ from printer to printer the software tries to automatically apply the right\nsettings for the printer that you set. These settings are handled by\n`escpos-printer-db \u003chttps://github.com/receipt-print-hq/escpos-printer-db\u003e`_ which is also used in\n`escpos-php \u003chttps://github.com/mike42/escpos-php\u003e`_.\n\nDependencies\n------------\n\nThis library makes use of:\n\n* `pyusb \u003chttps://github.com/walac/pyusb\u003e`_ for USB-printers\n* `Pillow \u003chttps://github.com/python-pillow/Pillow\u003e`_ for image printing\n* `qrcode \u003chttps://github.com/lincolnloop/python-qrcode\u003e`_ for the generation of QR-codes\n* `pyserial \u003chttps://github.com/pyserial/pyserial\u003e`_ for serial printers\n* `python-barcode \u003chttps://github.com/WhyNotHugo/python-barcode\u003e`_ for the generation of barcodes\n\nDocumentation and Usage\n-----------------------\n\nThe basic usage is:\n\n.. code:: python\n\n    from escpos.printer import Usb\n\n    \"\"\" Seiko Epson Corp. Receipt Printer (EPSON TM-T88III) \"\"\"\n    p = Usb(0x04b8, 0x0202, 0, profile=\"TM-T88III\")\n    p.text(\"Hello World\\n\")\n    p.image(\"logo.gif\")\n    p.barcode('4006381333931', 'EAN13', 64, 2, '', '')\n    p.cut()\n\n\nAnother example based on the Network printer class:\n\n.. code:: python\n\n    from escpos.printer import Network\n\n    kitchen = Network(\"192.168.1.100\", profile=\"TM-T88III\") #Printer IP Address\n    kitchen.text(\"Hello World\\n\")\n    kitchen.barcode('4006381333931', 'EAN13', 64, 2, '', '')\n    kitchen.cut()\n\nAnother example based on the Serial printer class:\n\n.. code:: python\n\n    from escpos.printer import Serial\n\n    \"\"\" 9600 Baud, 8N1, Flow Control Enabled \"\"\"\n    p = Serial(\n        devfile='/dev/tty.usbserial',\n        baudrate=9600,\n        bytesize=8,\n        parity='N',\n        stopbits=1,\n        timeout=1.00,\n        dsrdtr=True,\n        profile=\"TM-T88III\"\n    )\n\n    p.text(\"Hello World\\n\")\n    p.qr(\"You can readme from your smartphone\")\n    p.cut()\n\n.. note:: It is highly recommended to include a matching profile to inform python-escpos about the printer's capabilities.\n\nThe full project-documentation is available on\n`Read the Docs \u003chttps://python-escpos.readthedocs.io\u003e`_.\n\nContributing\n------------\n\nThis project is open for any contribution! Please see\n`CONTRIBUTING.rst \u003chttps://python-escpos.readthedocs.io/en/latest/dev/contributing.html\u003e`_\nfor more information.\n\n\nDisclaimer\n----------\n\nNone of the vendors cited in this project agree or endorse any of the\npatterns or implementations.\nTheir names are used only to maintain context.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-escpos%2Fpython-escpos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpython-escpos%2Fpython-escpos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpython-escpos%2Fpython-escpos/lists"}