cliquery


Namecliquery JSON
Version 1.10.0 PyPI version JSON
download
home_pagehttps://github.com/huntrar/cliquery
Summarya command-line browser interface
upload_time2021-03-24 05:59:29
maintainerHunter Hammond
docs_urlNone
authorHunter Hammond
requires_python
licenseMIT
keywords cliquery command line console help answer google bing search feeling lucky wolfram alpha knowledge engine scientific computation internet browser interface bookmark pyteaser preview
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            cliquery |PyPI Version| |Total Downloads|
=========================================

a command-line browser interface
--------------------------------

cliquery cuts down on clicking through command-line web searching, page
previewing, and page bookmarking, among other features. An interactive
prompt allows users to easily make successive queries and enter program
flags dynamically; simply typing help will list all possible flags to
enter. Opening a link will invoke a browser supplied by the user or
detected automatically across Windows, OSX, and Linux platforms.

Installation
------------

::

    pip install cliquery --user

or

::

    pip install git+https://github.com/huntrar/cliquery.git#egg=cliquery --user

or

::

    git clone https://github.com/huntrar/cliquery
    cd cliquery
    python setup.py install --user

If you encounter issues installing lxml, see
`here <http://lxml.de/installation.html>`__.

It is advised to copy the blank .cliqrc into .local.cliqrc, as .cliqrc
will be emptied after a program update. To do this, enter the following:

::

    cd "$(dirname "$(cliquery -c)")" && cp .cliqrc .local.cliqrc



Recommended (optional) setup
----------------------------

Configuration setup is completely optional but will improve your experience.
This includes integrating Google Custom Search, WolframAlpha, and/or selection of browser choice.


The browser invoked is selected implicitly by the webbrowser module.
To explicitly choose your browser, set the name in .local.cliqrc
under 'browser' or set the BROWSER environment variable on your system.

For best results, sign up for a `Google Custom Search API key <https://code.google.com/apis/console>`__
This defaults search to Google, otherwise results will come from Bing.

The instructions are as follows:
Upon signing into Google, click on API Manager, then Credentials, and
create an API key. Enter this under the 'google\_api\_key' field in
.cliqrc.

Next, `create a custom search engine <https://cse.google.com/all>`__.
You must choose at least one site to search during creation (I chose
stackoverflow.com), but to search the entire web you must click on this
new search engine, go to Setup, then Basics, and select 'Search the
entire web but emphasize included sites.' Then you may choose to keep or
delete the site you originally provided.

After creating a custom search engine, click on the engine, go to Setup,
and under Details click Search engine ID. Enter this under the
'google\_engine\_key' field.

For WolframAlpha usage, sign up for a `WolframAlpha API key <https://developer.wolframalpha.com/portal/apisignup.html>`__
Enter your key under the 'wolfram\_api\_key' field.

Users may also import Firefox or Chrome bookmarks into .cliqrc by
exporting the bookmarks to HTML and importing to cliquery with the -i
flag. The imported bookmarks will be added to your existing bookmarks,
which may result in duplicates.

Usage
-----

::

    usage: cliquery.py [-h] [-b] [-c] [-C] [-d] [-e] [-f] [-i [IMPORT]] [-o] [-p]
                       [-s] [-v] [-w]
                       [QUERY [QUERY ...]]

    a command-line browser interface

    positional arguments:
      QUERY                 keywords to search

    optional arguments:
      -h, --help            show this help message and exit
      -b, --bookmark        view and modify bookmarks
      -c, --config          print config file location
      -C, --clear-cache     clear the cache
      -d, --describe        summarize links
      -e, --edit            edit config file
      -f, --first           open first link
      -i [IMPORT], --import [IMPORT]
                            import bookmarks from file
      -o, --open            directly open links
      -p, --print           print links to stdout
      -s, --search          search for links
      -v, --version         display current version
      -w, --wolfram         search WolframAlpha

Author
------

-  Hunter Hammond (huntrar@gmail.com)

Notes
-----

-  NOTE: If you receive the following message (or similar) when trying
   to modify bookmarks:

   ::

       IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/cliquery/.cliqrc'

   This means you did not follow the install advice and chose to install as root. You have three options:

   ::

       1. (recommended) Uninstall and reinstall as a non-root user by following the instructions above.
       2. Change the configuration file ownership from root to user by entering the following:

               sudo chown $USER "$(cliquery -c)" 

       2. (not recommended) Execute cliquery as root, using su or sudo.

