Bases: object
Singleton factory to build PyAML elements with future compatibility logic.
No matter how many times you call PyAMLFactory(),
it will be created only once.
-
build_object(d, ignore_external=False)[source]
Build an object from the dict
-
build_unbound(e, holder)[source]
-
clear()[source]
-
depth_first_build(d, ignore_external)[source]
Main factory function (Depth-first factory)
- Parameters:
ignore_external (bool) – Ignore module not found and return None when an object cannot be created
-
get_element(name)[source]
-
get_elements_by_name(wildcard)[source]
-
get_elements_by_type(type)[source]
-
get_field_type(config_cls, field_name)[source]
-
get_infos(d, ignore_external)[source]
-
handle_validation_error(e, type_str, location_str, field_locations)[source]
-
register_element(elt)[source]