Skip to main content

A simple python based expression language

Project description

Brabbel

Brabbel is a small python based expression language which can be used to evaluate simple expressions.

Brabbel provides the following set of features:

  • Values: Strings, Numbers, Variables , Lists

  • simple arithmetic operations: + - / *

  • simple equation : < > <= >= == !=

  • simple bool operation: and or not

  • function calls: date, bool

  • other: check if values is _in_ a list

Brabbel is the german term for the first “language” of a baby and emphasises the reduced coverage of this language. 0.3.0 ===== Make Brabbel Python3 compatible. Added python-future package as dependency

  • Allow dots “.” in variable names.

0.2.7

  • Fixed handling of integer and string values in lists.

0.2.6

  • Added folders for documentation (currently empty)

  • Allow “-” in Strings

  • Added more tests.

0.2.5

  • Log warning if a variable can not be resolved in the values dict.

  • Allow signed numbers. Currently only negativ sign is allowed.

  • String to not have a “’” anymore.

  • Added more tests.

0.2.4

  • Compatiblity: Allow “-” in variable names.

  • Fixed strip of “’” in “len” function.

0.2.3

  • Allow empty strings

  • Fix bool function

  • Allow lists as param for functions

0.2.2

  • Added len function

0.2.1

  • Be more tolerant on whitespaces in delimeted lists,

  • Fix call of functions

0.2

  • Add operator mapping for operators like ge, gt, le, lt, eq, ne

  • Be more tolerant on getting non existing values from the values dictionary.

  • Removed Rule class.

0.1

  • Initial Release

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

brabbel-0.3.0.tar.gz (6.1 kB view hashes)

Uploaded Source

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