atoti.report module

Reports of data loaded into tables.

Each table has a global loading_report made of several individual loading reports.

When an error occurs while loading data, a warning is displayed. These warnings can be disabled like this:

import logging
logging.getLogger("atoti.loading").setLevel("ERROR")
class atoti.report.LoadingReport

Report about the loading of a single file or operation.

duration: int

Duration of the loading in milliseconds.

error_messages: Sequence[str]

Messages of the errors.

errors: int

Number of errors.

loaded: int

Number of loaded lines.

name: str

Name of the loaded file or operation.

source: str

Source used to load the data.

class atoti.report.TableReport

Report about the data loaded into a table.

It is made of several LoadingReport.

property error_messages: Sequence[str]

Error messages.

Return type

Sequence[str]

reports: Sequence[atoti.report.LoadingReport]

Reports of individual loading.

table_name: str
property total_errors: int

Total number of errors.

Return type

int

property total_loaded: int

Total number of loaded rows.

Return type

int