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) – Path to the BPMN model file on disk.

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

Return type:

BPMN

import pm4py

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