plainbox.provider_manager – CLI tools for managing providers

This module has strict API stability requirements. The only public API is the setup() function and the argument handling semantics that is documented therein.

plainbox.provider_manager.setup(**kwargs)[source]

The setup method that is being called from generated manage.py scripts.

This setup method is similar in spirit to the setup.py’s setup() call present in most python projects. It takes any keyword arguments and tries to make the best of it.

Parameters:kwargs – arbitrary keyword arguments, see below for what we currently look up
Raises:SystemExit with the exit code of the program. This is done regardless of normal / abnormal termination.

The following keyword parameters are supported:

name:
name of the provider (IQN compatible). Typically something like org.example:some-name where the some-name is a simple identifier and a private namespace for whoever owned org.example
version:
version string, required
description:
description (may be long/multi line), optional
gettext_domain:
gettext translation domain for job definition strings, optional
plainbox.provider_manager.manage_py_extension(cls)[source]

A decorator for classes that extend subcommands of manage.py

Parameters:cls – A new management subcommand class. Either a new class (subclassing ManageCommand directly) or a subclass of one of the standard manage.py command classes). New commands are just appended, replacement commands override the stock version.
Returns:cls itself, unchanged
comments powered by Disqus