-  A search may return immediate results, such as calculations or facts
   made possible by WolframAlpha, or instead a page of Google search
   results comprised of links and their descriptions.
-  Interactive usage allows the user to continue making new queries by
   dynamically executing new program flags and/or queries. Entering h or
   help will list all possible prompt commands.

   ::

       + + + + + + + + + + + + + + + + + + + + + + + + + + + +
       1. Guido van Rossum - Official Site
       2. Images of python guido   
       3. Guido van Rossum - Wikipedia, the free encyclopedia
       4. Guido van Rossum (@gvanrossum) | Twitter
       5. Guido van Rossum Wants to Bring Type Annotations to Python
       6. The Python Tutorial — Python 2.7.10 documentation
       7. Python (programming language) - Wikipedia, the free ...
       8. Van Rossum: Python is not too slow | InfoWorld
       + + + + + + + + + + + + + + + + + + + + + + + + + + + +
       : d 1

       Guido's Personal Home Page     Guido van Rossum - Personal Home Page  "Gawky and proud of it."
       Dutch spelling rules dictate that when used in combination with myfirst name, "van" is not capitalized: "Guido van Rossum".
       But when mylast name is used alone to refer to me, it is capitalized, forexample: "As usual, Van Rossum was right."
       More Hyperlinks   Here's a collection of  essays  relating to Pythonthat I've written, including the foreword I wrote for Mark Lutz' book"Programming Python".
       The Audio File Formats FAQ  I was the original creator and maintainer of the Audio File FormatsFAQ.  It is now maintained by Chris Bagwellat  http://www.cnpbagwell.com/audio-faq .
       [Press Enter to continue..]

-  To choose multiple links at once, a range may be specified by
   separating the start and end range with a dash. Leaving one end of
   the range blank will choose all links until the other end of that
   range. For example, given 10 links, entering 5- would effectively be
   the same as entering 5-10.
-  Requests cache is enabled by default to cache webpages, it can be
   disabled by setting the environment variable CLIQ\_DISABLE\_CACHE.
-  Using the bookmark flag with no arguments will list all current
   bookmarks in .cliqrc, naturally ordered by time of entry. Entering
   help with the flag will list all possible commands including open,
   add, remove, tag/untag (for aliasing), describe, and move. Bookmarks
   like other flags may be entered during runtime in the link prompt.
-  Additional arguments may be appended to bookmarks while opening them.
   These are interpreted as any non-integer arguments which are not
   found in any bookmarks (URLs or tags).

.. |PyPI Version| image:: https://img.shields.io/pypi/v/cliquery.svg
   :target: https://pypi.python.org/pypi/cliquery
