{ "info": { "author": "AWeber Communications", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: No Input/Output (Daemon)", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "sprockets.cli\n=============\nThe sprockets CLI interface for running applications. Applications are meant\nto be run by a controller that is managed by the sprockets CLI interface.\n\nThe sprockets CLI interface loads controller applications that are registered\nusing setuptools entry points.\n\n|Version| |Downloads| |Status| |Coverage| |License|\n\nExample CLI Usage\n-----------------\n\nHelp:\n\n.. code::\n\n # sprockets --help\n\n usage: sprockets [-h] [--apps] [--plugins] [-e [PLUGIN]] [-s] [-v] [--version]\n CONTROLLER ... [APP]\n\n Command line tool for starting a Sprockets application\n\n positional arguments:\n CONTROLLER Available sprockets application controllers\n http HTTP Application Controller\n amqp RabbitMQ Worker Controller\n APP Application to run\n\n optional arguments:\n -h, --help show this help message and exit\n --apps List installed applications\n --plugins List installed plugins\n -e [PLUGIN], --enable [PLUGIN]\n Enable a plugin\n -s, --syslog Log to syslog\n -v, --verbose Verbose logging output, use -vv for DEBUG level\n logging\n --version show program's version number and exit\n\n Find more Sprockets controllers and plugins at\n https://sprockets.readthedocs.org\n\nStarting a Web App with the NewRelic plugin:\n\n.. code::\n\n # sprockets -e newrelic http my_web_app\n\nControllers\n-----------\n\nEach controller is expected to expose at least a ``main(application, args)``\nmethod that would be invoked when starting the application. Additional, a\ncontroller can implement a ``add_cli_arguments(parser)`` method that will be\ninvoked when setting up the command line parameters. This allows controllers\nto inject configuration directives into the cli.\n\nController API Summary:\n\n.. code:: python\n\n module.add_cli_arguments(ArgumentParser) # optional\n module.main(app_module, argparse.Namespace)\n\nPlugins\n-------\n\nPlugins are able to inject themselves at multiple points in the application\nlifecycle. Plugins that implement a ``initialization(controller)`` method will\nsee that method invoked before a controller is started. In addition, if a\n``on_startup(controller)`` method is defined, it will be invoked after a\nController has started a application. Finally if a ``on_shutdown(controller)``\nmethod is defined, it will be invoked when a controller has shutdown.\n\nPlugin API Summary:\n\n.. code:: python\n\n plugin.initialize(controller_module) # optional\n plugin.on_start(controller_module) # optional\n plugin.on_shutdown(controller_module) # optional\n\nExample Entrypoints\n-------------------\n\nController:\n\n.. code:: python\n\n {'sprockets.controller': ['http=sprockets.controllers.http:None']},\n\nApplication:\n\n.. code:: python\n\n {'sprockets.http.app': ['app-name=package.or.module:None']}\n\n(Replace ``app-name`` with the name of your application)\n\nApplications\n------------\n\nApplications can be a python package or module and if they are registered\nto a specific controller, can be referenced by an alias. Application contracts\nvary by controller.\n\n.. |Version| image:: https://badge.fury.io/py/sprockets.cli.svg?\n :target: http://badge.fury.io/py/sprockets.cli\n\n.. |Status| image:: https://travis-ci.org/sprockets/sprockets.cli.svg?branch=master\n :target: https://travis-ci.org/sprockets/sprockets.cli\n\n.. |Coverage| image:: https://coveralls.io/repos/sprockets/sprockets.cli/badge.png\n :target: https://coveralls.io/r/sprockets/sprockets.cli\n \n.. |Downloads| image:: https://pypip.in/d/sprockets.cli/badge.svg?\n :target: https://pypi.python.org/pypi/sprockets.cli\n \n.. |License| image:: https://pypip.in/license/sprockets.cli/badge.svg?\n :target: https://sprockets.readthedocs.org\n", "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/sprockets/sprockets.cli", "keywords": "", "license": "Copyright (c) 2014 AWeber Communications\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n * Neither the name of Sprockets nor the names of its contributors may be used to\n endorse or promote products derived from this software without specific\n prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\nINDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\nLIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": "", "maintainer_email": "", "name": "sprockets.cli", "package_url": "https://pypi.org/project/sprockets.cli/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sprockets.cli/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sprockets/sprockets.cli" }, "release_url": "https://pypi.org/project/sprockets.cli/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Sprockets command line application runner", "version": "0.1.0" }, "last_serial": 1590222, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1d46c365bb6118b52b7071a179d31653", "sha256": "8d2deb39d1b46de9e3d3680beda1abecfa8c50a8da8643d08266fba3e7f23e44" }, "downloads": -1, "filename": "sprockets.cli-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1d46c365bb6118b52b7071a179d31653", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8855, "upload_time": "2015-06-12T20:57:14", "url": "https://files.pythonhosted.org/packages/55/c6/b2c0e5b5612ce8edda0803feccac9d8843ae07e303bcf5bd49975913edbb/sprockets.cli-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c867c92a5baaeb276374fb7d3450d99", "sha256": "4431e8044ff7605dc16961d9653704b21404f1cc31710bc5da8f84e1e459ee14" }, "downloads": -1, "filename": "sprockets.cli-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5c867c92a5baaeb276374fb7d3450d99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6947, "upload_time": "2015-06-12T20:57:11", "url": "https://files.pythonhosted.org/packages/25/26/93c5de757f28f3fd27755703ae99d2ff9bb557d239653004b1d1e09c0ab4/sprockets.cli-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1d46c365bb6118b52b7071a179d31653", "sha256": "8d2deb39d1b46de9e3d3680beda1abecfa8c50a8da8643d08266fba3e7f23e44" }, "downloads": -1, "filename": "sprockets.cli-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1d46c365bb6118b52b7071a179d31653", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8855, "upload_time": "2015-06-12T20:57:14", "url": "https://files.pythonhosted.org/packages/55/c6/b2c0e5b5612ce8edda0803feccac9d8843ae07e303bcf5bd49975913edbb/sprockets.cli-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5c867c92a5baaeb276374fb7d3450d99", "sha256": "4431e8044ff7605dc16961d9653704b21404f1cc31710bc5da8f84e1e459ee14" }, "downloads": -1, "filename": "sprockets.cli-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5c867c92a5baaeb276374fb7d3450d99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6947, "upload_time": "2015-06-12T20:57:11", "url": "https://files.pythonhosted.org/packages/25/26/93c5de757f28f3fd27755703ae99d2ff9bb557d239653004b1d1e09c0ab4/sprockets.cli-0.1.0.tar.gz" } ] }