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 details)
Built Distribution
File details
Details for the file pyjexl-0.1.0.tar.gz
.
File metadata
- Download URL: pyjexl-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4669e3209fe16f086d8ce246418a16ceed6d18ee3a88ad043a73e066cd5f280 |
|
MD5 | 1810658593be0ed541017c212a81d6a8 |
|
BLAKE2b-256 | 7287aea4dc92ba6083c39e2f093873b45d8c6cd37df2b9c8bd37a50969df3639 |
File details
Details for the file pyjexl-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pyjexl-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4959f63e45b29af4aed27446bf1cda4046fc65ddee339628d218e51351897d00 |
|
MD5 | b5e7882549da2fb9c2c55b6040a65a58 |
|
BLAKE2b-256 | 842caa846580a65dda08bf5a763c03979e5740e65419dee117f277afd07c0618 |