Skip to main content

DMN implementation with ruly rule engine

Project description

Ruly-DMN

ruly-dmn is a python package that offers a limited implementation of the DMN standard, with additional features. It relies on the ruly rule engine to make decisions and derive new rules. It can be used as a library or as a command line tool.

The package assumes that the DMN diagrams are defined as XML files, in the format specified by the Camunda modeler. The recommended workflow is to use the Camunda modeler to create diagrams and initial decision tables and then pass them to functions in this package, so it can make decisions or derive new rules. See the examples directory for examples of working DMN files that can both be opened in the Camunda modeler and passed to the functions of this package.

The current limitations, in regard to the complete DMN standard:

  • only available hit policy is FIRST
  • there are no constraints on enumerated variables when user is entering new rules
  • only available variable comparision (when making decisions) is for equality
  • visual diagrams are not taken into account when creating rule engine rules, only decision tables
  • the package functions are not guarenteed to work if the DMN file is incorrect
  • S-Feel and other code evaluations in rules are not supported

Installation

To install, call:

pip install ruly-dmn

Usage

When the package is installed, it can be used either by importing its modules (see documentation for more details), or by calling ruly-dmn in command line. Alternatively, python -m ruly_dmn.main may be used instead of the command line tool. Also it's possible to use this tool as a library, consult the documentation for that.

Development environment

To install development dependencies, call

pip install -r requirements.txt

This will, among other packages, install doit, which is ruly-dmn's build tool. Use this tool to perform various actions like testing, building documentation, linting check, etc. For the list of all available tasks, call:

doit list

Contributing

Feel free to post any issues - bugs, feature requests, etc. Do not send pull requests before an issue for the problem it solves is created. When sending pull requests, please reference the issue(s) it attempts to solve and, after the review process, it will be accepted. Make sure that the updated changes reflect on the documentation and tests, so they're not left in an inconsistent state.

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

ruly-dmn-0.0.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ruly_dmn-0.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ruly-dmn-0.0.0.tar.gz.

File metadata

  • Download URL: ruly-dmn-0.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for ruly-dmn-0.0.0.tar.gz
Algorithm Hash digest
SHA256 19931b7ed39fb96fa7b5903487f2257fd65f56b9a61c3a007fa536b53405d736
MD5 5a203a979df65b68f64192f51e19aef6
BLAKE2b-256 6db88865653e3e29d3ff7785cab83057c263b36a859551a21355a316f08dc81b

See more details on using hashes here.

File details

Details for the file ruly_dmn-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: ruly_dmn-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for ruly_dmn-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f05843fa55f845e2a7a9f87e6773be75019e64ebe085f2de394ff01cb0300e83
MD5 85701f196ae1e33f016d1369aef9c23f
BLAKE2b-256 396570f2408a1f09aeaa6595bfc77381fc4c42290e2c30d81aa52ebd5b923f0d

See more details on using hashes here.

Supported by

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