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.0.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for pyjexl-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4959f63e45b29af4aed27446bf1cda4046fc65ddee339628d218e51351897d00 |
|
MD5 | b5e7882549da2fb9c2c55b6040a65a58 |
|
BLAKE2b-256 | 842caa846580a65dda08bf5a763c03979e5740e65419dee117f277afd07c0618 |