pm4py.objects.log.exporter.xes.variants.line_by_line module#
PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
- class pm4py.objects.log.exporter.xes.variants.line_by_line.Parameters(*values)[source]#
Bases:
Enum- COMPRESS = 'compress'#
- SHOW_PROGRESS_BAR = 'show_progress_bar'#
- ENCODING = 'encoding'#
- pm4py.objects.log.exporter.xes.variants.line_by_line.get_tab_indent(n)[source]#
Get the desidered number of indentations as string
- Parameters:
n – Number of indentations
- Returns:
Desidered number of indentations as string
- Return type:
str_tab_indent
- pm4py.objects.log.exporter.xes.variants.line_by_line.escape(stru)[source]#
XML-escape a string
- Parameters:
stru – String to be escaped
- Returns:
Escaped string
- Return type:
escaped_stru
- pm4py.objects.log.exporter.xes.variants.line_by_line.export_attribute(attr_name, attr_value, indent_level)[source]#
Exports an attribute
- Parameters:
attr_name – Name of the attribute
attr_value – Value of the attribute
indent_level – Level of indentation
- Returns:
String representing the content of the attribute
- Return type:
stru
- pm4py.objects.log.exporter.xes.variants.line_by_line.export_trace_line_by_line(trace, fp_obj, encoding)[source]#
Exports the content of a trace line-by-line to a file object
- Parameters:
trace – Trace
fp_obj – File object
encoding – Encoding
- pm4py.objects.log.exporter.xes.variants.line_by_line.export_log_line_by_line(log, fp_obj, encoding, parameters=None)[source]#
Exports the contents of the log line-by-line to a file object
- Parameters:
log – Event log
fp_obj – File object
encoding – Encoding
parameters – Parameters of the algorithm
- pm4py.objects.log.exporter.xes.variants.line_by_line.apply(log, output_file_path, parameters=None)[source]#
Exports a XES log using a non-standard exporter (classifiers, lists, nested attributes, globals, extensions are not supported)
- Parameters:
log – Event log
output_file_path – Path to the XES file
parameters – Parameters