jvconnected.interfaces
¶
Submodules¶
-
class
jvconnected.interfaces.
Registry
(*args, **kwargs)[source]¶ Bases:
pydispatch.dispatch.Dispatcher
Registry for interface modules
This is a singleton and should not be instanciated directly. Instead, it is accessed by
jvconnected.interfaces.registry
:>>> from jvconnected.interfaces import registry, Interface >>> class MyInterfaceClass(Interface): >>> pass >>> registry.register('my_interface', MyInterfaceClass) >>> for name, cls in registry: >>> print(name, cls.__name__) my_interface MyInterfaceClass
Subclasses of
Interface
added by theregister()
method. TheEngine
then instanciates them and adds them to itsinterfaces
.- Events
-
jvconnected.interfaces.
registry
: jvconnected.interfaces.Registry = <jvconnected.interfaces.Registry object>¶ Single instance of
Registry
to interact with