Skip to main content

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.

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.1.2.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

pyjexl-0.1.2-py2.py3-none-any.whl (9.9 kB view hashes)

Uploaded Python 2 Python 3

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