### Installing and Executing ObjectPath via Command Line Source: https://github.com/adriank/objectpath/blob/master/README.md This snippet demonstrates how to install ObjectPath using pip and then execute it from the command line, passing a JSON file as input for quick processing. ```sh $ sudo pip install objectpath $ objectpath file.json ``` -------------------------------- ### Python Usage: Pip Installation and Basic Query Source: https://github.com/adriank/objectpath/blob/master/README.md This snippet covers installing ObjectPath via pip and then demonstrates a basic query within a Python interpreter. It shows how to import the library, create a `Tree` object from a dictionary, and execute a simple ObjectPath query. ```sh $ sudo pip install objectpath ``` ```python from objectpath import * tree=Tree({"a":1}) tree.execute("$.a") ``` -------------------------------- ### Running ObjectPath from Source via Command Line Source: https://github.com/adriank/objectpath/blob/master/README.md This snippet shows how to clone the ObjectPath repository from GitHub, navigate into its directory, and then run the `shell.py` script with a JSON file. This is useful for development or when pip installation is not preferred. ```sh $ git clone https://github.com/adriank/ObjectPath.git $ cd ObjectPath $ python shell.py file.json ``` -------------------------------- ### Python Usage: From Source and Basic Query Source: https://github.com/adriank/objectpath/blob/master/README.md This snippet outlines how to set up ObjectPath by cloning its repository and then demonstrates a basic query within a Python interpreter. It illustrates importing the library, creating a `Tree` object, and executing a simple ObjectPath query. ```sh $ git clone https://github.com/adriank/ObjectPath.git $ cd ObjectPath ``` ```python from objectpath import * tree=Tree({"a":1}) tree.execute("$.a") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.