{
"info": {
"author": "ponty",
"author_email": "UNKNOWN",
"bugtrack_url": null,
"classifiers": [
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2"
],
"description": "entrypoint2 is an easy to use argparse_ based command-line interface for python modules, fork of `entrypoint `_. \nIt translates function signature and documentation to argparse_ configuration.\n\n\nLinks:\n\n * home: https://github.com/ponty/entrypoint2\n * documentation: http://ponty.github.com/entrypoint2\n\nGoals:\n\n - simplicity: only one decorator to add to existing code\n \nFeatures:\n\n - good for protoyping or simple CLI\n - generate CLI parameters from function signature \n - generate CLI documentation from python documentation \n - the decorated function has the same behavior as without the entrypoint2 decorator\n - boolean parameters are toggle flags (e.g. ``--verbose``) \n - function signature is preserved so it can be called both from command-line and external module\n - function name, doc and module are preserved so it can be used with sphinx autodoc_\n - sphinx autodoc_ documentation style is supported: ``:param x: this is x``\n - automatic ``--version`` flag, which prints version variable from the current module\n (``__version__``, ``VERSION``, ..) \n - automatic ``--debug`` flag, which turns on logging \n - short flags are generated from long flags automatically (e.g. ``--parameter`` -> ``-p``) \n - unit tests\n - supported python versions: 2.5, 2.6, 2.7, 3.1, 3.2, PyPy\n - support for repeating arguments\n \nKnown problems:\n - None. \n\nSimilar projects:\n\n * `entrypoint `_\n * `plac `_\n * `baker `_ \n * `argh `_\n * `opster `_\n * `commandline `_\n * `optfunc `_: this has the same concept\n * `commando (1) `_\n * `commando (2) `_\n * argparse_\n * `optparse `_ \n\nBasic usage\n============\n\nExample::\n\n\tfrom entrypoint2 import entrypoint\n\t\n\t__version__ = '3.2'\n\t\n\t@entrypoint\n\tdef add(one, two=4, three=False): \n\t ''' This function adds three numbers.\n\t \n\t one: first number to add\n\t two: second number to add\n\t '''\n\nGenerated help::\n\n\t$ python -m entrypoint2.examples.hello --help\n\tusage: hello.py [-h] [-t TWO] [--three] [--version] [--debug] one\n\t\n\tThis function adds two number.\n\t\n\tpositional arguments:\n\t one first number to add\n\t\n\toptional arguments:\n\t -h, --help show this help message and exit\n\t -t TWO, --two TWO second number to add\n\t --three\n\t --version show program's version number and exit\n\t --debug set logging level to DEBUG\n\nPrinting version::\n\n\t$ python -m entrypoint2.examples.hello --version\n\t3.2\n\n\nInstallation\n============\n\nGeneral:\n\n * install pip_\n * install the program::\n\n # as root\n pip install entrypoint2\n\nUbuntu::\n\n sudo apt-get install python-pip\n sudo pip install entrypoint2\n\nUninstall::\n\n # as root\n pip uninstall entrypoint2\n\n\n.. _setuptools: http://peak.telecommunity.com/DevCenter/EasyInstall\n.. _pip: http://pip.openplans.org/\n.. _entrypoint: http://pypi.python.org/pypi/entrypoint/\n.. _autodoc: http://sphinx.pocoo.org/ext/autodoc.html\n.. _argparse: http://docs.python.org/dev/library/argparse.html",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/ponty/entrypoint2",
"keywords": "argparse decorator optparse signature command-line",
"license": "BSD",
"maintainer": null,
"maintainer_email": null,
"name": "entrypoint2",
"package_url": "https://pypi.org/project/entrypoint2/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/entrypoint2/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/ponty/entrypoint2"
},
"release_url": "https://pypi.org/project/entrypoint2/0.0.6/",
"requires_dist": null,
"requires_python": null,
"summary": "easy to use command-line interface for python modules, fork of entrypoint",
"version": "0.0.6"
},
"last_serial": 791663,
"releases": {
"0.0.0": [
{
"comment_text": "",
"digests": {
"md5": "675056503ce643b2c87370e8e2bac6fb",
"sha256": "c3b30915f3856b8144c608647f22d91d2c7572d03bd0f31a0ac7312d4367cc39"
},
"downloads": -1,
"filename": "entrypoint2-0.0.0.tar.gz",
"has_sig": false,
"md5_digest": "675056503ce643b2c87370e8e2bac6fb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 40442,
"upload_time": "2011-04-11T19:26:12",
"url": "https://files.pythonhosted.org/packages/8f/ce/8bbdcfeba20f188bc544d5dd6c7a0b310a9fd687a337ae9862aeaa11ee17/entrypoint2-0.0.0.tar.gz"
}
],
"0.0.1": [
{
"comment_text": "",
"digests": {
"md5": "c509f3dd345638f68b95cd21449e004d",
"sha256": "0e8c3c44ad6e28a526bd1129dbbeef671e66433da0427b81cdaaa6b80f03104a"
},
"downloads": -1,
"filename": "entrypoint2-0.0.1.tar.gz",
"has_sig": false,
"md5_digest": "c509f3dd345638f68b95cd21449e004d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 44751,
"upload_time": "2011-04-22T20:01:27",
"url": "https://files.pythonhosted.org/packages/1c/11/354e52e92ed59639f5b75f2056666ab79530249c5b92a83ae07dc4c359c3/entrypoint2-0.0.1.tar.gz"
}
],
"0.0.2": [
{
"comment_text": "",
"digests": {
"md5": "303cb991f8e4908229ba46fb33d238c7",
"sha256": "a935203b546bda487247f257c26fc25f398b82a2cac63d262d01896963e41b90"
},
"downloads": -1,
"filename": "entrypoint2-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "303cb991f8e4908229ba46fb33d238c7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 46270,
"upload_time": "2011-04-28T18:44:01",
"url": "https://files.pythonhosted.org/packages/7a/e8/72c25ef894dcc42dfa63326bf9c4bd0108919fcd44f7447656bab462778c/entrypoint2-0.0.2.tar.gz"
}
],
"0.0.3": [
{
"comment_text": "",
"digests": {
"md5": "4c854ed73743d8197feaaaec4506652e",
"sha256": "2ddbda93dc87029755e404372b30e053b80eabf940b49e6e8e34681c19ecbeae"
},
"downloads": -1,
"filename": "entrypoint2-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "4c854ed73743d8197feaaaec4506652e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 46337,
"upload_time": "2011-08-01T18:52:29",
"url": "https://files.pythonhosted.org/packages/fb/e2/45ac606ffd9378d12dcbe9d1f1576a2a60d756aad0d65bdddc820b2aed4f/entrypoint2-0.0.3.tar.gz"
}
],
"0.0.4": [
{
"comment_text": "",
"digests": {
"md5": "b06fbf89e3a99c7700fd3c1218adb40b",
"sha256": "ec70078a197603c20feda3ec55a9b6753b10baf7ccd4aa61f636c529b3672621"
},
"downloads": -1,
"filename": "entrypoint2-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "b06fbf89e3a99c7700fd3c1218adb40b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 45939,
"upload_time": "2012-02-05T21:27:26",
"url": "https://files.pythonhosted.org/packages/fd/32/efd92d0b7516c9b72a1764b7d5f6a113500339a0ee06783d0912610f1032/entrypoint2-0.0.4.tar.gz"
}
],
"0.0.5": [
{
"comment_text": "",
"digests": {
"md5": "66d30ba0cc6f521f9d975a0099569e9f",
"sha256": "5523514e6343d34076aa746b9ba0e1415dd72bdcc4ec24ace945d4545490c669"
},
"downloads": -1,
"filename": "entrypoint2-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "66d30ba0cc6f521f9d975a0099569e9f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16565,
"upload_time": "2012-03-10T09:41:03",
"url": "https://files.pythonhosted.org/packages/d5/0b/4681f315bbf52dcd4ade1f7e55ecb82b45d0430e115365e0d019f9676d71/entrypoint2-0.0.5.tar.gz"
}
],
"0.0.6": [
{
"comment_text": "",
"digests": {
"md5": "ab268f561bb22471a83ca602c1921cbc",
"sha256": "ba72a243f2a45874ac6c762f1efa4999b75d4186e3ffed2d2ac6386709c3f8ee"
},
"downloads": -1,
"filename": "entrypoint2-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "ab268f561bb22471a83ca602c1921cbc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16458,
"upload_time": "2012-05-17T16:54:46",
"url": "https://files.pythonhosted.org/packages/6f/12/ffea34bdecf8c43e4932897cbaa769068c8a1355b025d283707301fe40ad/entrypoint2-0.0.6.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "ab268f561bb22471a83ca602c1921cbc",
"sha256": "ba72a243f2a45874ac6c762f1efa4999b75d4186e3ffed2d2ac6386709c3f8ee"
},
"downloads": -1,
"filename": "entrypoint2-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "ab268f561bb22471a83ca602c1921cbc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 16458,
"upload_time": "2012-05-17T16:54:46",
"url": "https://files.pythonhosted.org/packages/6f/12/ffea34bdecf8c43e4932897cbaa769068c8a1355b025d283707301fe40ad/entrypoint2-0.0.6.tar.gz"
}
]
}