feat: Add Fichero D11s thermal label printer support with REST API and CLI
- Implemented a new module for the Fichero D11s thermal label printer, including BLE and Classic Bluetooth interfaces. - Created a REST API using FastAPI to manage printer status, info, and printing tasks (text and images). - Developed a CLI for direct printer interaction, allowing users to print text and images, check status, and modify settings. - Added image processing capabilities for converting text and images to the required format for printing. - Introduced error handling for printer operations and connection management. - Included a shell script for running the API server with configurable parameters. - Added English translations for configuration options. - Created a repository metadata file for project management.
This commit is contained in:
25
fichero_printer/fichero/__init__.py
Normal file
25
fichero_printer/fichero/__init__.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""Fichero D11s thermal label printer - BLE + Classic Bluetooth interface."""
|
||||
|
||||
from fichero.printer import (
|
||||
RFCOMM_CHANNEL,
|
||||
PrinterClient,
|
||||
PrinterError,
|
||||
PrinterNotFound,
|
||||
PrinterNotReady,
|
||||
PrinterStatus,
|
||||
PrinterTimeout,
|
||||
RFCOMMClient,
|
||||
connect,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
"RFCOMM_CHANNEL",
|
||||
"PrinterClient",
|
||||
"PrinterError",
|
||||
"PrinterNotFound",
|
||||
"PrinterNotReady",
|
||||
"PrinterStatus",
|
||||
"PrinterTimeout",
|
||||
"RFCOMMClient",
|
||||
"connect",
|
||||
]
|
||||
Reference in New Issue
Block a user