jmespath / jmespath/jmespath.py

Feature request: bind options to compiled expression

Open
#181 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.4k
Forks
212
PR merge metrics
No merged PRs in 30d

Description

I'd like to set the options for a compiled expression *when compiling*:

```
options = jmespath.Options(custom_functions=CustomFunctions())
compiled = jmespath.compile(some_expression, options=options)
```

so I don't have to pass `partial(compiled.search, options=options)` objects around.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.