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.3.tar.gz
(7.4 kB
view details)
Built Distribution
File details
Details for the file pyjexl-0.1.3.tar.gz
.
File metadata
- Download URL: pyjexl-0.1.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9dbb26d500d86343fc6dc8aa3f6394a5b6afbb1dd297206556088f77467a49e |
|
MD5 | e89e09e926fa8b9eb554727b973a2e74 |
|
BLAKE2b-256 | 1a4d4f374f77cb9e0ec403ff829903aabebc967088284979f9f58333f3196b06 |
File details
Details for the file pyjexl-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: pyjexl-0.1.3-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 | 20994cc6054d4bff6047c5d372040dafeee06a037e2fb3a53f00ca7c1f95b6bd |
|
MD5 | c570c309a3eb4599f2bee62292795998 |
|
BLAKE2b-256 | edafab9fe22bc042f2df516beba59cfc628e4230c1306f2089738f796f628984 |