Home
Docs
Install
OpenGL
OpenGL.plugins
Simple plug-in mechanism to provide replacement for setuptools plugins
Functions
importByName
(
fullName
)
Import a class by name
Classes
class
FormatHandler
(
Plugin
):
Data-type storage-format handler
match
(
cls ,
value
)
Lookup appropriate handler based on value (a type)
class
PlatformPlugin
(
Plugin
):
Platform-level plugin registration
match
(
cls ,
key
)
Determine what platform module to load
key
sys.platform,os.name) key to load
class
Plugin
(
object
):
Base class for plugins to be loaded
__init__
(
self ,
name ,
import_path ,
check = None ,
** named
)
Register the plug-in
all
(
cls
)
Iterate over all registered plugins
by_name
(
cls ,
name
)
load
(
self
)
Attempt to load and return our entry point
match
(
cls ,
* args
)
Match to return the plugin which is appropriate to load