mentortools/libs/: qpel-tools-abm-2.0.68143 metadata and description

Simple index

author Your Name
author_email you@example.com
classifiers
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
description_content_type text/markdown
requires_python >=3.10,<4.0
File Tox results History
qpel_tools_abm-2.0.68143-py3-none-any.whl
Size
7 KB
Type
Python Wheel
Python
3
qpel_tools_abm-2.0.68143.tar.gz
Size
4 KB
Type
Source

QPEL(Query parameter expression language)

This package contains only qpelparser (tool capable of parsing qpel-formatted string as qpel.Token tree). No qpel formatter included
QPEL is simple context based language, it has only 3 element types:

Getter

Non quoted string is a Getter. EXAMPLES:

Getter elements can be chained with dot, EXAMPLES:

val = context["qqq"] if isinstance(context, dict) else getattr(context, "qqq")
val["qqq"] if isinstance(val, dict) else getattr(val, "qqq")

Call

Pair or round brackets is a Call. EXAMPLES:

Everything inside round brackets is parsed as distinct qpel strings, separated by commas and used as arguments. EXAMPLES:

Key arguments are also accepted. EXAMPLE:

Literal

All other values are literals. EXAMPLES:

Boolean values should present in context(implemented by Getter):

Dictionaries are not supported. Could be changed later