Skip to main content

A simple BPMN Parser implemented in Python

Project description

BPMN Parser, read .bpmn files as Python.

Test Tests Coverage Package version Python Versions


Documentation: https://danbailo.github.io/bpmn-parser/

Source Code: https://github.com/danbailo/bpmn-parser


BPMN Parser is a library to read and parse .bpmn files with Python. With this, you can create another things related with BPMN, such as linters, tests, validate BPMN flows, etc.

The key features are:

  • Easy to use: It's easy to use for the final users.
  • Start simple: Just import and use!
  • Support to build other applications: This library allow and helps to build another applications, such linters, tests, validators, etc.

Installation

Create and activate a virtual environment and then install BPMN Parser:

$ pip install bpmn-parser
---> 100%
Successfully installed bpmn-parser

Example

  • Create a file main.py with:
# Import BPMN Parser
from bpmn_parser import BPMNParser

# Instance it
bpmn_parser = BPMNParser('/path/to/bpmn/flow.bpmn')

# Listing service tasks
for service_task in bpmn_parser.service_task.list:
    print(service_task)

# Getting service task
print(bpmn_parser.service_task.get('Activity_139q5mt'))

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

Then, just install the project

make install

Project commands

Command Description
make install Install project as dev
make check_format Check code format
make format Format the code
make check_lint Check code lint
make lint Lint the code
make check_types Check code types
make tests Run tests
make check_all Run all checkers of project
make prepare_env_pyenv Prepare an enviroment with pyenv

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.9.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

bpmn_parser-1.0.9-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bpmn_parser-1.0.9.tar.gz
Algorithm Hash digest
SHA256 0fce3a720391bea684ff499f31c00664ae2ced9ff0255aef3faf99ca1cbc6cb5
MD5 b4a0e1cbddd18641c4ac75d175099217
BLAKE2b-256 9d2ba2c5389d7b1553b42803638bada1a9f920e964177a3767f4c346e708f1dc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bpmn_parser-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 f6c556afa02a324a08ce5ebdaaa84976b4efc81b44e9da2d0d2d05fe8ae8bce1
MD5 96b0fdae852f498954d067cb4dfc2742
BLAKE2b-256 38075b3f56461f4fb60d53e2a29dd271c218169b24a5ab1cbc6b16f09091f5fa

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