Skip to main content

A JEXL parser and evaluator.

Project description

# PyJEXL

A Python-based JEXL parser and evaluator.

__NOTE:__ This library handles the JEXL from
[TechnologyAdvice's JEXL library][jexl]. It does __NOT__ handle the
similarly-named Apache Commons JEXL language.

[jexl]: https://github.com/TechnologyAdvice/Jexl

## 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


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.2.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

pyjexl-0.2.1-py2.py3-none-any.whl (10.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyjexl-0.2.1.tar.gz.

File metadata

  • Download URL: pyjexl-0.2.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyjexl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cd770db502ea4f6b2f2c72ebd9a14f2f7d0146058ac87299be2e5a36738144c0
MD5 48f93663e60432b1c188b1dfec37c931
BLAKE2b-256 f0a68719c2ec5ecb647be28d0cb185b31c4840a7a3e15fed3613661fb663ca9f

See more details on using hashes here.

File details

Details for the file pyjexl-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyjexl-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 66a7fb0437d1c3b411f6f59ceff4845531573bff64488961c97342782f81baff
MD5 6f4cbf384564740586104026f884dfcf
BLAKE2b-256 7ffdb3c9f0fc69818c18a8e91197dd303643d9b8b9b12d9ebef3edafd74d02b0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page