objectpath


Nameobjectpath JSON
Version 0.6.1 PyPI version JSON
download
home_pagehttp://adriank.github.io/ObjectPath
SummaryThe agile query language for semi-structured data. #JSON
upload_time2018-11-27 15:44:46
maintainer
docs_urlNone
authorAdrian Kalbarczyk
requires_python
licenseMIT License
keywords query tree json nested structures
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ObjectPath
==========

|Downloads| |Build Status| |Code Health| |Coverage Status|

The agile NoSQL query language for semi-structured data
-------------------------------------------------------

**#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.

More at `ObjectPath site <http://objectpath.org/>`__

.. figure:: http://adriank.github.io/ObjectPath/img/op-colors.png
   :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
============== ==================

Documentation
-------------

`ObjectPath Reference <http://objectpath.org/reference.html>`__

Command line usage
------------------

.. code:: sh

   $ sudo pip install objectpath
   $ objectpath file.json

or

.. code:: sh

   $ git clone https://github.com/adriank/ObjectPath.git
   $ cd ObjectPath
   $ python shell.py file.json

Python usage
------------

.. code:: sh

   $ sudo pip install objectpath
   $ python
   >>> from objectpath import *
   >>> tree=Tree({"a":1})
   >>> tree.execute("$.a")
   1
   >>>

.. code:: sh

   $ git clone https://github.com/adriank/ObjectPath.git
   $ cd ObjectPath
   $ python
   >>> from objectpath import *
   >>> tree=Tree({"a":1})
   >>> tree.execute("$.a")
   1
   >>>

Contributing & bugs
-------------------

I appreciate all contributions and bugfix requests for ObjectPath,
however since I don’t code in Python any more, this library is not
maintained as of now. Since I can’t fully assure that code contributed
by others meets quality standards, I can’t accept PRs.

If you feel you could maintain this code, ping me. I’d be more than
happy to transfer this repo to a dedicated ObjectPath organization on
GitHub and give the ownership to someone with more time for this project
than me.

License
-------

**MIT**

.. |Downloads| image:: https://img.shields.io/pypi/dm/objectpath.svg
   :target: https://pypi.python.org/pypi/objectpath/
.. |Build Status| image:: https://travis-ci.org/adriank/ObjectPath.svg?branch=master
   :target: https://travis-ci.org/adriank/ObjectPath
.. |Code Health| image:: https://landscape.io/github/adriank/ObjectPath/master/landscape.png
   :target: https://landscape.io/github/adriank/ObjectPath/master
.. |Coverage Status| image:: https://coveralls.io/repos/adriank/ObjectPath/badge.png?branch=master
   :target: https://coveralls.io/r/adriank/ObjectPath?branch=master

Download
********



            

