ObjectPath
ObjectPath copied to clipboard
The agile query language for semi-structured data
Python 3.8 introduced a warning for identity vs equality, as explained here: https://adamj.eu/tech/2020/01/21/why-does-python-3-8-syntaxwarning-for-is-literal/ Objectpath 0.6.1 triggers some SyntaxWarning's as: `/usr/local/lib/python3.8/site-packages/objectpath-0.6.1-py3.8.egg/objectpath/core/interpreter.py:379: SyntaxWarning: "is" with a literal. Did you mean "=="? if...
NameError for map and fitler would only occur in python 1. Python 2 and 3 both got these two keywords. And `type(map(string.lower, 'ABC')) is map` is not true in Python...
I have some data where there are "named references" to other objects in other parts of the document stored as a string, for example: ``` { "beverage": {"soda": { "lemonlime":...
Hi, Thanks for you work! I would like extract full path on query. With jq , i can do: $ cat report-cuckoo.json |jq 'path(.. |.file_written?| select(.!=null))' [ "behavior", "generic", 1,...
\>\>\> 3 and 4 => 4 \>\>\> {"name": 1} and {"name": 2} => {"name": 2} Operator **and** should work according to what's in the reference manual: Negative are: false, null,...
"%a %b"%{"a":"Hello", "b":"World!"} -> "Hello World!" or maybe "@a @b"%{"a":"Hello", "b":"World!"} -> "Hello World!"
> > > keys(sum($._)) > > > Argument is not object but int in keys() > > > keys($._) > > > Argument is not object but list in keys()
The error looks like this: Traceback (most recent call last): File "/usr/local/bin/objectpath", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/objectpath/shell.py", line 55, in main src=open(File,"r") IOError: [Errno 2] No such file or...