API: aj.plugins

class aj.plugins.PluginProvider[source]

A base class for plugin locator

provide()[source]

Should return a list of found plugin paths

Returns:list(str)
class aj.plugins.DirectoryPluginProvider(path)[source]

A plugin provider that looks up plugins in a given directory.

Parameters:path – directory to look for plugins in
provide()[source]
class aj.plugins.PythonPathPluginProvider[source]

A plugin provider that looks up plugins on $PYTHONPATH

provide()[source]
exception aj.plugins.PluginLoadError[source]
exception aj.plugins.PluginCrashed(exception)[source]
describe()[source]
class aj.plugins.Dependency[source]
exception Unsatisfied[source]
describe()[source]
reason()[source]
Dependency.build_exception()[source]
Dependency.check()[source]
Dependency.value
class aj.plugins.ModuleDependency(module_name=None)[source]
exception Unsatisfied[source]
reason()[source]
ModuleDependency.description = 'Python module'
ModuleDependency.is_satisfied()[source]
class aj.plugins.PluginDependency(plugin_name=None)[source]
exception Unsatisfied[source]
reason()[source]
PluginDependency.description = 'Plugin'
PluginDependency.is_satisfied()[source]
class aj.plugins.OptionalPluginDependency(plugin_name=None)[source]
exception Unsatisfied[source]
reason()[source]
OptionalPluginDependency.description = 'Plugin'
OptionalPluginDependency.is_satisfied()[source]
class aj.plugins.BinaryDependency(binary_name=None)[source]
exception Unsatisfied[source]
reason()[source]
BinaryDependency.description = 'Application binary'
BinaryDependency.is_satisfied()[source]
class aj.plugins.FileDependency(file_name=None)[source]
exception Unsatisfied[source]
reason()[source]
FileDependency.description = 'File'
FileDependency.is_satisfied()[source]
class aj.plugins.PluginManager(context)[source]

Handles plugin loading and unloading

get(context)
get_content_path(name, path)[source]
get_crash(name)[source]
get_loaded_plugins_list()[source]
load_all_from(providers)[source]

Loads all plugins provided by given providers.

Parameters:providers (list(PluginProvider)) –

Comments

comments powered by Disqus