{ "info": { "author": "The xonsh developers", "author_email": "xonsh@googlegroups.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved", "Programming Language :: Python", "Topic :: Utilities" ], "description": "==================\npy-bash-completion\n==================\nA package that provides python interface for bash completion\n\nUsage example\n*************\nIn the simplest case, we can just complete from the end of the line using, ``bash_complete_line()``:\n\n.. code-block:: python\n\n from bash_completion import bash_complete_line\n\n In [1]: bash_complete_line('git s', return_line=True)\n Out[1]:\n {'git shortlog',\n 'git show',\n 'git show-branch',\n 'git stage',\n 'git stash',\n 'git status',\n 'git submodule',\n 'git subtree'}\n\n\nHowever, there is also a lower-level API that more closely matches the actual Bash completion\ninterface, for those who need it!\n\n.. code-block:: python\n\n from bash_completion import bash_completions\n\n def get_completions(line):\n split = line.split()\n if len(split) > 1 and not line.endswith(' '):\n prefix = split[-1]\n begidx = len(line.rsplit(prefix)[0])\n else:\n prefix = ''\n begidx = len(line)\n\n endidx = len(line)\n return bash_completions(prefix, line, begidx, endidx)\n\n In [1]: get_completions('git s')\n Out[1]:\n ({'shortlog',\n 'show',\n 'show-branch',\n 'stage',\n 'stash',\n 'status',\n 'submodule',\n 'subtree'},\n 1)\n\n\nYou may also use this as a simple command line utility:\n\n.. code-block:: sh\n\n $ python -m bash_completion \"ls --s\"\n ls --show-control-chars\n ls --si\n ls --size\n ls --sort\n ls --sort=\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/xonsh/py-bash-completion/zipball/0.2.6", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/xonsh/py-bash-completion", "keywords": "", "license": "BSD 3-clause", "maintainer": "", "maintainer_email": "", "name": "bash_completion", "package_url": "https://pypi.org/project/bash_completion/", "platform": "", "project_url": "https://pypi.org/project/bash_completion/", "project_urls": { "Download": "https://github.com/xonsh/py-bash-completion/zipball/0.2.6", "Homepage": "https://github.com/xonsh/py-bash-completion" }, "release_url": "https://pypi.org/project/bash_completion/0.2.6/", "requires_dist": null, "requires_python": "", "summary": "Python interface for bash completion", "version": "0.2.6" }, "last_serial": 5422198, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "400cb73052e9cf365dbbc1b0820045ad", "sha256": "cb89dcfcccf9f9283538698a7c67b8cdc1256052ea98c3f3246f3ab6879ee664" }, "downloads": -1, "filename": "bash_completion-0.1.0.tar.gz", "has_sig": false, "md5_digest": "400cb73052e9cf365dbbc1b0820045ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7095, "upload_time": "2018-04-17T00:23:32", "url": "https://files.pythonhosted.org/packages/5b/d0/d133ff8201479ac39aeb25999ce0875c59dc5f4cb732c98eab31fd826a31/bash_completion-0.1.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "908591ee1de8269cf98e995c667f68b7", "sha256": "55ddaab064e178618a2206edf4b9e8ed42e19e370f0e8157cb6668db6a8eb826" }, "downloads": -1, "filename": "bash_completion-0.2.1.tar.gz", "has_sig": false, "md5_digest": "908591ee1de8269cf98e995c667f68b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7091, "upload_time": "2018-04-17T00:27:48", "url": "https://files.pythonhosted.org/packages/69/be/30f5c41e73a5ceb1f9a0a8f342058b6117ad93000e97bd242e65c9b5c61e/bash_completion-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "e4dbdf52f20e8d2a58de0a199af7f55a", "sha256": "73abf96a40b742cc08b728c2f53124608f07bfada23f010a262cd2b32adaaa22" }, "downloads": -1, "filename": "bash_completion-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e4dbdf52f20e8d2a58de0a199af7f55a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7143, "upload_time": "2018-05-06T23:50:05", "url": "https://files.pythonhosted.org/packages/62/81/c610ca2e73e695f787d9326bd78cf17153dd127d18f5860c2207e775097d/bash_completion-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "64bc099ebda0138ac63fbc85aca78e5f", "sha256": "5f60efb02b51fb9a1fb45902130bd3508a1e9f82c535cbb7f0ae1986ef6108e0" }, "downloads": -1, "filename": "bash_completion-0.2.3.tar.gz", "has_sig": false, "md5_digest": "64bc099ebda0138ac63fbc85aca78e5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7165, "upload_time": "2018-07-05T14:03:38", "url": "https://files.pythonhosted.org/packages/39/3e/2a9de6a10fe2220bdecdc3a9acfa75641552ff38cba8e26993457dceb232/bash_completion-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "bb17cb31e72542e928be66fc8abd69d8", "sha256": "e87456ff115102dd272faaf1137605b7e73646a793d8f9779eaa2d0b4ffae37d" }, "downloads": -1, "filename": "bash_completion-0.2.4.tar.gz", "has_sig": false, "md5_digest": "bb17cb31e72542e928be66fc8abd69d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7169, "upload_time": "2018-09-17T15:34:14", "url": "https://files.pythonhosted.org/packages/f8/d7/14f3e9d0974f8ed1e8f6ea721a1ea4eab425bb3d0a7d738c99bad99f5cb0/bash_completion-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "4485d2a3fff69c55aca3a576296708a4", "sha256": "72e527a87e515ef9a0d546ffb2c11d99e5164add348c8b8cd874b3883c86df6c" }, "downloads": -1, "filename": "bash_completion-0.2.5.tar.gz", "has_sig": false, "md5_digest": "4485d2a3fff69c55aca3a576296708a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7171, "upload_time": "2018-10-01T22:37:47", "url": "https://files.pythonhosted.org/packages/4f/bd/1cb8852cf424bb2933988184ee14d17f39cfc7b1890bfcee82f1e1fee5e1/bash_completion-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "d09491060120cc4612a27b445bd4775d", "sha256": "a25802fa92177a317a56a0787a583c31c910c3660a7e40d2d85e19c5512e511b" }, "downloads": -1, "filename": "bash_completion-0.2.6.tar.gz", "has_sig": false, "md5_digest": "d09491060120cc4612a27b445bd4775d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7314, "upload_time": "2019-06-19T18:55:13", "url": "https://files.pythonhosted.org/packages/a9/ef/315b910715bb6594be1ae155232ef4bf7e26b89df9bfc0bccdeb4ab72bac/bash_completion-0.2.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d09491060120cc4612a27b445bd4775d", "sha256": "a25802fa92177a317a56a0787a583c31c910c3660a7e40d2d85e19c5512e511b" }, "downloads": -1, "filename": "bash_completion-0.2.6.tar.gz", "has_sig": false, "md5_digest": "d09491060120cc4612a27b445bd4775d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7314, "upload_time": "2019-06-19T18:55:13", "url": "https://files.pythonhosted.org/packages/a9/ef/315b910715bb6594be1ae155232ef4bf7e26b89df9bfc0bccdeb4ab72bac/bash_completion-0.2.6.tar.gz" } ] }