-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add jpp which is an extended superset of the jp command #224
base: develop
Are you sure you want to change the base?
Commits on Mar 22, 2013
-
Configuration menu - View commit details
-
Copy full SHA for 126621f - Browse repository at this point
Copy the full SHA 126621fView commit details
Commits on Oct 9, 2013
-
* release-0.0.3: (22 commits) Bump version to 0.0.3 There's no tests/unit dir, just tests/ Add travis.yml file Update escape compliance test to escape quotes Remove escape sequences Allow identifiers to be surrounded in double quotes Add proper string escaping Verify whitespace separator not required for '||' Support root level wildcards Simplify wildcard values parsing Simplify index parsing Add more tests to basic test spec Add more test cases for indices json spec Add a proper __repr__ to ORExpression nodes Change 'or' to '||' Add jp command line Don't include tests as part of package list Add jp command line interface Add support for root indexing Add note on pronounciation in README ...
Configuration menu - View commit details
-
Copy full SHA for fd87696 - Browse repository at this point
Copy the full SHA fd87696View commit details
Commits on Oct 17, 2013
-
* release-0.1.0: (25 commits) Bump version to 0.1.0 Add with_str_method to ParseError class as well Map __str__ appropriately in py2/py3 Catch case where object can't be indexed Improve lexer/parser error messages Fix example in spec Update docs/spec/grammar for new multiselect hash Update multiselect hash to require key names Initial commit of spec docs Update grammar with multiselect changes Update grammar for quoted char escapes Remove unneeded pretty_print Add multiselect tests for multifieldlist Pullup common multiselect code into base class Implement multiselect with array syntax Add tests for AST when constructing by hand Add more tests for root level multiselects Rename scalaridentifiers to nonbranched-expr Bug fix for scalaridentifier in multiselect Allow recursive scalaridentifier in multimatch expressions ...
Configuration menu - View commit details
-
Copy full SHA for 54d0620 - Browse repository at this point
Copy the full SHA 54d0620View commit details
Commits on Dec 6, 2013
-
* release-0.2.0: Bump version to 0.2.0 Update compliance tests for projections on non list values Fix wildcard projection bug Add a JEP number to the docs Change JEP status to accepted Allow perftest to run an arbitrary directory Allow wildcard projections on wildcards Fix issue 18, indexing wildcard projections Fixing typo Adding a nested-expressions proposal Adding a place for JMESPath proposals Add another index test Update the spec/grammar for list flattening Add test for single element multiselect with flattening Add more tests for the flattening operator Make index expressions in flatten expression consistent Update jmespath with alternate merging behavior Add more indices tests Initial commit of flattened multiselect Fix unbalanced parens in grammar
Configuration menu - View commit details
-
Copy full SHA for e7df117 - Browse repository at this point
Copy the full SHA e7df117View commit details
Commits on Dec 19, 2013
-
* release-0.2.1: Bump version to 0.2.1 Don't project non list elements in flattening operator Remove duplicate test case Update spec with the JEP 6 grammar Add unicode literal compliance test Implement JEP 6 Add note about compliance test differences Update JEP to allow "_" as a valid unquoted identifier Add JEP 6 proposal Update spec/tests for wildcard syntax Implement JEP 1
Configuration menu - View commit details
-
Copy full SHA for fd8af34 - Browse repository at this point
Copy the full SHA fd8af34View commit details
Commits on Feb 28, 2014
-
* release-0.3.0: (48 commits) Bump version number to 0.3.0 Fix bug in py26 Update JEP with latest edits Adding JEP number Adding a functions JEP Document function projections in the spec Fix types/minor formatting errors in spec docs Add type info for sort/to_number/to_string Refactor resolver/type checker into smaller functions Update spec to add a note about floating numbers Copy over jep-3 to specification.rst Pull sort_by and resolve=False from functions Fix failing test from or expression update Change or statements to use true/false values rather than null Fix bugs in sort_by Final compliance tests Add support for variadic function Support type checking in argspec Allow projections on functions Initial commit of jep-3 ...
Configuration menu - View commit details
-
Copy full SHA for e23af23 - Browse repository at this point
Copy the full SHA e23af23View commit details
Commits on Mar 6, 2014
-
* release-0.3.1: Bump version to 0.3.1 Add docs for exptype (jep-8) Regen lrtables Initial commit of expression references Regen lrtables Add note in README about how to regen the lrtables Marking JEP-8 as accepted Add exptype to the proposals index Incorporate review feedback Initial commit of jep-8 Add scripts to generate the lr tables Update perftest to run single files Update jp so we can actually pass the compliance tests Add a compliance test runner
Configuration menu - View commit details
-
Copy full SHA for 53999ed - Browse repository at this point
Copy the full SHA 53999edView commit details
Commits on Apr 23, 2014
-
* release-0.4.0: Bump version to 0.4.0 Disallow '@' as a top level syntax Remove cruft that's no longer needed after pratt-jep-4 Fix py26 test failure by using unittest2 compat import Add jep-4 to proposals doc Add docs for pipe-expression Switch to hand written lexer/parser Add sum() function Use proper pronunciation guide for project name
Configuration menu - View commit details
-
Copy full SHA for 7e1c5b1 - Browse repository at this point
Copy the full SHA 7e1c5b1View commit details
Commits on May 1, 2014
-
Configuration menu - View commit details
-
Copy full SHA for 10ec1b9 - Browse repository at this point
Copy the full SHA 10ec1b9View commit details
Commits on Nov 6, 2014
-
* release-0.5.0: Bump version to 0.5.0 Remove unused filter_expression AST node Update min/max docs with new signature Corrected expected results for perf tests. Update min*/max* to support strings Add starts_with, ends_with, and reverse function Fix lexer bug when lexing an empty string Add missing unit tests Add coveragerc file Fix failing build, use https link for test submodule Cache visitor method lookups Initial commit that switches to an simpler AST Update compliance tests with latest tests Add jmespath.test git repo as a submodule Fix to_string to json dump without spaces Relax compliance tests for to_string Fix typo Remove function usage from pipe.json
Configuration menu - View commit details
-
Copy full SHA for b445f13 - Browse repository at this point
Copy the full SHA b445f13View commit details
Commits on Jan 31, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 7cdde2b - Browse repository at this point
Copy the full SHA 7cdde2bView commit details
Commits on Feb 3, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 5f23fbf - Browse repository at this point
Copy the full SHA 5f23fbfView commit details
Commits on Apr 9, 2015
-
* release-0.6.2: Bump version to 0.6.2 Add changelog for 0.6.2 Remove jmespath.test submodule Remove redundant error check in jp Raise IncompleteExpressionError where appropriate Use singular argument when expected arity is 1 Add test for empty array with sort_by Fix invalid-type error messages Add a merge() function Add to_array function Fix filter projection parsing Sync jmespath.test submodule with latest changes Cleanup README, reorganize some sections Add another test for null check on slice projs Add gitter link in README Implement JEP-10, slice projections
Configuration menu - View commit details
-
Copy full SHA for dc57769 - Browse repository at this point
Copy the full SHA dc57769View commit details
Commits on Apr 21, 2015
-
* release-0.7.0: Bump version to 0.7.0 Update travis CI to test from .whl files Add nightly to python targets Add additional compliance tests for raw string literals Add a PendingDeprecationWarning to the old string literal syntax Initial commit of JEP-12 Separate compliance tests utilizing quoteless literals Add support for wheels
Configuration menu - View commit details
-
Copy full SHA for 0466cc1 - Browse repository at this point
Copy the full SHA 0466cc1View commit details
Commits on Apr 27, 2015
-
* release-0.7.1: Bump version to 0.7.1 Update jp.py to not use ordereddict Add more perf tests Add deeply nested projection perf test Move cases into their own directory Update tox to run 3.4 Remove unused imports Update changelog with latest changes Remove unused imports for 2.6 Update setup.py with latest information Rename jp to jp.py for consistency Fix regression when parsing filters
Configuration menu - View commit details
-
Copy full SHA for ee83029 - Browse repository at this point
Copy the full SHA ee83029View commit details
Commits on Sep 23, 2015
-
* release-0.8.0: Bump version to 0.8.0 Add changelog for latest release Add more map tests Add map() function Sync with latest jmespath.test repo Add support for using an ordered dictionary Process escaped single quotes Fix multiselect list parsing Actually pretty print the AST Rename variables to be full words Using a stateful lexer rather than a Scanner object Lexer cleanup and test fixes Lexer bug fixes Removing the computed table is just as fast but less code No longer using a regex based lexer
Configuration menu - View commit details
-
Copy full SHA for 361838d - Browse repository at this point
Copy the full SHA 361838dView commit details
Commits on Oct 1, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 048f594 - Browse repository at this point
Copy the full SHA 048f594View commit details
Commits on Jan 26, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 79baf74 - Browse repository at this point
Copy the full SHA 79baf74View commit details
Commits on Mar 10, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 6cde3b3 - Browse repository at this point
Copy the full SHA 6cde3b3View commit details
Commits on May 26, 2017
-
* release-0.9.3: Bump version to 0.9.3 Add additional hypothesis tests for functions Assert more properties on parsed AST result Fix lexer error values Always create a new copy of the function table Add fix to changelog Handle scientific notation in to_number() Add fix to changelog Add tests for number type fix Add testing for Python 3.6 and document support Added fix for long and Decimal numeric types
Configuration menu - View commit details
-
Copy full SHA for b4a3f4e - Browse repository at this point
Copy the full SHA b4a3f4eView commit details
Commits on Feb 24, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 4a4f6db - Browse repository at this point
Copy the full SHA 4a4f6dbView commit details
Commits on Feb 24, 2020
-
Configuration menu - View commit details
-
Copy full SHA for e824eee - Browse repository at this point
Copy the full SHA e824eeeView commit details
Commits on May 12, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 1c46efc - Browse repository at this point
Copy the full SHA 1c46efcView commit details
Commits on Jun 13, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 8b59732 - Browse repository at this point
Copy the full SHA 8b59732View commit details
Commits on Jun 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 6a076a4 - Browse repository at this point
Copy the full SHA 6a076a4View commit details
Commits on Jun 15, 2021
-
jpp: fork jpp command from jpipe
This is the first commit of a series that will port the golang jpp implementation to python. The jpp implementation is in these commits which begin with the 0.1.3 tag and end with the 0.1.3.1 tag: pipebus/jpp@2e59b07d58b76dd7e8c1a26d5815b8eb0d3717a3^...a8ea7c9
Configuration menu - View commit details
-
Copy full SHA for 4ca9dd3 - Browse repository at this point
Copy the full SHA 4ca9dd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9068279 - Browse repository at this point
Copy the full SHA 9068279View commit details -
jpp: Add --compact, -c bool flag to omit nonessential whitespace
Reference golang implementation: pipebus/jpp@ee70420
Configuration menu - View commit details
-
Copy full SHA for ef5e7e3 - Browse repository at this point
Copy the full SHA ef5e7e3View commit details -
jpp: decode all objects from the input stream
Reference golang implementation: pipebus/jpp@ba4e883 pipebus/jpp@d75cf88
Configuration menu - View commit details
-
Copy full SHA for b64e300 - Browse repository at this point
Copy the full SHA b64e300View commit details -
jpp: Add --slurp, -s bool flag like jq has
Read one or more input JSON objects into an array and apply the JMESPath expression to the resulting array. Reference golang implementation: pipebus/jpp@8a08979
Configuration menu - View commit details
-
Copy full SHA for f51b65f - Browse repository at this point
Copy the full SHA f51b65fView commit details -
jpp: Add --accumulate, -a option which accumulates all output objects…
… into a single recursively merged object This option will accumulate all output objects into a single recursively merged output object. Reference golang implementation: pipebus/jpp@e7989df
Configuration menu - View commit details
-
Copy full SHA for 0bbc90f - Browse repository at this point
Copy the full SHA 0bbc90fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8acf6dc - Browse repository at this point
Copy the full SHA 8acf6dcView commit details -
jpp: fix --accumulate array merge to coalesce duplicates
Reference golang implementation: pipebus/jpp@0abe226 Fixes: 0bbc90f ("jpp: Add --accumulate, -a option which accumulates all output objects into a single recursively merged object")
Configuration menu - View commit details
-
Copy full SHA for 72e273e - Browse repository at this point
Copy the full SHA 72e273eView commit details -
Add jpp which is an extended superset of the jp command
$ jpp --help usage: jpp [-h] [-a] [-c] [-e EXPR_FILE] [-f FILENAME] [-s] [-u] [--ast] [expression] jpp is an extended superset of the jp CLI for JMESPath positional arguments: expression optional arguments: -h, --help show this help message and exit -a, --accumulate Accumulate all output objects into a single recursively merged output object. -c, --compact Produce compact JSON output that omits nonessential whitespace. -e EXPR_FILE, --expr-file EXPR_FILE Read JMESPath expression from the specified file. -f FILENAME, --filename FILENAME The filename containing the input data. If a filename is not given then data is read from stdin. -s, --slurp Read one or more input JSON objects into an array and apply the JMESPath expression to the resulting array. -u, --unquoted If the final result is a string, it will be printed without quotes. --ast Only print the AST of the parsed expression. Do not rely on this output, only useful for debugging purposes. There's also a golang implementation in jmespath/jp#30.
Configuration menu - View commit details
-
Copy full SHA for 3771021 - Browse repository at this point
Copy the full SHA 3771021View commit details
Commits on Jun 16, 2021
-
jpp: default to the identity expression @ if no expression is given
Reference golang implementation: pipebus/jpp@74c0bbd
Configuration menu - View commit details
-
Copy full SHA for fbd3751 - Browse repository at this point
Copy the full SHA fbd3751View commit details -
jpp: Add --read-raw, -R bool flag like jq has
Reference golang implementation: pipebus/jpp@b025412
Configuration menu - View commit details
-
Copy full SHA for a61cdea - Browse repository at this point
Copy the full SHA a61cdeaView commit details -
jpp: Add --raw, -r bool flag like jq has (an alias for unquoted)
Reference golang implementation: pipebus/jpp@39fd791
Configuration menu - View commit details
-
Copy full SHA for 073bb88 - Browse repository at this point
Copy the full SHA 073bb88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 478b397 - Browse repository at this point
Copy the full SHA 478b397View commit details -
Configuration menu - View commit details
-
Copy full SHA for d69e8e4 - Browse repository at this point
Copy the full SHA d69e8e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 827491f - Browse repository at this point
Copy the full SHA 827491fView commit details
Commits on Jun 17, 2021
-
jpp: rename --read-raw to --raw-input for consistency with jq
Reference golang implementation: pipebus/jpp@fbd178f
Configuration menu - View commit details
-
Copy full SHA for 6b5b611 - Browse repository at this point
Copy the full SHA 6b5b611View commit details -
jpp: Add --unbox, -u flag (and drop --unquoted to reduce clutter)
If the final result is a list, unbox it into a stream of output objects that is suitable for consumption by --slurp mode. Reference golang implementation: pipebus/jpp@9caa261 See: jqlang/jq#878
Configuration menu - View commit details
-
Copy full SHA for 60cd963 - Browse repository at this point
Copy the full SHA 60cd963View commit details -
jpp: rename --raw to --raw-output for consistency with jq
Reference golang implementation: pipebus/jpp@f574aa5
Configuration menu - View commit details
-
Copy full SHA for d811157 - Browse repository at this point
Copy the full SHA d811157View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31f18fb - Browse repository at this point
Copy the full SHA 31f18fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 666036f - Browse repository at this point
Copy the full SHA 666036fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4762f0d - Browse repository at this point
Copy the full SHA 4762f0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87036fd - Browse repository at this point
Copy the full SHA 87036fdView commit details -
jpp: re-add --unquoted (a short -u means --unbox now)
Reference golang implementation: pipebus/jpp@6a504e8
Configuration menu - View commit details
-
Copy full SHA for ff641ef - Browse repository at this point
Copy the full SHA ff641efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70c5ec2 - Browse repository at this point
Copy the full SHA 70c5ec2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 379b70b - Browse repository at this point
Copy the full SHA 379b70bView commit details