{ "info": { "author": "James Saryerwinnie", "author_email": "js@jamesls.com", "bugtrack_url": null, "classifiers": [], "description": "=================\nJMESPath Terminal\n=================\n\nJMESPath, in your terminal!\n\n.. image:: https://cloud.githubusercontent.com/assets/368057/5158769/6546e58a-72fe-11e4-8ceb-ba866777983e.gif\n\n\nOverview\n========\n\nJMESPath is an expression language for manipulating JSON documents. If you've\nnever heard of JMESPath before, you write a JMESPath expression that when\napplied to an input JSON document will produces an output JSON document based\non the expression you've provided.\n\nYou can check out the `JMESPath site\n`__ for more information.\n\nOne of the best ways to learn the JMESPath language is to experiment\nby creating your own JMESPath expressions. The JMESPath Terminal\nmakes it easy to see the results of your JMESPath expressions immediately\nas you type.\n\n\nGetting Started\n===============\n\nYou can install the JMESPath Terminal via pip::\n\n $ pip install jmespath-terminal\n\nThere will then be a ``jpterm`` program you can run::\n\n $ jpterm\n\nWith no arguments specified, a sample JSON document is used as\ninput.\n\nYou can also specify an initial JSON document to use\nby specifying the JSON file as a positional argument::\n\n $ jpterm /tmp/somejsondoc.json\n\nYou can also pipe an input JSON document into the\n``jpterm`` command:\n\n.. image:: https://cloud.githubusercontent.com/assets/368057/5158770/6a6afb6e-72fe-11e4-8be3-893edf21920e.gif\n\nOutput\n------\n\nWhen the ``jpterm`` program exits (via ``F5`` or ``Ctrl-c``), ``jpterm`` may\nwrite content to stdout depending on the output mode. There are three output\nmodes:\n\n* result - Whatever is in the \"JMESPath result\" pane (the right hand side) will\n be printed to stdout.\n* expression - Whatever is in the \"JMESPath expression\" pane is printed to\n stdout.\n* nothing - Nothing is written to stdout when exiting.\n\nThe default mode is \"result\", which means that by default, whatever is in the\nresult pane will be printed to stdout when ``jpterm`` exits. You can switch\noutput modes using ``Ctrl-p``, which will cycle through the three modes above.\nYou can also specify what mode to use when starting the ``jpterm`` command\nusing the ``-m/--output-mode`` command line option.\n\nKeyboard Shortcuts\n------------------\n\n``F5 or Ctrl + c``\n | Quit the program.\n``Ctrl + p``\n | Output mode toggle. Toggle between outputting the current result,\n | expression, or nothing. This is discussed in the \"Output\" section above.\n``Ctrl + ]``\n | Clear the current expression.\n\nMouse Clicks\n------------\n\nNOTE: These features are dependent on terminal support. (The Terminal.app\nincluded in Mac OS X does not support this, but `iTerm2 `_\ndoes.)\n\nOne feature of the Urwid Python package (which jmespath-terminal is built on)\nis that mouse clicks are recognized. This allows you to click to switch focus\non either the Input or Result window (and of course back to the Expression) and\nscroll it.\n\nThis can make it difficult to select text for copying/pasting. Many Linux\nterminals will allow you to select the text with a ``Shift + click/drag`` and\ncopy it with ``Shift + Ctrl + c``. In iTerm2 selections can be made with\n``Opt/Alt + click/drag``.\n\nWorking on JMESPath Terminal\n============================\n\nIf you like to work on jmespath-terminal to add new features,\nyou can first create and activate a new virtual environment::\n\n $ virtualenv venv\n $ . venv/bin/activate\n\nThen install the module::\n\n $ pip install -e .\n\nYou'll now be able to modify the ``jpterm.py`` module and see\nyour changes reflected when you run the ``jpterm`` command.\n\nBeta Status\n===========\n\nUntil jmespath-terminal reaches version 1.0, some of the command line options\nand semantics may change. There will be a CHANGELOG.rst that will outline any\nchanges that occur for each new version.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jmespath/jmespath.terminal", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "jmespath-terminal", "package_url": "https://pypi.org/project/jmespath-terminal/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jmespath-terminal/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jmespath/jmespath.terminal" }, "release_url": "https://pypi.org/project/jmespath-terminal/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "JMESPath Terminal", "version": "0.2.1" }, "last_serial": 1753510, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "8b500415f0a762cc89484fa7cf0c8db7", "sha256": "588e4f05d201c4488b020a0eb6c8d99905695f690d4a357b4ab207af6bf9a0d9" }, "downloads": -1, "filename": "jmespath-terminal-0.0.1.tar.gz", "has_sig": true, "md5_digest": "8b500415f0a762cc89484fa7cf0c8db7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3421, "upload_time": "2014-11-20T06:08:13", "url": "https://files.pythonhosted.org/packages/9a/90/d96a44ecdbbbf6e4864946191416f048968de0da94a6c21cdfca2a04111c/jmespath-terminal-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "7f439bb74cb346d1e38b6e450d78a685", "sha256": "81b15b872d8b9799500f3bf8ed614a8321661c13e3feba4247a9e737287d954c" }, "downloads": -1, "filename": "jmespath-terminal-0.1.0.tar.gz", "has_sig": true, "md5_digest": "7f439bb74cb346d1e38b6e450d78a685", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3806, "upload_time": "2014-11-23T18:37:16", "url": "https://files.pythonhosted.org/packages/f4/c6/808b7ecba9f0594dbe95643bed832940c24a5bfd3d96652090b3162b12c7/jmespath-terminal-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "72c22209d9dc9b3475c768095dcce8ad", "sha256": "df26ac6fa774676b4c0eff155bdb2f9ddf0c78c013b5b4824b597f44793903f0" }, "downloads": -1, "filename": "jmespath-terminal-0.1.1.tar.gz", "has_sig": true, "md5_digest": "72c22209d9dc9b3475c768095dcce8ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5069, "upload_time": "2014-11-24T18:06:20", "url": "https://files.pythonhosted.org/packages/5b/46/e376d93a5634265ea5ac18b2d7db5d626222a62888d37919ee84dd67d205/jmespath-terminal-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "0d5e0f0b6612accbad86112d371b0326", "sha256": "6d8b1c8018d4ec180740dc8ba9bae68dc2af0e06a5426a3e0c680a2567061504" }, "downloads": -1, "filename": "jmespath-terminal-0.2.0.tar.gz", "has_sig": true, "md5_digest": "0d5e0f0b6612accbad86112d371b0326", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6217, "upload_time": "2015-06-03T05:30:12", "url": "https://files.pythonhosted.org/packages/84/98/26d52f3daba607d37b7077aa96c258c19905ef3d76067d1b9ed4faf89709/jmespath-terminal-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "4a9075b2820e87cac2a0ff47341a959f", "sha256": "60c538e6c0244d2b58d7ff470839b9742a91b74d685a6cbf2764a4895f133639" }, "downloads": -1, "filename": "jmespath-terminal-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4a9075b2820e87cac2a0ff47341a959f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6295, "upload_time": "2015-10-05T23:21:08", "url": "https://files.pythonhosted.org/packages/eb/f8/517e5f01e657b0ba384e133e0e6c92c577c96c57b3029b9d29b6baa3662f/jmespath-terminal-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4a9075b2820e87cac2a0ff47341a959f", "sha256": "60c538e6c0244d2b58d7ff470839b9742a91b74d685a6cbf2764a4895f133639" }, "downloads": -1, "filename": "jmespath-terminal-0.2.1.tar.gz", "has_sig": false, "md5_digest": "4a9075b2820e87cac2a0ff47341a959f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6295, "upload_time": "2015-10-05T23:21:08", "url": "https://files.pythonhosted.org/packages/eb/f8/517e5f01e657b0ba384e133e0e6c92c577c96c57b3029b9d29b6baa3662f/jmespath-terminal-0.2.1.tar.gz" } ] }