pm4py.read.read_bpmn#

pm4py.read.read_bpmn(file_path: str, encoding: str = 'utf-8') BPMN[source]#

Reads a BPMN model from a .bpmn file

Parameters:
  • file_path (str) – file path of the bpmn model

  • encoding (str) – the encoding to be used (default: utf-8)

Return type:

BPMN

import pm4py

bpmn = pm4py.read_bpmn('<path_to_bpmn_file>')