decisionTable.py

Project logo

 

pip travis coverage codestyle chat

Remove multiple if/elif/else statements with decision table!

Patreon User Twitter User

 

Description

DT.py (decisionTable.py) was created to simplify python code which holds huge amount of logic (if/elif/else). To make decision base on decision table you create simple CSV like table, define input/output arguments, define output base on input argument combination and this is it. For input arguments you can use simple string, regex, or glob like string! To get a decision pass random input arguments in table object and it will return output elements in tuple.

 

Homepage

For more informations please visit projects official homepage.

https://urosjarc.github.io/decisionTable.py

 

License

Copyright © 2016 Uroš Jarc

MIT License

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.