.. |Total Downloads| image:: https://pepy.tech/badge/cliquery
   :target: https://pepy.tech/project/cliquery



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/huntrar/cliquery",
    "name": "cliquery",
    "maintainer": "Hunter Hammond",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "huntrar@gmail.com",
    "keywords": "cliquery command line console help answer google bing search feeling lucky wolfram alpha knowledge engine scientific computation internet browser interface bookmark pyteaser preview",
    "author": "Hunter Hammond",
    "author_email": "huntrar@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d1/f1/e3033f0a0ef568a908da80cbc1e2dba1ecf6bd88767e59e96885d074a551/cliquery-1.10.0.tar.gz",
    "platform": "",
    "description": "cliquery |PyPI Version| |Total Downloads|\n=========================================\n\na command-line browser interface\n--------------------------------\n\ncliquery cuts down on clicking through command-line web searching, page\npreviewing, and page bookmarking, among other features. An interactive\nprompt allows users to easily make successive queries and enter program\nflags dynamically; simply typing help will list all possible flags to\nenter. Opening a link will invoke a browser supplied by the user or\ndetected automatically across Windows, OSX, and Linux platforms.\n\nInstallation\n------------\n\n::\n\n    pip install cliquery --user\n\nor\n\n::\n\n    pip install git+https://github.com/huntrar/cliquery.git#egg=cliquery --user\n\nor\n\n::\n\n    git clone https://github.com/huntrar/cliquery\n    cd cliquery\n    python setup.py install --user\n\nIf you encounter issues installing lxml, see\n`here <http://lxml.de/installation.html>`__.\n\nIt is advised to copy the blank .cliqrc into .local.cliqrc, as .cliqrc\nwill be emptied after a program update. To do this, enter the following:\n\n::\n\n    cd \"$(dirname \"$(cliquery -c)\")\" && cp .cliqrc .local.cliqrc\n\n\n\nRecommended (optional) setup\n----------------------------\n\nConfiguration setup is completely optional but will improve your experience.\nThis includes integrating Google Custom Search, WolframAlpha, and/or selection of browser choice.\n\n\nThe browser invoked is selected implicitly by the webbrowser module.\nTo explicitly choose your browser, set the name in .local.cliqrc\nunder 'browser' or set the BROWSER environment variable on your system.\n\nFor best results, sign up for a `Google Custom Search API key <https://code.google.com/apis/console>`__\nThis defaults search to Google, otherwise results will come from Bing.\n\nThe instructions are as follows:\nUpon signing into Google, click on API Manager, then Credentials, and\ncreate an API key. Enter this under the 'google\\_api\\_key' field in\n.cliqrc.\n\nNext, `create a custom search engine <https://cse.google.com/all>`__.\nYou must choose at least one site to search during creation (I chose\nstackoverflow.com), but to search the entire web you must click on this\nnew search engine, go to Setup, then Basics, and select 'Search the\nentire web but emphasize included sites.' Then you may choose to keep or\ndelete the site you originally provided.\n\nAfter creating a custom search engine, click on the engine, go to Setup,\nand under Details click Search engine ID. Enter this under the\n'google\\_engine\\_key' field.\n\nFor WolframAlpha usage, sign up for a `WolframAlpha API key <https://developer.wolframalpha.com/portal/apisignup.html>`__\nEnter your key under the 'wolfram\\_api\\_key' field.\n\nUsers may also import Firefox or Chrome bookmarks into .cliqrc by\nexporting the bookmarks to HTML and importing to cliquery with the -i\nflag. The imported bookmarks will be added to your existing bookmarks,\nwhich may result in duplicates.\n\nUsage\n-----\n\n::\n\n    usage: cliquery.py [-h] [-b] [-c] [-C] [-d] [-e] [-f] [-i [IMPORT]] [-o] [-p]\n                       [-s] [-v] [-w]\n                       [QUERY [QUERY ...]]\n\n    a command-line browser interface\n\n    positional arguments:\n      QUERY                 keywords to search\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -b, --bookmark        view and modify bookmarks\n      -c, --config          print config file location\n      -C, --clear-cache     clear the cache\n      -d, --describe        summarize links\n      -e, --edit            edit config file\n      -f, --first           open first link\n      -i [IMPORT], --import [IMPORT]\n                            import bookmarks from file\n      -o, --open            directly open links\n      -p, --print           print links to stdout\n      -s, --search          search for links\n      -v, --version         display current version\n      -w, --wolfram         search WolframAlpha\n\nAuthor\n------\n\n-  Hunter Hammond (huntrar@gmail.com)\n\nNotes\n-----\n\n-  NOTE: If you receive the following message (or similar) when trying\n   to modify bookmarks:\n\n   ::\n\n       IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/cliquery/.cliqrc'\n\n   This means you did not follow the install advice and chose to install as root. You have three options:\n\n   ::\n\n       1. (recommended) Uninstall and reinstall as a non-root user by following the instructions above.\n       2. Change the configuration file ownership from root to user by entering the following:\n\n               sudo chown $USER \"$(cliquery -c)\" \n\n       2. (not recommended) Execute cliquery as root, using su or sudo.\n\n-  A search may return immediate results, such as calculations or facts\n   made possible by WolframAlpha, or instead a page of Google search\n   results comprised of links and their descriptions.\n-  Interactive usage allows the user to continue making new queries by\n   dynamically executing new program flags and/or queries. Entering h or\n   help will list all possible prompt commands.\n\n   ::\n\n       + + + + + + + + + + + + + + + + + + + + + + + + + + + +\n       1. Guido van Rossum - Official Site\n       2. Images of python guido   \n       3. Guido van Rossum - Wikipedia, the free encyclopedia\n       4. Guido van Rossum (@gvanrossum) | Twitter\n       5. Guido van Rossum Wants to Bring Type Annotations to Python\n       6. The Python Tutorial \u2014 Python 2.7.10 documentation\n       7. Python (programming language) - Wikipedia, the free ...\n       8. Van Rossum: Python is not too slow | InfoWorld\n       + + + + + + + + + + + + + + + + + + + + + + + + + + + +\n       : d 1\n\n       Guido's Personal Home Page     Guido van Rossum - Personal Home Page  \"Gawky and proud of it.\"\n       Dutch spelling rules dictate that when used in combination with myfirst name, \"van\" is not capitalized: \"Guido van Rossum\".\n       But when mylast name is used alone to refer to me, it is capitalized, forexample: \"As usual, Van Rossum was right.\"\n       More Hyperlinks   Here's a collection of  essays  relating to Pythonthat I've written, including the foreword I wrote for Mark Lutz' book\"Programming Python\".\n       The Audio File Formats FAQ  I was the original creator and maintainer of the Audio File FormatsFAQ.  It is now maintained by Chris Bagwellat  http://www.cnpbagwell.com/audio-faq .\n       [Press Enter to continue..]\n\n-  To choose multiple links at once, a range may be specified by\n   separating the start and end range with a dash. Leaving one end of\n   the range blank will choose all links until the other end of that\n   range. For example, given 10 links, entering 5- would effectively be\n   the same as entering 5-10.\n-  Requests cache is enabled by default to cache webpages, it can be\n   disabled by setting the environment variable CLIQ\\_DISABLE\\_CACHE.\n-  Using the bookmark flag with no arguments will list all current\n   bookmarks in .cliqrc, naturally ordered by time of entry. Entering\n   help with the flag will list all possible commands including open,\n   add, remove, tag/untag (for aliasing), describe, and move. Bookmarks\n   like other flags may be entered during runtime in the link prompt.\n-  Additional arguments may be appended to bookmarks while opening them.\n   These are interpreted as any non-integer arguments which are not\n   found in any bookmarks (URLs or tags).\n\n.. |PyPI Version| image:: https://img.shields.io/pypi/v/cliquery.svg\n   :target: https://pypi.python.org/pypi/cliquery\n.. |Total Downloads| image:: https://pepy.tech/badge/cliquery\n   :target: https://pepy.tech/project/cliquery\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "a command-line browser interface",
    "version": "1.10.0",
    "split_keywords": [
        "cliquery",
        "command",
        "line",
        "console",
        "help",
        "answer",
        "google",
        "bing",
        "search",
        "feeling",
        "lucky",
        "wolfram",
        "alpha",
        "knowledge",
        "engine",
        "scientific",
        "computation",
        "internet",
        "browser",
        "interface",
        "bookmark",
        "pyteaser",
        "preview"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "0eb6e733d88487ec8098b5c3ba9791e1",
                "sha256": "095d85df66ad034ce62af9de4c562c013f2888ee523eceda9669120e5bca0e91"
            },
            "downloads": -1,
            "filename": "cliquery-1.10.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0eb6e733d88487ec8098b5c3ba9791e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 25143,
            "upload_time": "2021-03-24T05:59:27",
            "upload_time_iso_8601": "2021-03-24T05:59:27.330784Z",
            "url": "https://files.pythonhosted.org/packages/de/91/b9832dd8dbaacd9ef614a7e17a7f5c06fc9fd9c8a890582dc0900e1c46ce/cliquery-1.10.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "bd7f85f14c71bff0380b446d828d475f",
                "sha256": "c5f05fd79c2852db264eea4e287b71c01717a81630754b70ec33657a95ccc5ae"
            },
            "downloads": -1,
            "filename": "cliquery-1.10.0.tar.gz",
            "has_sig": false,
            "md5_digest": "bd7f85f14c71bff0380b446d828d475f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 31444,
            "upload_time": "2021-03-24T05:59:29",
            "upload_time_iso_8601": "2021-03-24T05:59:29.837598Z",
            "url": "https://files.pythonhosted.org/packages/d1/f1/e3033f0a0ef568a908da80cbc1e2dba1ecf6bd88767e59e96885d074a551/cliquery-1.10.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-03-24 05:59:29",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "huntrar",
    "error": "Could not fetch GitHub repository",
    "lcname": "cliquery"
}
        
Elapsed time: 0.22137s