veritas.plugin
Package Contents
Classes
This class is a singleton that holds the registry of plugins. |
Functions
|
decorator to register a kobold plugin |
|
register configmanagement plugin |
|
register arbitary plugin |
- class veritas.plugin.Plugin
Bases:
objectThis class is a singleton that holds the registry of plugins.
- Returns:
The plugin object
- Return type:
- _instance
- get(app: str, name: str) callable
return registry entry
- Parameters:
app (str) – name of the app
name (str) – name of the registered plugin
- Returns:
the method that is registered
- Return type:
method
- get_kobold_plugin(name: str) callable
return kobold plugin
- Parameters:
name (str) – name of the registered plugin
- Returns:
the method that is registered
- Return type:
callable
- get_configmanagement_plugin(name: str) callable
return configmanagement plugin
- Parameters:
name (str) – name of the registered plugin
- Returns:
the method that is registered
- Return type:
callable
- get_registry(app: str) dict
return registry
- Parameters:
app (str) – name of the app
- Returns:
the registry of the app
- Return type:
dict
- add(app: str, name: str, method: callable) None
register a plugin
- Parameters:
app (str) – name of the app
name (str) – name of the plugin
method (callable) – the method to be registered
- veritas.plugin.kobold(name: str)
decorator to register a kobold plugin
- Parameters:
name (str) – name to be registered
- veritas.plugin.configmanagement(name: str)
register configmanagement plugin
- Parameters:
name (str) – name to be registered
- veritas.plugin.register(name: str)
register arbitary plugin
- Parameters:
name (str) – name to be registered