Raw data

            {
    "_id": null,
    "home_page": "http://adriank.github.io/ObjectPath",
    "name": "objectpath",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "query,tree,JSON,nested structures",
    "author": "Adrian Kalbarczyk",
    "author_email": "adrian.kalbarczyk@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ea/51/cd4c88d27f7aabc20a89bbddc1fc64f62fbc820a45c93c6ab8bc45e23f10/objectpath-0.6.1.tar.gz",
    "platform": "",
    "description": "ObjectPath\n==========\n\n|Downloads| |Build Status| |Code Health| |Coverage Status|\n\nThe agile NoSQL query language for semi-structured data\n-------------------------------------------------------\n\n**#Python #NoSQL #Javascript #JSON #nested-array-object**\n\nObjectPath is a query language similar to XPath or JSONPath, but much\nmore powerful thanks to embedded arithmetic calculations, comparison\nmechanisms and built-in functions. This makes the language more like SQL\nin terms of expressiveness, but it works over JSON documents rather than\nrelations. ObjectPath can be considered a full-featured expression\nlanguage. Besides selector mechanism there is also boolean logic, type\nsystem and string concatenation available. On top of that, the language\nimplementations (Python at the moment; Javascript is in beta!) are\nsecure and relatively fast.\n\nMore at `ObjectPath site <http://objectpath.org/>`__\n\n.. figure:: http://adriank.github.io/ObjectPath/img/op-colors.png\n   :alt: ObjectPath img\n\n   ObjectPath img\n\nObjectPath makes it easy to find data in big nested JSON documents. It\nborrows the best parts from E4X, JSONPath, XPath and SQL. ObjectPath is\nto JSON documents what XPath is to XML. Other examples to ilustrate this\nkind of relationship are:\n\n============== ==================\nScope          Language\n============== ==================\ntext documents regular expression\nXML            XPath\nHTML           CSS selectors\nJSON documents ObjectPath\n============== ==================\n\nDocumentation\n-------------\n\n`ObjectPath Reference <http://objectpath.org/reference.html>`__\n\nCommand line usage\n------------------\n\n.. code:: sh\n\n   $ sudo pip install objectpath\n   $ objectpath file.json\n\nor\n\n.. code:: sh\n\n   $ git clone https://github.com/adriank/ObjectPath.git\n   $ cd ObjectPath\n   $ python shell.py file.json\n\nPython usage\n------------\n\n.. code:: sh\n\n   $ sudo pip install objectpath\n   $ python\n   >>> from objectpath import *\n   >>> tree=Tree({\"a\":1})\n   >>> tree.execute(\"$.a\")\n   1\n   >>>\n\n.. code:: sh\n\n   $ git clone https://github.com/adriank/ObjectPath.git\n   $ cd ObjectPath\n   $ python\n   >>> from objectpath import *\n   >>> tree=Tree({\"a\":1})\n   >>> tree.execute(\"$.a\")\n   1\n   >>>\n\nContributing & bugs\n-------------------\n\nI appreciate all contributions and bugfix requests for ObjectPath,\nhowever since I don\u2019t code in Python any more, this library is not\nmaintained as of now. Since I can\u2019t fully assure that code contributed\nby others meets quality standards, I can\u2019t accept PRs.\n\nIf you feel you could maintain this code, ping me. I\u2019d be more than\nhappy to transfer this repo to a dedicated ObjectPath organization on\nGitHub and give the ownership to someone with more time for this project\nthan me.\n\nLicense\n-------\n\n**MIT**\n\n.. |Downloads| image:: https://img.shields.io/pypi/dm/objectpath.svg\n   :target: https://pypi.python.org/pypi/objectpath/\n.. |Build Status| image:: https://travis-ci.org/adriank/ObjectPath.svg?branch=master\n   :target: https://travis-ci.org/adriank/ObjectPath\n.. |Code Health| image:: https://landscape.io/github/adriank/ObjectPath/master/landscape.png\n   :target: https://landscape.io/github/adriank/ObjectPath/master\n.. |Coverage Status| image:: https://coveralls.io/repos/adriank/ObjectPath/badge.png?branch=master\n   :target: https://coveralls.io/r/adriank/ObjectPath?branch=master\n\nDownload\n********\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "The agile query language for semi-structured data. #JSON",
    "version": "0.6.1",
    "split_keywords": [
        "query",
        "tree",
        "json",
        "nested structures"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "22febb4a6565a9d960c113ad84572b48",
                "sha256": "7ac2c507e7e5bfbf245701044453edc8e4073ded01d53349237d918124d7ca87"
            },
            "downloads": -1,
            "filename": "objectpath-0.6.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22febb4a6565a9d960c113ad84572b48",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 20900,
            "upload_time": "2018-11-27T15:44:45",
            "upload_time_iso_8601": "2018-11-27T15:44:45.158963Z",
            "url": "https://files.pythonhosted.org/packages/aa/2a/7d32788e3fc2e14c0ba76bca110a5465f75b2bf266a6b6bd802b4f370988/objectpath-0.6.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "fbbeffaac1cde225f0a0a80c3bf3a316",
                "sha256": "461263136c79292e42431fbb85cdcaac4c6a256f6b1aa5b3ae9316e4965ad819"
            },
            "downloads": -1,
            "filename": "objectpath-0.6.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fbbeffaac1cde225f0a0a80c3bf3a316",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 18793,
            "upload_time": "2018-11-27T15:44:46",
            "upload_time_iso_8601": "2018-11-27T15:44:46.676383Z",
            "url": "https://files.pythonhosted.org/packages/ea/51/cd4c88d27f7aabc20a89bbddc1fc64f62fbc820a45c93c6ab8bc45e23f10/objectpath-0.6.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-11-27 15:44:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "objectpath"
}
        
Elapsed time: 0.21481s