{ "info": { "author": "Kotfu", "author_email": "kotfu@kotfu.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# cmd2-abbrev\n\n## Description\n\nPlugin for cmd2 to support previously deprecated abbreviation behavior.\n\nAdds a setting `abbrev` which allows users to control whether commands\ncan be abbreviated. If an application has a `speak` command:\n```\n(Cmd) speak hello\nhello\n```\nthen any unique prefix of any command will run the command:\n```\n(Cmd) set abbrev True\nabbrev - was: False\nnow: True\n(Cmd) sp hello\nhello\n```\n\nNon-unique abbreviations generate a syntax error:\n```\n(Cmd) s hello\n*** Unknown syntax: s hello\n(Cmd) help\n\nDocumented commands (type help ):\n========================================\nalias help load pyscript set shortcuts unalias\nedit history py quit shell speak\n```\n\n## Installation\n\nSystem requirements: works anywhere `cmd2` works. Requires `cmd2` version 0.9.4\nor higher.\n\nInstall using pip:\n```\n$ pip install cmd2-abbrev\n```\n\nAdd to your `cmd2` application by mixing in the `AbbrevMixin` class:\n```python\nimport cmd2\nimport cmd2_abbrev\n\nclass AbbrevExample(cmd2_abbrev.AbbrevMixin, cmd2.Cmd):\n \"\"\"A cmd2 program to demonstrate the use of the cmd2_abbrev plugin\"\"\"\n def __init__(self, *args, **kwargs):\n super().__init__(*args, **kwargs)\n```\n\nYou must mix in `AbbrevMixin` before `cmd2.Cmd` or it won't work properly.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/python-cmd2/cmd2-abbrev", "keywords": "cmd2 plugin abbrev", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "cmd2-abbrev", "package_url": "https://pypi.org/project/cmd2-abbrev/", "platform": "", "project_url": "https://pypi.org/project/cmd2-abbrev/", "project_urls": { "Homepage": "https://github.com/python-cmd2/cmd2-abbrev" }, "release_url": "https://pypi.org/project/cmd2-abbrev/1.0.1/", "requires_dist": [ "cmd2 (<=2,>=0.9.4)", "setuptools-scm; extra == 'dev'", "pytest; extra == 'dev'", "codecov; extra == 'dev'", "pytest-cov; extra == 'dev'", "pylint; extra == 'dev'", "invoke; extra == 'dev'", "wheel; extra == 'dev'", "twine; extra == 'dev'" ], "requires_python": ">=3.4", "summary": "Plugin to add command abbreviation support to cmd2", "version": "1.0.1" }, "last_serial": 4397915, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "35f63d9124aa046e58e7325e10551a57", "sha256": "552f26b2a62d39eaaebb6ca64b6eff1f31a90b5203d21e771ecb7c5872d7872c" }, "downloads": -1, "filename": "cmd2_abbrev-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "35f63d9124aa046e58e7325e10551a57", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 3170, "upload_time": "2018-07-22T22:34:48", "url": "https://files.pythonhosted.org/packages/15/63/fb27fb08d86a82b4cd83de65d3abf95a81ff700185ef4cbe29e9a9dae305/cmd2_abbrev-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b919e0e548d2ac613036989f45afaebb", "sha256": "4309380cef4f25835ae66c2283d92c2e45ea3ee73b55a245ea386fe34ba933d2" }, "downloads": -1, "filename": "cmd2-abbrev-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b919e0e548d2ac613036989f45afaebb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 9563, "upload_time": "2018-07-22T22:34:49", "url": "https://files.pythonhosted.org/packages/6a/63/6b5b489cfc9763a7df2667fcd21e8956dc6b312934256fb123869913f331/cmd2-abbrev-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "35f63d9124aa046e58e7325e10551a57", "sha256": "552f26b2a62d39eaaebb6ca64b6eff1f31a90b5203d21e771ecb7c5872d7872c" }, "downloads": -1, "filename": "cmd2_abbrev-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "35f63d9124aa046e58e7325e10551a57", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 3170, "upload_time": "2018-07-22T22:34:48", "url": "https://files.pythonhosted.org/packages/15/63/fb27fb08d86a82b4cd83de65d3abf95a81ff700185ef4cbe29e9a9dae305/cmd2_abbrev-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b919e0e548d2ac613036989f45afaebb", "sha256": "4309380cef4f25835ae66c2283d92c2e45ea3ee73b55a245ea386fe34ba933d2" }, "downloads": -1, "filename": "cmd2-abbrev-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b919e0e548d2ac613036989f45afaebb", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 9563, "upload_time": "2018-07-22T22:34:49", "url": "https://files.pythonhosted.org/packages/6a/63/6b5b489cfc9763a7df2667fcd21e8956dc6b312934256fb123869913f331/cmd2-abbrev-1.0.1.tar.gz" } ] }