{ "info": { "author": "Joaquin Casares", "author_email": "joaquin.casares AT gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# Overview\n\n`python-bashcomplete` takes:\n\n* Lists of strings and dictionaries, or\n* Nested dictionaries\n\nand compiles simple, yet functional bashcomplete code for any program that\ninvokes bashcomplete.BashComplete() with a list or dictionary.\n\n# Setup\n\n pip install python-bashcomplete\n\n# Example structures\n\nAutocompletes one level:\n\n test = ['level1a', 'level1b']\n\nAutocompletes two possibilities, both of which have sublevels:\n\n test = {\n 'level1a': ['1', '2', '3'],\n 'level1b': ['4', '5', '6']\n }\n\nAutocompletes three possibilities, only two of which have sublevels:\n\n test = [\n {\n 'level1a': ['1', '2', '3']\n },\n {\n 'level1b': ['4', '5', '6']\n },\n 'level1c'\n ]\n\nAutocompletes only one level. Final string values are ignored:\n\n test = {\n 'level1a':{'a'},\n 'level1b':{'b'}\n }\n\nAutocomplete with autogenerated words:\n\n test = {\n 'files': ['`ls -1`'],\n 'devices': ['`ls -1 /dev`']\n }\n\n# Generation\n\nAdd the following lines to your command-line program:\n\n import bashcomplete\n bashcomplete.BashComplete(test)\n\nwhere `test` is your data structure. This will generate\n`.bash_complete` in your current folder using the filename of the\nexecuting program.\n\nIf you wish to constrain the autocomplete words to only what has been defined,\nuse:\n\n bashcomplete.BashComplete(test, constrain=True)\n\nIf you wish to create a .bash_complete file with another name use:\n\n bashcomplete.BashComplete(test, filename='myprogram.py', output_filename='myprogram_py_cloudversion')\n\n# Usage\n\nUse the generated `.bash_complete` by adding:\n\n . /path/to/.bash_complete\n\nto your `.profile`. From this point on, any run of `` will use the\ngenerated bash completion.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/joaquincasares/python-bashcomplete/zipball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.github.com/joaquincasares/python-bashcomplete", "keywords": "python bashcomplete bash complete generation generate convert converter", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "python-bashcomplete", "package_url": "https://pypi.org/project/python-bashcomplete/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-bashcomplete/", "project_urls": { "Download": "https://github.com/joaquincasares/python-bashcomplete/zipball/master", "Homepage": "http://www.github.com/joaquincasares/python-bashcomplete" }, "release_url": "https://pypi.org/project/python-bashcomplete/1.2-0/", "requires_dist": null, "requires_python": null, "summary": "bashcomplete creation from python lists and dictionaries.", "version": "1.2-0" }, "last_serial": 797857, "releases": { "1.0-0": [ { "comment_text": "", "digests": { "md5": "d3eed79c0d2f6e20dd2dceb45904f53d", "sha256": "e0f717fba09b7254cff239c3e62561ef7dbec8f0446d4307eea30ec939939356" }, "downloads": -1, "filename": "python-bashcomplete-1.0-0.tar.gz", "has_sig": false, "md5_digest": "d3eed79c0d2f6e20dd2dceb45904f53d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3694, "upload_time": "2013-01-01T03:13:08", "url": "https://files.pythonhosted.org/packages/97/9d/08aaecb5d08e8d0dd32704c8490ce143aecd77a44d770e9aebf6fdca9162/python-bashcomplete-1.0-0.tar.gz" } ], "1.0-1": [ { "comment_text": "", "digests": { "md5": "1941d482d9aedf7efef18ce4de950051", "sha256": "be89984a0bc29afabf0f3aa6c4ee2bf3cd1fd4433adbbf6390db55ab20ec62d5" }, "downloads": -1, "filename": "python-bashcomplete-1.0-1.tar.gz", "has_sig": false, "md5_digest": "1941d482d9aedf7efef18ce4de950051", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3729, "upload_time": "2013-01-01T03:15:14", "url": "https://files.pythonhosted.org/packages/1e/51/8b998851c078d892d3967035291442bddd0caf2955f92a45b44b417b2259/python-bashcomplete-1.0-1.tar.gz" } ], "1.1-0": [ { "comment_text": "", "digests": { "md5": "7d2ea6e5e72021698eaa5d787fc285fd", "sha256": "469d89c788c7dad19e3a37488b3d02e119788e93759099d5fb0fb3f89f709419" }, "downloads": -1, "filename": "python-bashcomplete-1.1-0.tar.gz", "has_sig": false, "md5_digest": "7d2ea6e5e72021698eaa5d787fc285fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3732, "upload_time": "2013-01-02T22:32:16", "url": "https://files.pythonhosted.org/packages/0b/83/d5d6c23220c40d1fbf00feb6fbacb8b7284c674e888cda57b1ef0474c3e8/python-bashcomplete-1.1-0.tar.gz" } ], "1.2-0": [ { "comment_text": "", "digests": { "md5": "3c60ffcd9f81789bdee0674548d94d1b", "sha256": "b4e6350d4a2144b2f61e154b527af2d4e581a8eab305979e96dc09378c3a5dc2" }, "downloads": -1, "filename": "python-bashcomplete-1.2-0.tar.gz", "has_sig": false, "md5_digest": "3c60ffcd9f81789bdee0674548d94d1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3832, "upload_time": "2013-01-04T19:30:44", "url": "https://files.pythonhosted.org/packages/5d/59/b141a9f1e730291261b292c642b3c8919983010509a695178fb349d0b2bc/python-bashcomplete-1.2-0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3c60ffcd9f81789bdee0674548d94d1b", "sha256": "b4e6350d4a2144b2f61e154b527af2d4e581a8eab305979e96dc09378c3a5dc2" }, "downloads": -1, "filename": "python-bashcomplete-1.2-0.tar.gz", "has_sig": false, "md5_digest": "3c60ffcd9f81789bdee0674548d94d1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3832, "upload_time": "2013-01-04T19:30:44", "url": "https://files.pythonhosted.org/packages/5d/59/b141a9f1e730291261b292c642b3c8919983010509a695178fb349d0b2bc/python-bashcomplete-1.2-0.tar.gz" } ] }