core ¶
Core components of the Stimulus library.
Modules:
-
registry
–A common basic registry object for all type of classes.
Classes:
-
BaseRegistry
–A generic registry implementation.
BaseRegistry ¶
Bases: type
A generic registry implementation.
registry-subclasses.¶
Source: https://charlesreid1.github.io/python-patterns-the-registry.html
Methods:
-
all
–Return all the saved classes.
-
get
–Returns the saved classe with a given name as key.
-
register
–Function using a wrapper to register the given class with a specific name.
-
save_class
–Saves the class and the given name in the registry.
all classmethod
¶
Return all the saved classes.
Source code in src/stimulus/core/registry.py
69 70 71 72 |
|
get classmethod
¶
Returns the saved classe with a given name as key.
Source code in src/stimulus/core/registry.py
64 65 66 67 |
|
register classmethod
¶
Function using a wrapper to register the given class with a specific name.
Source code in src/stimulus/core/registry.py
50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
save_class classmethod
¶
Saves the class and the given name in the registry.
Source code in src/stimulus/core/registry.py
39 40 41 42 43 44 45 46 47 48 |
|