OpenGL.plugins
index
/home/mcfletch/pylive/OpenGL/plugins.py

Simple plug-in mechanism to provide replacement for setuptools plugins

 
Classes
       
object
Plugin
FormatHandler
PlatformPlugin

 
class FormatHandler(Plugin)
    Data-type storage-format handler
 
 
Method resolution order:
FormatHandler
Plugin
object

Class methods defined here:
match(cls, value) from type
Lookup appropriate handler based on value (a type)

Data and other attributes defined here:
registry = [<OpenGL.plugins.FormatHandler object at 0x2029f10>, <OpenGL.plugins.FormatHandler object at 0x2029f50>, <OpenGL.plugins.FormatHandler object at 0x2029f90>, <OpenGL.plugins.FormatHandler object at 0x2029fd0>, <OpenGL.plugins.FormatHandler object at 0x202d050>, <OpenGL.plugins.FormatHandler object at 0x202d090>, <OpenGL.plugins.FormatHandler object at 0x202d0d0>, <OpenGL.plugins.FormatHandler object at 0x202d110>, <OpenGL.plugins.FormatHandler object at 0x202d150>, <OpenGL.plugins.FormatHandler object at 0x4a75d90>, <OpenGL.plugins.FormatHandler object at 0x4a75dd0>, <OpenGL.plugins.FormatHandler object at 0x4a75e10>, <OpenGL.plugins.FormatHandler object at 0x4a75e50>, <OpenGL.plugins.FormatHandler object at 0x4a75e90>, <OpenGL.plugins.FormatHandler object at 0x4a75ed0>, <OpenGL.plugins.FormatHandler object at 0x4a75f10>, <OpenGL.plugins.FormatHandler object at 0x4a75f50>, <OpenGL.plugins.FormatHandler object at 0x4a75f90>]

Methods inherited from Plugin:
__init__(self, name, import_path, check=None)
Register the plug-in
load(self)
Attempt to load and return our entry point

Class methods inherited from Plugin:
all(cls) from type
Iterate over all registered plugins

Data descriptors inherited from Plugin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from Plugin:
loaded = False

 
class PlatformPlugin(Plugin)
    Platform-level plugin registration
 
 
Method resolution order:
PlatformPlugin
Plugin
object

Class methods defined here:
match(cls, key) from type
Determine what platform module to load
 
key -- (sys.platform,os.name) key to load

Data and other attributes defined here:
registry = [<OpenGL.plugins.PlatformPlugin object at 0x2029e10>, <OpenGL.plugins.PlatformPlugin object at 0x2029e50>, <OpenGL.plugins.PlatformPlugin object at 0x2029e90>, <OpenGL.plugins.PlatformPlugin object at 0x2029ed0>, <OpenGL.plugins.PlatformPlugin object at 0x4a75c90>, <OpenGL.plugins.PlatformPlugin object at 0x4a75cd0>, <OpenGL.plugins.PlatformPlugin object at 0x4a75d10>, <OpenGL.plugins.PlatformPlugin object at 0x4a75d50>]

Methods inherited from Plugin:
__init__(self, name, import_path, check=None)
Register the plug-in
load(self)
Attempt to load and return our entry point

Class methods inherited from Plugin:
all(cls) from type
Iterate over all registered plugins

Data descriptors inherited from Plugin:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from Plugin:
loaded = False

 
class Plugin(object)
    Base class for plugins to be loaded
 
  Methods defined here:
__init__(self, name, import_path, check=None)
Register the plug-in
load(self)
Attempt to load and return our entry point

Class methods defined here:
all(cls) from type
Iterate over all registered plugins
match(cls, *args) from type
Match to return the plugin which is appropriate to load

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Data and other attributes defined here:
loaded = False

 
Functions
       
importByName(fullName)
Import a class by name

 
Data
        __file__ = '/home/mcfletch/pylive/OpenGL/plugins.pyc'
__name__ = 'OpenGL.plugins'