biometrics_tracker.output.reports module
- class biometrics_tracker.output.reports.BiometricsHistoryPDF(*args: Any, **kwargs: Any)
Bases:
FPDF
Provides page header and footer functionality for the PDF version of the Biometrics History Report
Produce a page footer. Overrides the footer method in FPDF
- Returns
None
- header()
Produce a page header. Overrides the header method in FPDF
- Returns
None
- class biometrics_tracker.output.reports.PDFReport(queue_mgr: Queues, person: Person, start_date: date, end_date: date, rpt_filename: str, completion_destination: Callable)
Bases:
ReportBase
- produce_report(msg: DataPointRespMsg)
Retrieve the datapoints within the specified date range for the selected person and produce a pdf report
- Returns
None
- class biometrics_tracker.output.reports.ReportBase(queue_mgr: Queues, person: Person, start_date: date, end_date: date)
Bases:
Thread
A base class for classes that produce reports from the Biometrics Tracking database
- run() None
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- class biometrics_tracker.output.reports.TextReport(queue_mgr: Queues, person: Person, start_date: date, end_date: date, outf: IOBase, completion_destination: Callable)
Bases:
ReportBase
- produce_report(msg: DataPointRespMsg)
Produce a report listing datapoints for a specified person and date range, then write it to a text file
- Parameters
msg – a message object containing the list of datapoints to be included in the report
- Returns
None