Ufo.PluginManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Ufo.PluginManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Creates #UfoFilter instances by loading corresponding shared objects. The contents of the
Ufo.PluginManager
structure are private and should only be accessed via the provided API.- classmethod new()¶
- Returns:
A new
Ufo.PluginManager
object.- Return type:
Create a plugin manager object to instantiate filter objects.
- get_all_task_names()¶
- Returns:
List of strings with filter names
- Return type:
[
str
]
Return a list with potential filter names that match shared objects in all search paths.
- get_plugin(func_name, module_name)¶
- Parameters:
- Raises:
- Returns:
(allow-none): A loaded plugin or
None
if module cannot be found.- Return type:
Load a module and return an instance.
- get_task(name)¶
- Parameters:
name (
str
) – Name of the plugin.- Raises:
- Returns:
(allow-none): #UfoFilter or
None
if module cannot be found- Return type:
Load a #UfoFilter module and return an instance. The shared object name must be * constructed as “libfilter`name`.so”.
New in version 0.2.
- get_task_from_package(package_name, name)¶
- Parameters:
- Raises:
- Returns:
(allow-none):
Ufo.TaskNode
orNone
if module cannot be found- Return type:
Load a
Ufo.TaskNode
module and return an instance. The shared object name must be in package_name subfolder and constructed as “lib`name`.so”.New in version 0.2.