Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
|Downloads| <https://pypi.python.org/pypi/objectpath/>
_
|License| <https://pypi.python.org/pypi/objectpath/>
_ |Build Status| <https://travis-ci.org/objectpath/ObjectPath>
_ |Code Health| <https://landscape.io/github/objectpath/ObjectPath/master>
_
|Coverage Status| <https://coveralls.io/r/objectpath/ObjectPath?branch=master>
_
#Python #NoSQL #Javascript #JSON #nested-array-object
ObjectPath is a query language similar to XPath or JSONPath, but much more powerful thanks to embedded arithmetic calculations, comparison mechanisms and built-in functions. This makes the language more like SQL in terms of expressiveness, but it works over JSON documents rather than relations. ObjectPath can be considered a full-featured expression language. Besides selector mechanism there is also boolean logic, type system and string concatenation available. On top of that, the language implementations (Python at the moment; Javascript is in beta!) are secure and relatively fast.
This package is a maintained fork of the original project<htttps://github.com/adriank/ObjectPath>
and still compatible with the specification at the
ObjectPath site<http://objectpath.org/>
.
More at ObjectPath site <http://objectpath.github.io/ObjectPath/>
_
.. figure:: http://objectpath.github.io/ObjectPath/img/op-colors.png :align: center :alt: ObjectPath img
ObjectPath img
ObjectPath makes it easy to find data in big nested JSON documents. It borrows the best parts from E4X, JSONPath, XPath and SQL. ObjectPath is to JSON documents what XPath is to XML. Other examples to ilustrate this kind of relationship are:
============== ================== Scope Language ============== ================== text documents regular expression XML XPath HTML CSS selectors JSON documents ObjectPath ============== ==================
ObjectPath Reference <http://objectpath.github.io/ObjectPath/reference.html>
_
ObjectPathPY - Python implementation of ObjectPath, used in production for over two years without problems. Use objectpath.py file as a example of usage.
ObjectPathJS - beta version of Javascript implementation. Many tests passed, {} and functions are not implemented yet. Javascript implementation has the very same API as the Python version.
$ pip install objectpath-ng $ objectpath file.json
or
$ git clone https://github.com/objectpath/ObjectPath.git $ cd ObjectPath $ python shell.py file.json
::
$ pip install objectpath-ng
$ python
>>> from objectpath import *
>>> tree=Tree({"a":1})
>>> tree.execute("$.a")
1
>>>
::
$ git clone https://github.com/objectpath/ObjectPath.git
$ cd ObjectPath
$ python
>>> from objectpath import *
>>> tree=Tree({"a":1})
>>> tree.execute("$.a")
1
>>>
MIT
.. |Downloads| image:: https://pypip.in/download/objectpath/badge.svg .. |License| image:: https://pypip.in/license/objectpath/badge.svg .. |Build Status| image:: https://travis-ci.org/objectpath/ObjectPath.svg?branch=master .. |Code Health| image:: https://landscape.io/github/objectpath/ObjectPath/master/landscape.png .. |Coverage Status| image:: https://coveralls.io/repos/objectpath/ObjectPath/badge.png?branch=master
Download
FAQs
The agile query language for semi-structured data. #JSON
We found that objectpath-ng demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.