Libre-Printer
latest
  • Project presentation
  • Installation
  • Service configuration
  • Configuration examples
  • Hardware Interface
  • Frequently asked questions
  • Licenses
  • Contributing
  • Working with Libre-Printer source code
  • Technical documentation
    • ESC/P2 Converter
    • Plugins
    • Core
Libre-Printer
  • Working with Libre-Printer source code
  • Edit on GitHub

Working with Libre-Printer source code

All the main code is developped in Python3.6+ language.

However external programs like ESC converters are written in C or C++. This is the choice of the programmers depending on their preferences or by desire to hide their work and make their project not modifiable (ex: the binaries of Retroprinter).

Note

All Python modules are documented with a rate of 100%. Code is also heavily tested with a coverage rate of at least 90%.

Technical documentation

  • ESC/P2 Converter
    • Interprocess communication
    • Converter wrapper
  • Plugins
    • Jobs to Printer
      • PdfEventHandler
        • PdfEventHandler.on_closed()
      • setup_pdf_watchdog()
    • PCL to PDF
      • PclEventHandler
        • PclEventHandler.on_closed()
      • setup_pcl_watchdog()
    • ESC & ESC/P2 converter
      • Interprocess communication
        • debug_shared_memory()
        • get_status_message()
        • initialize_interprocess_com()
        • send_status_message()
      • Converter wrapper
        • launch_escp2_converter()
  • Core
    • Global settings
      • log_level()
      • logger()
    • Configuration
      • debug_config_file()
      • load_config()
      • parse_config()
    • File handler
      • cleanup_directories()
      • convert_data_line_ending()
      • convert_file_line_ending()
      • get_job_number()
      • init_directories()
    • Interface communication
      • apply_msb_control()
      • build_interface_config_settings()
      • configure_interface()
      • get_buffer()
      • is_bit_set()
      • parse_buffer()
      • read_interface()
      • sync_converters()
    • Serial handler
      • get_serial_handler()
Previous Next

© Copyright 2024, Ysard. Revision 6b581535.

Built with Sphinx using a theme provided by Read the Docs.