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.5.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file bpmn_parser-1.0.5.tar.gz
.
File metadata
- Download URL: bpmn_parser-1.0.5.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 | 667e2a7917c3f654674418fca38852acad368494950069457945c0b7c5941d40 |
|
MD5 | 7ef6328fc6da00f23504f37d54e94f6a |
|
BLAKE2b-256 | e2b3a73c7731fae12b2454a28b8feb2da06be81131fc965682e9d4f08562ce34 |
File details
Details for the file bpmn_parser-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: bpmn_parser-1.0.5-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 | b4bb7bd071c067b40accbfaeff3756d5645c7a062281b24275e52e9509eaa80b |
|
MD5 | 3ecb4491a54a8dd30e209989971259db |
|
BLAKE2b-256 | 46ef9596732d6a6f4fdf5525bb6f6b6637674edd66c40889c94d97b350b9db71 |