A JEXL parser and evaluator.
Project description
# PyJEXL
A Python-based JEXL parser and evaluator.
## Limitations and Differences from JEXL
- JavaScript-style implicit type conversions aren't supported, but may be added
in the future. Instead, Python type semantics are used.
- Property access is only supported for mapping objects currently.
- Several odd edge-cases in JEXL are ignored because they are unintuitive,
difficult to implement, or a bad pattern:
- Implicitly using the first element in an array when chaining identifiers
is not supported. In JEXL, if `foo.bar` is a list, the expression
`foo.bar.baz` is equivalent to `foo.bar[0].baz`.
- Conditional expressions (AKA ternary expressions) cannot have a missing
consequent, i.e. `"foo" ?: 4` is invalid.
## License
Licensed under the MIT License. See `LICENSE` for details.
A Python-based JEXL parser and evaluator.
## Limitations and Differences from JEXL
- JavaScript-style implicit type conversions aren't supported, but may be added
in the future. Instead, Python type semantics are used.
- Property access is only supported for mapping objects currently.
- Several odd edge-cases in JEXL are ignored because they are unintuitive,
difficult to implement, or a bad pattern:
- Implicitly using the first element in an array when chaining identifiers
is not supported. In JEXL, if `foo.bar` is a list, the expression
`foo.bar.baz` is equivalent to `foo.bar[0].baz`.
- Conditional expressions (AKA ternary expressions) cannot have a missing
consequent, i.e. `"foo" ?: 4` is invalid.
## License
Licensed under the MIT License. See `LICENSE` for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyjexl-0.1.2.tar.gz
(7.5 kB
view details)
Built Distribution
File details
Details for the file pyjexl-0.1.2.tar.gz
.
File metadata
- Download URL: pyjexl-0.1.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1e9103afbfb49cb10f28bcdddaa0265ad0f81361b53789995ef2c3a99bbc11f |
|
MD5 | effcfb9f931ad71ea5cfd05d1e3914b6 |
|
BLAKE2b-256 | 327e57cc8a3324126080e586c6b4a9011ad6a8abd7bfd4c4223a2e1c5903c4e8 |
File details
Details for the file pyjexl-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pyjexl-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b745d0308ba71f5ea401aae0c87a78760fb27e9b55f77257360d8b4c5c582d3a |
|
MD5 | aa447ca7ecc49d174d48d944a2af4dde |
|
BLAKE2b-256 | 026b189708c6117b7579c8221fd615b1e8f6c0ad509412d1c190843ee3a74785 |