receipt-print
A simple CLI tool for printing text on thermal receipt printers.
Installation
pip install receipt-print
Usage
Print piped text directly:
echo "hello" | receipt-print
Print the contents of files:
receipt-print cat file1.txt file2.txt
Print text directly:
receipt-print echo "hello" "world"
receipt-print echo -l "line 1" "line 2" # use newlines instead of spaces
Count how many lines would be printed:
receipt-print count file.txt
man ls | receipt-print count
Configuration
Configure using environment variables (see python-escpos documentation):
RP_VENDOR: USB vendor ID (default: 04b8)RP_PRODUCT: USB product ID (default: 0e2a)RP_PROFILE: Printer profile (default: TM-T20II)RP_HOST: Network printer IP address (optional, fallback if USB fails)RP_CHAR_WIDTH: Character width per line (default: 72)RP_MAX_LINES: Maximum lines allowed without confirmation (default: 40)
Release files for receipt-print 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| receipt_print-0.0.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| receipt_print-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / receipt_print-0.0.1.tar.gz
| Download URL | receipt_print-0.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e010b6b93beabb5b3bb4638fdfec459f903551a40d3cefe54085ad688ac80dfe
|
|
BLAKE2b-256 checksum How to use checksums |
bfcb72101dbef8c4af451a3f115b34def1d2c0a721b97b5c294bbfd1071b55fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|
Release files / receipt_print-0.0.1-py3-none-any.whl
| Download URL | receipt_print-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c09df8e443c0a3ebad3f5e67106ba44d9f866b1e642d39431055c5ef20b8eade
|
|
BLAKE2b-256 checksum How to use checksums |
c3c466e6afb59a08be38f92a5b4f519d87fa12655ea6b937a385adb9216bb196
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|