benchmarkstt.factory module¶
-
class
benchmarkstt.factory.
ClassConfig
[source]¶ Bases:
benchmarkstt.factory.ClassConfigTuple
-
docs
¶ Alias for field number 2
-
-
class
benchmarkstt.factory.
Factory
(base_class, namespaces=None)[source]¶ Bases:
benchmarkstt.registry.Registry
Factory class with auto-loading of namespaces according to a base class.
-
is_valid
(tocheck)[source]¶ Checks that tocheck is a valid class extending base_class
Parameters: tocheck -- The class to check Return type: bool
-
static
normalize_class_name
(clsname)[source]¶ Normalizes the class name for automatic lookup of a class, by default this means lowercasing the class name, but may be overrided by a child class.
Parameters: clsname -- The class name Returns: The normalized class name Return type: str
-