{ "info": { "author": "James Pic", "author_email": "jamespic@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Plugins", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3 :: Only", "Topic :: Database", "Topic :: Software Development", "Topic :: System", "Topic :: Terminals" ], "description": "clitoo: execute python callables from CLI too !\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSometimes I want to execute a python callback with some args on the command\nline, but i get frustrated that it always requires to wrap my command in a\nwrapper of some sort or do something more than, just call a parameterized\ncallback from the CLI.\n\nClitoo unfrustrates me.\n\nInstall::\n\n$ pip install clitoo\n\nHelp::\n\n Clitoo makes your python callbacks work on CLI too !\n\n This CLI can execute python callbacks with parameters.\n\n Clitoo recognizes 4 types of command line arguments:\n\n - lone arguments are passed as args\n - arguments with = are passed as kwargs\n - dashed arguments like -f arrive in context.args\n - dashed arguments like -foo=bar arrive in context.kwargs\n\n It doesn't matter how many dashes you put in the front, they are all\n removed.\n\n To use the context in your callback just import the clitoo context::\n\n from clitoo import context\n print(context.args, context.kwargs)\n\n Clitoo provides 2 builtin commands: help and debug. Any other first\n argument will be considered as the dotted path to the callback to import\n and execute.\n\n Examples:\n\n clitoo help your.mod.funcname\n Print out the function docstring.\n\n clitoo debug your.func -a --b --something='to see' how it=parses\n Dry run of your.mod with arguments, dump out actual calls.\n\n clitoo your.mod.funcname with your=args\n Call your.mod.funcname('with', your='args').\n\n\nDemo::\n\n $ clitoo debug your.func -a --b --something='to see' how it=parses\n Could not import your.func nor clitoo.your.func\n Args: ('how',)\n Kwargs: {'it': 'parses'}\n Context args: ['a', 'b']\n Context kwargs: {'something': 'to see'}\n\nFallbacks\n~~~~~~~~~\n\nClitoo will attempt to fallback on packages of its own. If it doesn't find the\n`git.clone` callback from the `git` package, or doesn't find the `git` package\nitself, it will find `clitoo.git.clone` which is a builtin command that we use\nin CI.\n\nMaking your own command\n~~~~~~~~~~~~~~~~~~~~~~~\n\nSee the djcli repository for an example of command that is packaged as\nstandalone, but it looks like::\n\n\t# Declare the following as CLI entry_point\n\tdef cli():\n\t clitoo.context.default_module = __name__\n\t return clitoo.main()", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://yourlabs.io/oss/clitoo", "keywords": "cli", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "clitoo", "package_url": "https://pypi.org/project/clitoo/", "platform": "", "project_url": "https://pypi.org/project/clitoo/", "project_urls": { "Homepage": "https://yourlabs.io/oss/clitoo" }, "release_url": "https://pypi.org/project/clitoo/1.0.2/", "requires_dist": null, "requires_python": ">=3", "summary": "execute python callables from CLI too !", "version": "1.0.2" }, "last_serial": 4556275, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bcfb878231920e137de644c5a605addf", "sha256": "dd1fbf95f701d824c8ceb781fea4e71ef049d07c6f62cefbf31a713e5c973473" }, "downloads": -1, "filename": "clitoo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bcfb878231920e137de644c5a605addf", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4923, "upload_time": "2018-11-18T04:17:24", "url": "https://files.pythonhosted.org/packages/26/39/b8db43807c62dd489b96c8857ec4acae1d51585c220b77cd869424041c8a/clitoo-0.1.0.tar.gz" } ], "0.1.1.dev1": [ { "comment_text": "", "digests": { "md5": "e51b3d20897d3213171d155644befbf2", "sha256": "f102459fae3cc27bb306e5ad691b89e702943d4986bdc75568b20318834af537" }, "downloads": -1, "filename": "clitoo-0.1.1.dev1.tar.gz", "has_sig": false, "md5_digest": "e51b3d20897d3213171d155644befbf2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5084, "upload_time": "2018-11-18T11:29:09", "url": "https://files.pythonhosted.org/packages/7c/67/b3a03d8983e2b9dc8fd453ee1b5f246a9771e3738bf285f0dfe1677db471/clitoo-0.1.1.dev1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "1bfbaa05199d716447d653179968243c", "sha256": "93b8f98a7cc055a4fa457962ec24cd6390c591b4269a07b906faad1a40e57bdb" }, "downloads": -1, "filename": "clitoo-0.3.0.tar.gz", "has_sig": false, "md5_digest": "1bfbaa05199d716447d653179968243c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5193, "upload_time": "2018-11-18T11:50:09", "url": "https://files.pythonhosted.org/packages/2e/47/1b71f5316b8f39b06df3b30e5f597fb2995dcee7a456c728ae430a790602/clitoo-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "e6fe2eaa2cabb479318a9632dc674db4", "sha256": "04f5ab2cc738b4df60592e2a3b4c2f48bc3d2be4333a54c5d5c516db5fc6ca04" }, "downloads": -1, "filename": "clitoo-0.4.0.tar.gz", "has_sig": false, "md5_digest": "e6fe2eaa2cabb479318a9632dc674db4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5264, "upload_time": "2018-11-18T12:21:24", "url": "https://files.pythonhosted.org/packages/5d/ad/ea93c19fc2e524b7784284e5d145e83970fba0da4ed85220b44ea5be3c85/clitoo-0.4.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "901d0d2c234004d3b70648a9cddd88b9", "sha256": "aa0ddca35315d2ef8338a5e1edf692a1ad05effc4723383898832afcf3f53b3c" }, "downloads": -1, "filename": "clitoo-1.0.1.tar.gz", "has_sig": false, "md5_digest": "901d0d2c234004d3b70648a9cddd88b9", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5298, "upload_time": "2018-11-20T16:43:34", "url": "https://files.pythonhosted.org/packages/64/dc/ab6315499aad6f19a62e02e841716c59afbe0a37e6d3f19ad7060cba66e6/clitoo-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "24c97b00bdaa21fc1ff45df136948a7d", "sha256": "463cd4097798ce4f7bff13b7ac9eeb83d8fcfdda49a97437eba369377bef9ee9" }, "downloads": -1, "filename": "clitoo-1.0.2.tar.gz", "has_sig": false, "md5_digest": "24c97b00bdaa21fc1ff45df136948a7d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5303, "upload_time": "2018-11-21T12:50:10", "url": "https://files.pythonhosted.org/packages/04/ef/fdbafd0989af5c15c8cc2a063c0e96feea8186e02f21d67320825964c46b/clitoo-1.0.2.tar.gz" } ], "1.0.2.dev1": [ { "comment_text": "", "digests": { "md5": "fe1a547ab2de39098186437ef232ebe1", "sha256": "b639c5232d273dde8f39636f150f30116ef2bff817f668c2cd67ac13af320830" }, "downloads": -1, "filename": "clitoo-1.0.2.dev1.tar.gz", "has_sig": false, "md5_digest": "fe1a547ab2de39098186437ef232ebe1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5315, "upload_time": "2018-11-21T12:48:07", "url": "https://files.pythonhosted.org/packages/21/f4/ab36477f25a4deca723a9ff75d9a3c6d3b7ce168587611a986e004a1c63a/clitoo-1.0.2.dev1.tar.gz" } ], "1.0.3.dev1": [ { "comment_text": "", "digests": { "md5": "5c1ea85285f9920ecb90ae9cd67768a0", "sha256": "fd8c074ce9a03c5937cff424a4851f952f4dc832c50aa912934a5b31c9c00d50" }, "downloads": -1, "filename": "clitoo-1.0.3.dev1.tar.gz", "has_sig": false, "md5_digest": "5c1ea85285f9920ecb90ae9cd67768a0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5617, "upload_time": "2018-12-03T01:24:49", "url": "https://files.pythonhosted.org/packages/b2/62/e4957413b5883252dd51d5d07e7c549380a711fd00b4295c55f7b7742cc4/clitoo-1.0.3.dev1.tar.gz" } ], "1.0.3.dev2": [ { "comment_text": "", "digests": { "md5": "1b99fb7548412721d6dcf540a1cdeac4", "sha256": "2dd9435b2c2337fa194eaa64c9d32defcda872e51477591e7e9ebe318101aa3a" }, "downloads": -1, "filename": "clitoo-1.0.3.dev2.tar.gz", "has_sig": false, "md5_digest": "1b99fb7548412721d6dcf540a1cdeac4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5313, "upload_time": "2018-11-23T13:28:03", "url": "https://files.pythonhosted.org/packages/b7/1c/b6599efaf65c83d83ebf7c2004bc1fe19242a01215d0274f155663cf061e/clitoo-1.0.3.dev2.tar.gz" } ], "1.0.3.dev6": [ { "comment_text": "", "digests": { "md5": "b760fc6e579eedc8cf259fdc081b8029", "sha256": "2532eed5402dc0fc94026faccc74b97216e566b0c7ec40647945c03f908bf2c0" }, "downloads": -1, "filename": "clitoo-1.0.3.dev6.tar.gz", "has_sig": false, "md5_digest": "b760fc6e579eedc8cf259fdc081b8029", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5324, "upload_time": "2018-12-01T16:21:14", "url": "https://files.pythonhosted.org/packages/2e/ee/46194c32756579c138724047710af0aebb25d49af35ab516aaae3a3b13ad/clitoo-1.0.3.dev6.tar.gz" } ], "1.0.3.dev9": [ { "comment_text": "", "digests": { "md5": "f6b37ce686f21b18578b6f98f0cfbfe2", "sha256": "2d09e03b2d760fbaf5fda72a8c59b114e186fa936919879cb4aa458ba7dc648a" }, "downloads": -1, "filename": "clitoo-1.0.3.dev9.tar.gz", "has_sig": false, "md5_digest": "f6b37ce686f21b18578b6f98f0cfbfe2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5325, "upload_time": "2018-12-03T15:59:30", "url": "https://files.pythonhosted.org/packages/e5/a0/3d754f4c5eb39ac68c12d643603c7cd582a24c2a031bfc2bc1362cdb1555/clitoo-1.0.3.dev9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24c97b00bdaa21fc1ff45df136948a7d", "sha256": "463cd4097798ce4f7bff13b7ac9eeb83d8fcfdda49a97437eba369377bef9ee9" }, "downloads": -1, "filename": "clitoo-1.0.2.tar.gz", "has_sig": false, "md5_digest": "24c97b00bdaa21fc1ff45df136948a7d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 5303, "upload_time": "2018-11-21T12:50:10", "url": "https://files.pythonhosted.org/packages/04/ef/fdbafd0989af5c15c8cc2a063c0e96feea8186e02f21d67320825964c46b/clitoo-1.0.2.tar.gz" } ] }