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

Uploaded Source

Built Distribution

pyjexl-0.1.1-py2.py3-none-any.whl (9.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pyjexl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 05d8a3923abc4cd490c07c58194ddfbb2e1dbf0f09c0494b09b238934520b6fa
MD5 6537304f0610b011854d810f4669c22b
BLAKE2b-256 494354c91c32958ce7c5b3f6bacbad7acff67f3af108286de6d5a80ac95a1c1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyjexl-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 876b7349994e52f7f995f4983a599ee9f83740230f0ca88c160aca835c1aa8c1
MD5 0592e7b5c50f8bd96d7910b60f3d33fa
BLAKE2b-256 56730753c3f07dd31050a6fded55e05dc97ccf726635878316325f1068cc76a3

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