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.0.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.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: escpos_server-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 bd9e52b6b47b27c134e822d42f3804ee41625dccd718bde9dac2ceada191826b
MD5 b9372c6961c2d441177574e8a10845a3
BLAKE2b-256 560b93b10f295e2003adf7060ca13fb72d413477254b32a9a4727be41a833a61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: escpos_server-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fda20b03f1d64708f0b6f2ce173bceaa0fb7ba26ec775dcccac3909fce5dc85
MD5 a9f1e79b4f7479886a4d0b317aabc25c
BLAKE2b-256 70ce69589a5890f56690488c7d9847acca895678100aa2a349071c36d0f7e60e

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