{ "info": { "author": "Jeff Hammel", "author_email": "k0scist@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "smartopen\n=========\n\nsmartopen is a command line program that will transform text according\nto handlers to URLs and open them\n\n\nUsage\n-----\n\n``smartopen --help`` displays the program usage:\n\n\"\"\"\nUsage: smartopen [options]\n\nOptions:\n -h, --help show this help message and exit\n -c CONFIG, --config=CONFIG\n config file to read\n -u, --url print the first url handled\n -a, --all print all handlers that match the query\n -H HANDLERS, --handler=HANDLERS\n name of the handler to use, in order\n --print-handlers print all handlers in order they would be tried\n\"\"\"\n\nsmartopen reads text from standard input or command line arguments.\nThe handlers are then iterated through in a configurable order and, if\nthe handler can transform the text into a URL, the URL is then\nprocessed. Unless otherwise specified by command line options\n(e.g. --url, --all), the first matching URL is then opened in firefox.\n\n\nHandlers\n--------\n\nsmartopen has a pluggable system of configurable handlers. The\nsetuptools entry point ``[smartopen.locations]`` is an extension point\nfor the handlers. Several handlers come with smartopen, or you can\nwrite your own.\n\nURL: a resolvable URL\nGoogle: a google search\nWikipedia: a Wikipedia article\nGoogleMaps: an address in google maps\n\netc.\n\n\nConfiguration\n-------------\n\nsmartopen uses a configuration file that defines the order of the\nhandlers and their behavior.\n\nA simple example is shown here:\nhttp://k0s.org/hg/smartopen/file/tip/smartopen.ini\n\n\nInterfacing With Your Environment\n---------------------------------\n\nWhile smartopen is useful of its own right, its utility may be\nenhanced by using as part of an environment. For instance, I run the\nfluxbox window manager which allows the use of hotkeys. By binding\nsmartopen to ``Ctrl+Alt+s`` and using ``xclip``, I can open a URL that is\nmappable to a smartopen handler with a keyboard shortcut. The\nrelevant line from my ``~/.fluxbox/keys`` file reads:\n\nControl Mod1 s :ExecCommand /home/jhammel/python/smartopen.py \"$(xclip -o)\" # smartopen\n\n\n----\n\n\nPosterity is gained...\n----------------------\n\nI mostly wrote smartopen to help me. That it has.\nHowever...a few things....\n\n- better way of setting up handlers?\n- really, i want to push down to choose what i think the handler is,\n but only should we I release the hand that Jesus becomes Magic\n (sorry, I hate the movie too)\n\n....and more?\n\nWas reading about catfish....e.g.\nhttp://www.addictivetips.com/ubuntu-linux-tips/catfish-file-searching-tool-for-ubuntu-linux/\n...\n\n\"\"\"\nfile search tool that support several different engines\n \nA file search tool using different backends which is configurable via\nthe command line.\n\nThis program acts as a frontend for different file search engines.\nThe interface is intentionally lightweight and simple. But it takes\nconfiguration options from the command line.\n\nCurrently find, locate, tracker, strigi, pinot, and beagle are\nsupported as backends\n\"\"\".\n\nShould smartopen....be a pluggable thing that takes text and finds\nboth *the handler* and *what to do with it*???\n\nI mean, short of it being a neural network anyway....", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://k0s.org/hg/smartopen", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "smartopen", "package_url": "https://pypi.org/project/smartopen/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/smartopen/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://k0s.org/hg/smartopen" }, "release_url": "https://pypi.org/project/smartopen/0.2/", "requires_dist": null, "requires_python": null, "summary": "open text in a browser contextually", "version": "0.2" }, "last_serial": 799727, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3a400d3bc058b43313043ec884c1fb75", "sha256": "326a75440aa9024a3d85243b7619ce66016238d98d60880731857cac2b1bd6b8" }, "downloads": -1, "filename": "smartopen-0.1-py2.5.egg", "has_sig": false, "md5_digest": "3a400d3bc058b43313043ec884c1fb75", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 11558, "upload_time": "2009-11-21T23:51:25", "url": "https://files.pythonhosted.org/packages/20/19/5584fda22249d02865ad36c02d3831601c8b4a4046616add15ce4e5b5855/smartopen-0.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "5c554fd0901da8a7f1fea4393226bb57", "sha256": "c331b09b767f2a9daf9fe243ff3e8b98bfa96efacdba2381fc989d830b995501" }, "downloads": -1, "filename": "smartopen-0.1.tar.gz", "has_sig": false, "md5_digest": "5c554fd0901da8a7f1fea4393226bb57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4368, "upload_time": "2009-11-21T23:51:24", "url": "https://files.pythonhosted.org/packages/da/8a/58a66d4f261612b1226325c52b44fccc4f37f1657b22539615feaeb006bf/smartopen-0.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ab591fb56b3d8ac95ee170471ebd80bc", "sha256": "1a09ea3f3cffb5a245ab65a119d41b1d2a440f94277e2ef0c7d386e6e9b848c3" }, "downloads": -1, "filename": "smartopen-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ab591fb56b3d8ac95ee170471ebd80bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5559, "upload_time": "2010-03-03T16:30:19", "url": "https://files.pythonhosted.org/packages/55/a4/6ac0355a53a3ac67646b9111b63bf57dcf32741fbbabc2291db761a7c2e8/smartopen-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "2a1653f703c87d5d744adfdb527ece79", "sha256": "dba044cea0787078bd9c81ae1223a81169de90d4ba9c18d7a03af56624a04fc6" }, "downloads": -1, "filename": "smartopen-0.1.3.tar.gz", "has_sig": false, "md5_digest": "2a1653f703c87d5d744adfdb527ece79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5648, "upload_time": "2010-03-10T20:49:56", "url": "https://files.pythonhosted.org/packages/58/18/9373e2713b51d3d1b4142c55b33522421ea1fcac503f05516fec582ff57a/smartopen-0.1.3.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "f17027b649c15bbbfc29fa448855c5a7", "sha256": "f6c2f3b97cb1665ceaef4553a9d0e7f2f27dd42844fe05c1777e9bac9e170cc7" }, "downloads": -1, "filename": "smartopen-0.1.5.tar.gz", "has_sig": false, "md5_digest": "f17027b649c15bbbfc29fa448855c5a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6003, "upload_time": "2010-12-23T02:23:03", "url": "https://files.pythonhosted.org/packages/e5/4c/382ff8f5126fbe4ceeb680cf01bc6bd5f0312bb24e46e2d731a294c13894/smartopen-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "24d6dbdeb8c338976d5535243d2e2993", "sha256": "dab7c4775428885df7b5468e358d435034f57eeb0671f75c42b0ecd40a281e6e" }, "downloads": -1, "filename": "smartopen-0.1.6.tar.gz", "has_sig": false, "md5_digest": "24d6dbdeb8c338976d5535243d2e2993", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6004, "upload_time": "2010-12-27T20:48:30", "url": "https://files.pythonhosted.org/packages/33/7f/0039814ff905e6d5ce0de553ced437ddb4ab5effbd06651cf97ff0f0ce2b/smartopen-0.1.6.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4d603ab70a8464f09c7a621cef20deff", "sha256": "f819c29f2bdcc8fa964dcb30fb035f05fab3223f11b8099cebd21fcca26a92cf" }, "downloads": -1, "filename": "smartopen-0.2.tar.gz", "has_sig": false, "md5_digest": "4d603ab70a8464f09c7a621cef20deff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9223, "upload_time": "2013-05-01T15:07:05", "url": "https://files.pythonhosted.org/packages/f1/11/fd340454f31d55e111c11d8f1c758bac9c9608cac39decd3bf6cde3c7cd9/smartopen-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4d603ab70a8464f09c7a621cef20deff", "sha256": "f819c29f2bdcc8fa964dcb30fb035f05fab3223f11b8099cebd21fcca26a92cf" }, "downloads": -1, "filename": "smartopen-0.2.tar.gz", "has_sig": false, "md5_digest": "4d603ab70a8464f09c7a621cef20deff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9223, "upload_time": "2013-05-01T15:07:05", "url": "https://files.pythonhosted.org/packages/f1/11/fd340454f31d55e111c11d8f1c758bac9c9608cac39decd3bf6cde3c7cd9/smartopen-0.2.tar.gz" } ] }