Skip to main content

A simple BPMN Parser implemented in Python

Project description

BPMN Parser

Publish to PyPI Tests and Linting Python Versions PyPI - Version Coverage Status

A simple BPMN Parser implemented in Python.

Works like an API.

Example:

In [1]: from bpmn_parser import BPMNParser

In [2]: bpmn_parser = BPMNParser('/path/to/bpmn/flow.bpmn')

In [3]: bpmn_parser
Out[3]: BPMNParser(file_path=/path/to/bpmn/flow.bpmn)

In [4]: bpmn_parser.service_task.list
Out[4]: 
[ServiceTaskElement(id='Activity_0psrd5x', name='Example Worker_1', execution_listeners=[], topic_name='example-worker', type='external'),
 ServiceTaskElement(id='Activity_139q5mt', name='Another Worker_1', execution_listeners=[], topic_name='another-worker', type='external'),
 ServiceTaskElement(id='Activity_12xjm8v', name='Example BPMN_1', execution_listeners=[], topic_name=None, type=None)]

In [5]: bpmn_parser.service_task.get('Activity_139q5mt')
Out[5]: ServiceTaskElement(id='Activity_139q5mt', name='Another Worker_1', execution_listeners=[], topic_name='another-worker', type='external'

Installation

To install, just run:

pip install bpmn-parser

How to use

...

Development

Using pyenv

Install the prerequisites and then install pyenv. After install and configure pyenv, just install the project using Make.

make prepare_env_pyenv

Using poetry

pip install poetry

Install

make install

Project commands

Command Description
make tests Runs all unit tests
make format Format the code
make lint Lint the code

To do

  • Create Elements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bpmn_parser-1.0.6.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

bpmn_parser-1.0.6-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file bpmn_parser-1.0.6.tar.gz.

File metadata

  • Download URL: bpmn_parser-1.0.6.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for bpmn_parser-1.0.6.tar.gz
Algorithm Hash digest
SHA256 6a4a74584273fb38a66672b731b7792ce461e832908490809ed0def1ebcf4e6e
MD5 949e4d1122823002b7d46edc82444ce6
BLAKE2b-256 08b20241b6d52ddf4b5c1bbfbec3a20999b3ee2bb44a00251ce00936bcf646ed

See more details on using hashes here.

File details

Details for the file bpmn_parser-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: bpmn_parser-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for bpmn_parser-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f246ac53a84edbf909e290c03e1645a7294e100fca3b5b34f8b7f90baad63250
MD5 f7feeb47af04c4a8ebdfcb4a3d667ca2
BLAKE2b-256 7c59f191f9b14349b894923e3178947c2250032e218ccac6b83f9eade0c92691

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page