{ "info": { "author": "Michele Lacchia", "author_email": "michelelacchia@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "mando: CLI interfaces for Humans!\n=================================\n\n.. image:: https://img.shields.io/travis/rubik/mando/master.svg\n :alt: Travis-CI badge\n :target: https://travis-ci.org/rubik/mando\n\n.. image:: https://img.shields.io/coveralls/rubik/mando/master.svg\n :alt: Coveralls badge\n :target: https://coveralls.io/r/rubik/mando\n\n.. image:: https://img.shields.io/pypi/v/mando.svg\n :alt: Latest release\n :target: https://pypi.python.org/pypi/mando\n\n.. image:: https://img.shields.io/pypi/dm/mando.svg\n :alt: PyPI downloads count\n :target: https://pypi.python.org/pypi/mando\n\n.. image:: https://img.shields.io/pypi/format/mando.svg\n :alt: Download format\n :target: http://pythonwheels.com/\n\n.. image:: https://img.shields.io/pypi/l/mando.svg\n :alt: Mando license\n :target: https://pypi.python.org/pypi/mando/\n\nmando is a wrapper around ``argparse``, and allows you to write complete CLI\napplications in seconds while maintaining all the flexibility.\n\nInstallation\n------------\n\nMando is tested across all Python versions from **Python 2.6** to **Python\n3.6** and also on **Pypy**. You can install it with Pip::\n\n $ pip install mando\n\nThe problem\n-----------\n\nWhile ``argparse`` is great for simple command line applications with only\none, default command, when you have to add multiple commands and manage them\nthings get really messy and long. But don't worry, mando comes to help!\n\nQuickstart\n----------\n\n.. code-block:: python\n\n from mando import command, main\n\n @command\n def echo(text, capitalize=False):\n if capitalize:\n text = text.upper()\n print(text)\n\n if __name__ == '__main__':\n main()\n\nGenerated help:\n\n.. code-block:: console\n\n $ python example.py -h\n usage: example.py [-h] {echo} ...\n\n positional arguments:\n {echo}\n echo Echo the given text.\n\n optional arguments:\n -h, --help show this help message and exit\n\n $ python example.py echo -h\n usage: example.py echo [-h] [--capitalize] text\n\n Echo the given text.\n\n positional arguments:\n text\n\n optional arguments:\n -h, --help show this help message and exit\n --capitalize\n\nActual usage:\n\n.. code-block:: console\n\n $ python example.py echo spam\n spam\n $ python example.py echo --capitalize spam\n SPAM\n\n\nA *real* example\n----------------\n\nSomething more complex and real-world-*ish*. The code:\n\n.. code-block:: python\n\n from mando import command, main\n\n\n @command\n def push(repository, all=False, dry_run=False, force=False, thin=False):\n '''Update remote refs along with associated objects.\n\n :param repository: Repository to push to.\n :param --all: Push all refs.\n :param -n, --dry-run: Dry run.\n :param -f, --force: Force updates.\n :param --thin: Use thin pack.'''\n\n print ('Pushing to {0}. All: {1}, dry run: {2}, force: {3}, thin: {4}'\n .format(repository, all, dry_run, force, thin))\n\n\n if __name__ == '__main__':\n main()\n\nmando understands Sphinx-style ``:param:``'s in the docstring, so it creates\nshort options and their help for you.\n\n.. code-block:: console\n\n $ python git.py push -h\n usage: git.py push [-h] [--all] [-n] [-f] [--thin] repository\n\n Update remote refs along with associated objects.\n\n positional arguments:\n repository Repository to push to.\n\n optional arguments:\n -h, --help show this help message and exit\n --all Push all refs.\n -n, --dry-run Dry run.\n -f, --force Force updates.\n --thin Use thin pack.\n\nLet's try it!\n\n.. code-block:: console\n\n $ python git.py push --all myrepo\n Pushing to myrepo. All: True, dry run: False, force: False, thin: False\n $ python git.py push --all -f myrepo\n Pushing to myrepo. All: True, dry run: False, force: True, thin: False\n $ python git.py push --all -fn myrepo\n Pushing to myrepo. All: True, dry run: True, force: True, thin: False\n $ python git.py push --thin -fn myrepo\n Pushing to myrepo. All: False, dry run: True, force: True, thin: True\n $ python git.py push --thin\n usage: git.py push [-h] [--all] [-n] [-f] [--thin] repository\n git.py push: error: too few arguments\n\nAmazed uh? Yes, mando got the short options and the help from the docstring!\nYou can put much more in the docstring, and if that isn't enough, there's an\n``@arg`` decorator to customize the arguments that get passed to argparse.\n\nMando has lots of other options. For example, it supports different docstring\nstyes (Sphinx, Google and NumPy), supports shell autocompletion via the\n``argcomplete`` package and supports custom format classes. For a complete\ndocumentation, visit https://mando.readthedocs.org/.\n", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/mando/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://mando.readthedocs.org/", "keywords": "argparse", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mando", "package_url": "https://pypi.org/project/mando/", "platform": "any", "project_url": "https://pypi.org/project/mando/", "project_urls": { "Download": "https://pypi.python.org/mando/", "Homepage": "https://mando.readthedocs.org/" }, "release_url": "https://pypi.org/project/mando/0.6.4/", "requires_dist": null, "requires_python": "", "summary": "Create Python CLI apps with little to no effort at all!", "version": "0.6.4" }, "last_serial": 2925660, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e08809ca0e9ca2a62423c5adabc81e79", "sha256": "f57ecfc8afe157ae3c0818104afc6edcec65c74da83f5ee617a5d1695d2b1321" }, "downloads": -1, "filename": "mando-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e08809ca0e9ca2a62423c5adabc81e79", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9974, "upload_time": "2013-12-02T14:53:01", "url": "https://files.pythonhosted.org/packages/5b/4c/188b02c838fac5b682507c5b265a6270b1b950fcb655737b536c2f8916eb/mando-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c50f837b041637f6064906452b54ef0", "sha256": "a8c567e51ae3ef4a4e3c53d59bd9149f5c5212929fbefb4754cf5eecbe515791" }, "downloads": -1, "filename": "mando-0.1.tar.gz", "has_sig": false, "md5_digest": "6c50f837b041637f6064906452b54ef0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6832, "upload_time": "2013-12-02T14:52:59", "url": "https://files.pythonhosted.org/packages/97/0c/f818613e8256dc198e543a3114f106d05ac70855fb46dd78a83f1eb53503/mando-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "9c41b7f3fcbea982738d3e68568d7184", "sha256": "26d5d9ff6829af88d4ad8ec5b70385ad6c7369dba99d6b833b2a54953dffd7c4" }, "downloads": -1, "filename": "mando-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9c41b7f3fcbea982738d3e68568d7184", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 11356, "upload_time": "2013-12-03T16:59:03", "url": "https://files.pythonhosted.org/packages/3a/b4/8bb9320ab7ebcba6a569f3914ed74b62eafefd4bb354cd97b820099368ea/mando-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9625459aee13ec2381dc4af5eaaa886c", "sha256": "2ece0927c2ee2384f91e05bb496604cee1b53c1182f2c30f8b4dcf3929e2dcc5" }, "downloads": -1, "filename": "mando-0.2.tar.gz", "has_sig": false, "md5_digest": "9625459aee13ec2381dc4af5eaaa886c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9257, "upload_time": "2013-12-03T16:59:01", "url": "https://files.pythonhosted.org/packages/5c/df/b1a6f9961b7e09d4674e6e2baeec8cdf40098debf22f64a26cce767cebec/mando-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7d4c8224b9477edfeeadc965e910a265", "sha256": "70b13264c645a2b70fb145f0b8c5f34084014df034b50e3907762f2a9793ef76" }, "downloads": -1, "filename": "mando-0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7d4c8224b9477edfeeadc965e910a265", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14165, "upload_time": "2013-12-10T16:17:10", "url": "https://files.pythonhosted.org/packages/71/12/a0be903780fb77bb9160b2c505cdcaa271f02b64011d2708d169899aac7b/mando-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "46822a5c4c86fc81e419e4b377cdabcf", "sha256": "e08b9248e1c1f71961148c71cd9de11535c98c0a255541e2aaf50a3bbfdc9a4b" }, "downloads": -1, "filename": "mando-0.3.tar.gz", "has_sig": false, "md5_digest": "46822a5c4c86fc81e419e4b377cdabcf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9530, "upload_time": "2013-12-10T16:17:07", "url": "https://files.pythonhosted.org/packages/68/72/b24eb8149bcc4099656412d2636cb6e12d25442b49770b82c8ae9bbb3dba/mando-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "b144b180ebf4047b8d7b233dc7812ba9", "sha256": "b8d65c8353a8c6f87625e03038cfe56b88b6037c17d5b6ce46b9cff35b7a09ef" }, "downloads": -1, "filename": "mando-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b144b180ebf4047b8d7b233dc7812ba9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14285, "upload_time": "2013-12-16T17:12:03", "url": "https://files.pythonhosted.org/packages/7d/da/c811bdaa3426238b71ae9852b4796402fcdbd3fe5c7aba84239229796f87/mando-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8bc4c5cd712d16f184f650c3d6dfb4b6", "sha256": "e51ddf1cbd61aea4c73054adf062ef3ef2eef0a2915193084605a8777b8e0442" }, "downloads": -1, "filename": "mando-0.3.1.tar.gz", "has_sig": false, "md5_digest": "8bc4c5cd712d16f184f650c3d6dfb4b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9629, "upload_time": "2013-12-16T17:12:01", "url": "https://files.pythonhosted.org/packages/f4/e1/a684a0dfb802767b71b9655330b9ebc1aca3da2b9f70fea597c517eaf032/mando-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "d2c8d7a887d5ee498b0b6fe69fcecae0", "sha256": "0e59dc35e863e6da8d5aae1ccce065faae35e98fa6519f64192020fde312f916" }, "downloads": -1, "filename": "mando-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d2c8d7a887d5ee498b0b6fe69fcecae0", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 12916, "upload_time": "2014-08-07T11:33:51", "url": "https://files.pythonhosted.org/packages/5f/48/e678457b21df8b85cbb117f8957d2a6b2248a8e8ace8e18aa47099303e99/mando-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1bff21b490351a78129a8bb97a358e5", "sha256": "b3290c9e70192b81eada63622e5d3e1e8dacfe9a820f8dc2d677ecfc8ececf12" }, "downloads": -1, "filename": "mando-0.3.2.tar.gz", "has_sig": false, "md5_digest": "d1bff21b490351a78129a8bb97a358e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10760, "upload_time": "2014-08-07T11:33:46", "url": "https://files.pythonhosted.org/packages/ee/42/a37367220a01af97230fa0148e644683914fb0977d8df1c76b27dd509048/mando-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "4a2ae96ba542d168dc5be5521bf0c79f", "sha256": "ef1e10b7004b84c41cb272516640f1d387fcd1e16ba48fb96d6a6eba131faef3" }, "downloads": -1, "filename": "mando-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4a2ae96ba542d168dc5be5521bf0c79f", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 12819, "upload_time": "2015-07-14T05:42:39", "url": "https://files.pythonhosted.org/packages/4a/77/180f0b61dca785a6b76c4f1ba611100fbc628abeb8415fa7c5c4c5d99e0b/mando-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4244d87684a3c49b888dc702589a7d5b", "sha256": "4626fe3d74bb23e3a64dda59843d1641f0bf01097f61ff817d3f2e1db21cb4b3" }, "downloads": -1, "filename": "mando-0.3.3.tar.gz", "has_sig": false, "md5_digest": "4244d87684a3c49b888dc702589a7d5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20846, "upload_time": "2015-07-14T05:42:36", "url": "https://files.pythonhosted.org/packages/bc/08/0f7d43a48ab0ee03dba11f4be0d4d8c618e185d3b200713405eaed12101a/mando-0.3.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "66c900748b353c8e8e74001362a71fdc", "sha256": "099b1793a0ec00137b9bf7e856ae8e5ea87840b88a5ac8afb79a9a66327d1138" }, "downloads": -1, "filename": "mando-0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "66c900748b353c8e8e74001362a71fdc", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 16065, "upload_time": "2016-04-16T19:27:17", "url": "https://files.pythonhosted.org/packages/da/c7/fabb7e6edfb5ae5df551c56c4ad4138435cb84dcdb9fa9f6a4f0a9dbfb94/mando-0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1d3fe2ab518830d8984218d7b01b4631", "sha256": "853ff98f80266387b37850ecc4f8cac59d24cecc623fb7d2ef2bc5febbad2cae" }, "downloads": -1, "filename": "mando-0.4.tar.gz", "has_sig": false, "md5_digest": "1d3fe2ab518830d8984218d7b01b4631", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22663, "upload_time": "2016-04-16T19:27:10", "url": "https://files.pythonhosted.org/packages/2b/52/684d9ab8c2ccfb611275f2e44d3ebc76a6a6c56f4afacd2e91237fa07ec3/mando-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "8a8619930f6074be7d7d8a3d2a71bcf1", "sha256": "b62ad3fd6cb3d878f5149c01e82bcfcd106ce7777604574cd48fd7b06d675dab" }, "downloads": -1, "filename": "mando-0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8a8619930f6074be7d7d8a3d2a71bcf1", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 17123, "upload_time": "2017-02-22T18:52:04", "url": "https://files.pythonhosted.org/packages/16/10/cb109322ba4fe2747695bcf4de874342c6959e1cfb2872b3daae126ecde1/mando-0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2dbc7949d711f69a3756b51fb446ce0a", "sha256": "80b5b5f0405e64d8b35ae04c5e897ecdfdcc7337154b32696df8a5418c810560" }, "downloads": -1, "filename": "mando-0.5.tar.gz", "has_sig": false, "md5_digest": "2dbc7949d711f69a3756b51fb446ce0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23512, "upload_time": "2017-02-22T18:52:01", "url": "https://files.pythonhosted.org/packages/65/65/ca68c9997eeb05c5bd55861ef311700fe996364d61fc2fd3b7cf93afc916/mando-0.5.tar.gz" } ], "0.6.4": [ { "comment_text": "", "digests": { "md5": "8cc7586765a2402efa303bd33f7d48dc", "sha256": "4ce09faec7e5192ffc3c57830e26acba0fd6cd11e1ee81af0d4df0657463bd1c" }, "downloads": -1, "filename": "mando-0.6.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8cc7586765a2402efa303bd33f7d48dc", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 29276, "upload_time": "2017-06-05T07:02:57", "url": "https://files.pythonhosted.org/packages/e6/cc/f6e25247c1493a654785e68cd975e479c311e99dafedd49ed17f8d300e0c/mando-0.6.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50e377ef9fe89415c1fc8ea98adde1af", "sha256": "79feb19dc0f097daa64a1243db578e7674909b75f88ac2220f1c065c10a0d960" }, "downloads": -1, "filename": "mando-0.6.4.tar.gz", "has_sig": false, "md5_digest": "50e377ef9fe89415c1fc8ea98adde1af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 214068, "upload_time": "2017-06-05T07:02:54", "url": "https://files.pythonhosted.org/packages/8a/fe/1b94ddd9c89c8be761c0b5ca01498029f1253f059a59f03f7be369255e75/mando-0.6.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8cc7586765a2402efa303bd33f7d48dc", "sha256": "4ce09faec7e5192ffc3c57830e26acba0fd6cd11e1ee81af0d4df0657463bd1c" }, "downloads": -1, "filename": "mando-0.6.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8cc7586765a2402efa303bd33f7d48dc", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 29276, "upload_time": "2017-06-05T07:02:57", "url": "https://files.pythonhosted.org/packages/e6/cc/f6e25247c1493a654785e68cd975e479c311e99dafedd49ed17f8d300e0c/mando-0.6.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50e377ef9fe89415c1fc8ea98adde1af", "sha256": "79feb19dc0f097daa64a1243db578e7674909b75f88ac2220f1c065c10a0d960" }, "downloads": -1, "filename": "mando-0.6.4.tar.gz", "has_sig": false, "md5_digest": "50e377ef9fe89415c1fc8ea98adde1af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 214068, "upload_time": "2017-06-05T07:02:54", "url": "https://files.pythonhosted.org/packages/8a/fe/1b94ddd9c89c8be761c0b5ca01498029f1253f059a59f03f7be369255e75/mando-0.6.4.tar.gz" } ] }