Skip to main content
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.4.4
=====
- Added float function to cast value to float. Used to make comparisions
between float and int possible.

0.4.3
=====
- Improved parsing single quoted strings. Now almost all chars are allowed
except a single quote "'" will will raise an execption because parsing
fails. Because the fix is a improvement at all and the remaining bug is is
currently considered as a rare corner case. This will be released anyway.

0.4.2
=====
- Added workaround for failing parsing of expressions when pyparsing is under
high load.

0.4.1
=====
- Changed license from MIT to GPL v2+ and added LICENSE.txt
- Added "bdist_rpm" section setup.cfg.
- Added "egg_info" section setup.cfg.

0.4.0
=====
- Make comparison of operators more type safe. Evaluation of terms is only
valid of operators of the same type. Otherwise the term will evaluate to
False.
- Implement short circuiting for "and" and "or" operators.
- Support "True","False","None" in bool function.
- Refactored code. Created own module for operators and functions.
- Added documentation.

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

Metadata

Release files for brabbel 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brabbel 0.4.4
File Size Uploaded Provenance Actions
brabbel-0.4.4.tar.gz 8.1 kB Without provenance Details for brabbel-0.4.4.tar.gz

Release files / brabbel-0.4.4.tar.gz

Download URL brabbel-0.4.4.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9892e908b7702212b4827c99f8567bbd34656368c48812e73c59410e4fa662d1
BLAKE2b-256 checksum
How to use checksums
4d0b3813e177514231e9770649c0abfdd99469bb17eeab07606369ba1fe3aea8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for brabbel 0.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page