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.7.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file bpmn_parser-1.0.7.tar.gz
.
File metadata
- Download URL: bpmn_parser-1.0.7.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fb215d292e108b0dc32e6e5c64ed3566595b107965b219c1e914530bd839474 |
|
MD5 | cdc77921bea4a7e51599acc6ba965aef |
|
BLAKE2b-256 | 4bd7018d5c32b47fbdf57cb8bc965ca3c7c65b00b8c2437690fdc72f78ec6cdb |
File details
Details for the file bpmn_parser-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: bpmn_parser-1.0.7-py3-none-any.whl
- Upload date:
- Size: 6.9 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 | 6f8b12c0cde58aa6a4ea32925a2b51b8c0cf18c41b79c4e93f6fe3cc1fa4e45d |
|
MD5 | 0b83db53313f124d88c63a94ae000165 |
|
BLAKE2b-256 | f87b2989fe50b2db17ab4d50b37e2de7e31968babfa271bf5bf88ccd7e981170 |