{ "info": { "author": "Justin Shrake", "author_email": "justinshrake@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=====\nddg\n===== \n`Duck Duck Go`_ zero-click api for your command-line\n\nInstall\n=======\n::\n\n $ pip install ddg\n\nor from the source:\n::\n\n $ python setup.py install\n\nUsage\n======\n::\n\n ddg [-h] [-b] [-d] [-j] [-l] [-s] [-u] [query [query ...]]\n\nwww.duckduckgo.com zero-click api for your command-line\n\npositional arguments:\n query the search query\n\noptional arguments:\n -h, --help show this help message and exit\n -b, --bang open the !bang redirect url in a new browser tab\n -d, --define return the definition result\n -j, --json return the zero-click info api json response\n -l, --lucky open the result url in a new browser tab\n -s, --search launch a DuckDuckGo search in a new browser tab\n -u, --url return the result url\n\nExamples\n========= \nCall ddg from your command line to access the `Duck Duck Go Zero-Click Info API`_ ::\n \n $ddg red-black tree\n A red\u2013black tree is a type of self-balancing binary search tree, a data structure \n used in computer science, typically used to implement associative arrays.\n\nGet the url of the answer source ::\n\n $ ddg red-black tree -u\n https://en.wikipedia.org/wiki/Red-black_tree\n\nCombinining flags behaves as expected ::\n\n $ ddg schnauzer -d -u\n http://www.merriam-webster.com/dictionary/schnauzer\n\nLaunch a `!Bang redirect`_ in your web browser with the `-b` flag\n\nLaunch a query on `Wolfram Alpha`_ ::\n\n $ ddg wa integral of sin x / x from negative inf to inf -b\n\nLaunch a search on `Stack Overflow`_ ::\n\n $ ddg so [c++11] lambda return values -b\n\nLaunch a `search on Duck Duck Go`_ with `-s` ::\n\n $ ddg Lord of the Rings -s\n\nLaunch the `result url`_ directly with `-l` ::\n\n $ ddg python webbrowser -l\n\nddg plays nice with other utilities in your shell ::\n\n $ echo \"shark\" | ddg -dl\n\n::\n\n $ ddg welsh corgi -u | pbcopy\n\n:: \n \n $ ls | ddg -du\n\nUse `-j` to output the `json response`_ from the API :: \n\n $ ddg simpsons characters -j >> file.txt\n\n\nThanks\n=======\n| The duckduckgo module is a modification from http://github.com/crazedpsyc/python-duckduckgo. \n| Original duckduckgo module source from http://github.com/mikejs/python-duckduckgo (outdated) \n\n.. _Duck Duck Go: http://www.duckduckgo.com\n.. _Duck Duck Go Zero-Click Info API: http://api.duckduckgo.com/\n.. _!Bang redirect: http://duckduckgo.com/bang.html\n.. _Stack Overflow: http://stackoverflow.com/search?q=%5Bc%2B%2B11%5D%20lambda%20return%20values\n.. _Wolfram Alpha: http://www.wolframalpha.com/input/?i=integral%20of%20sin%20x%20%2F%20x%20from%20negative%20inf%20to%20inf\n.. _result url: http://docs.python.org/2/library/webbrowser.html\n.. _search on Duck Duck Go: https://duckduckgo.com/?q=Lord%20of%20the%20Rings\n.. _json response: http://api.duckduckgo.com/?q=simpsons+characters&format=json&pretty=1\n\nRelease history\n###############\n\n\n0.2.2 (2012-12-20)\n==================\n\n* Fixed the error handling for printing results with special characters\n\n0.2.1 (2012-12-18)\n==================\n\n* When an exception is raised in the duckduckgo module, report the error\n and then return None. This allows ddg.py to continue to the next query\n rather than performing a sys.exit(1).\n* Updated README\n* Fixed formatting in LICENSE file\n* Changed CHANGES to an rst file\n* Updated the setup.py file\n* Updated the help for all the input arguments\n\n0.2.0 (2012-12-17)\n==================\n\n* Changed the behavior of the -d flag. Rather than prefixing the query with \n `define`, now just prioritize the definition result when searching for an\n answer to the query.\n* Updated README with more examples.\n\n0.1.7 (2012-12-16)\n==================\n\n* Added a new trove classifier and made code more PEP8 compliant\n\n0.1.6 (2012-12-16)\n==================\n\n* Fixed an issue with the -b prefix, please upgrade to the latest version \n with pip install --upgrade ddg\n\n0.1.5 (2012-12-15)\n==================\n\n* Updated license to MIT\n\n0.1.4 (2012-12-15)\n==================\n\n* Using webbrowser rather than os dependent Popen commands\n\n0.1.1 (2012-12-15)\n==================\n\n* First working version, initial release", "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/justinls/ddg", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ddg", "package_url": "https://pypi.org/project/ddg/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ddg/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/justinls/ddg" }, "release_url": "https://pypi.org/project/ddg/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "DuckDuckGo zero-click api for your command-line", "version": "0.2.2" }, "last_serial": 788855, "releases": { "0.1.6": [ { "comment_text": "", "digests": { "md5": "bd10c74fd72f444225579d249aab5447", "sha256": "586f150713bea283edfb147314b4d3a198b9e64907a6ee284cc60580a311c021" }, "downloads": -1, "filename": "ddg-0.1.6.tar.gz", "has_sig": false, "md5_digest": "bd10c74fd72f444225579d249aab5447", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4049, "upload_time": "2012-12-16T19:18:43", "url": "https://files.pythonhosted.org/packages/dd/cb/1de334e847b14131c29bb98dd77f6d6c0af9837174ca3adafe16f9eee05e/ddg-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "976522b72c0a1d9bd77da34cf0d08a00", "sha256": "e82150f68d8740f147972402b8b5b5b07b884b5d6a64d8bdab4dd662fe956302" }, "downloads": -1, "filename": "ddg-0.1.7.tar.gz", "has_sig": false, "md5_digest": "976522b72c0a1d9bd77da34cf0d08a00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4474, "upload_time": "2012-12-16T23:50:05", "url": "https://files.pythonhosted.org/packages/00/c7/d0fecafd1a441a36641d3c56db169b63dfc007616a6956b3b20ace118895/ddg-0.1.7.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "39978489f27441c58b14009da8d376e2", "sha256": "904eeae5eaf25db07d9117f993b39fb747198a4b296761afae5cd15f2111ce79" }, "downloads": -1, "filename": "ddg-0.2.0.tar.gz", "has_sig": false, "md5_digest": "39978489f27441c58b14009da8d376e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4952, "upload_time": "2012-12-18T06:15:56", "url": "https://files.pythonhosted.org/packages/b2/64/acb1e1ac6b89e5c44dcba8bc415ca780bc3da8ecc37bfa28ce8f1dedede2/ddg-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "f5dfc2e9a3caa5c91702997e927c0a2c", "sha256": "ce4c48af4172f3ec77fd92363bff4be9161f191da26f3b9c3ff67ffd60dd3147" }, "downloads": -1, "filename": "ddg-0.2.1.tar.gz", "has_sig": false, "md5_digest": "f5dfc2e9a3caa5c91702997e927c0a2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6108, "upload_time": "2012-12-20T01:12:56", "url": "https://files.pythonhosted.org/packages/c8/65/d001fca3f994527bd07ca690d8601b70455146d5089a49d49a1f06e90e19/ddg-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "5203818bcec159ed7b30f7be76bdb9a1", "sha256": "db6e5983ebebb8217c602d8b65c425b6c00237583dfa2e49b841d2bcb0b34f15" }, "downloads": -1, "filename": "ddg-0.2.2.tar.gz", "has_sig": false, "md5_digest": "5203818bcec159ed7b30f7be76bdb9a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6188, "upload_time": "2012-12-21T14:34:23", "url": "https://files.pythonhosted.org/packages/dd/93/458f22ec0c7df0db07992cbdd1253a4aa7f634278354161565b193bd0c1a/ddg-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5203818bcec159ed7b30f7be76bdb9a1", "sha256": "db6e5983ebebb8217c602d8b65c425b6c00237583dfa2e49b841d2bcb0b34f15" }, "downloads": -1, "filename": "ddg-0.2.2.tar.gz", "has_sig": false, "md5_digest": "5203818bcec159ed7b30f7be76bdb9a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6188, "upload_time": "2012-12-21T14:34:23", "url": "https://files.pythonhosted.org/packages/dd/93/458f22ec0c7df0db07992cbdd1253a4aa7f634278354161565b193bd0c1a/ddg-0.2.2.tar.gz" } ] }