Skip to main content

escpos-server

Local server to expose and monitor a USB ESC/POS printer via network.

The server will open two ports, one raw TCP port that behaves like the printer itself, and one HTTP port with a web API.

Usage

usage: escpos-server [-h] --usb-product USB_PRODUCT 
                     [--listen-host LISTEN_HOST] [--listen-port LISTEN_PORT]
                     [--web-host WEB_HOST] [--web-port WEB_PORT]
                     [--verbose]

ESC/POS server

options:
  -h, --help            show this help message and exit
  --usb-product USB_PRODUCT
  --listen-host LISTEN_HOST
  --listen-port LISTEN_PORT
  --web-host WEB_HOST
  --web-port WEB_PORT
  --verbose

Example:

$ escpos-server --usb-product 04b8:0202

Web API

$ curl http://127.0.0.1:8101/
{"status": {"type": "online", "paper_end": false, "paper_near_end": false}}

Download files

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

Source Distribution

escpos_server-1.0.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

escpos_server-1.0.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file escpos_server-1.0.1.tar.gz.

File metadata

  • Download URL: escpos_server-1.0.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for escpos_server-1.0.1.tar.gz
Algorithm Hash digest
SHA256 bb5619b8c692bf2e2ff1f46f9176cf0fcf1ee801d1ce012e337dce8efa7d5bfb
MD5 3fccab6127020e43ff72cc7240aabc19
BLAKE2b-256 be7914b6f27c1358311a2bc65f063e213a44fa9d64eb18aeaea0d86c4b942c72

See more details on using hashes here.

File details

Details for the file escpos_server-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: escpos_server-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for escpos_server-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f65ee7b4c001dd570715323a893b25edf4af11decb5d542db94a976214ec46ec
MD5 5925a0b91560c5ae21384f2f2bdc95e9
BLAKE2b-256 4f50a628d89fa4afa25df0e227887b3f0762d9e05f3796721d96aa368357cb0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page