A simple BPMN Parser implemented in Python
Project description
BPMN Parser
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
Release history Release notifications | RSS feed
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.4.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file bpmn_parser-1.0.4.tar.gz
.
File metadata
- Download URL: bpmn_parser-1.0.4.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7559ec4ba9feee937a4c8e772cc4a602787bfdc00d3fb8e5ad2e8a0b7ec1da98 |
|
MD5 | ffc617888e0501b6387e998d29c8678a |
|
BLAKE2b-256 | d050a4b83359dafbe6f5384f6a9c73107dbdcf05ab072d97c8c93f476dd26fd4 |
File details
Details for the file bpmn_parser-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: bpmn_parser-1.0.4-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4c77ddde64d35cd173428d4773be821a59f744273da7c3cb3922f192258761 |
|
MD5 | fa6b5d427f54f30c5dca70aca777bd5e |
|
BLAKE2b-256 | 3043ac9bfcd78ef0a8e53bbd9cda9b2fc69a77399f33561affdc3d874dae362e |