receipt printer CLI
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
receipt_print-0.0.1.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file receipt_print-0.0.1.tar.gz.
File metadata
- Download URL: receipt_print-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e010b6b93beabb5b3bb4638fdfec459f903551a40d3cefe54085ad688ac80dfe
|
|
| MD5 |
d4507c05d9ae141e72f8e4ce73c211ed
|
|
| BLAKE2b-256 |
bfcb72101dbef8c4af451a3f115b34def1d2c0a721b97b5c294bbfd1071b55fe
|
File details
Details for the file receipt_print-0.0.1-py3-none-any.whl.
File metadata
- Download URL: receipt_print-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c09df8e443c0a3ebad3f5e67106ba44d9f866b1e642d39431055c5ef20b8eade
|
|
| MD5 |
4c0e79e54e5c54856531957e9a736001
|
|
| BLAKE2b-256 |
c3c466e6afb59a08be38f92a5b4f519d87fa12655ea6b937a385adb9216bb196
|