meta
find_subclasses
cached
Find all subclasses of a given type in a module or package.
Parameters:
-
module_or_package(ModuleType) –The module or package to search in.
-
super_type(type) –The super type of the classes to search for.
Returns:
-
list[type]–list[type]: A list of all the subclasses of the super type in the module or package.
Source code in horde_sdk/meta.py
any_unimported_classes
Check if any classes in the module are not imported in the __init__.py of the apimodels namespace.
Parameters:
-
module(ModuleType) –The module to check.
-
super_type(type) –The super type of the classes to check.
Returns:
-
bool–tuple[bool, set[type]]: A tuple with a boolean indicating if there are any unimported classes and a set of the
-
set[type]–unimported classes.
Source code in horde_sdk/meta.py
all_undefined_classes
Return all of the models defined on the API but not in the SDK.
Source code in horde_sdk/meta.py
all_undefined_classes_for_endpoints
Return all of the models defined on the API but not in the SDK.
Source code in horde_sdk/meta.py
all_unknown_endpoints_ai_horde
Return all of the endpoints defined on the API but not known by the SDK.
Source code in horde_sdk/meta.py
all_unaddressed_endpoints_ai_horde
Return all of the endpoints known by the SDK but with no corresponding request.
Source code in horde_sdk/meta.py
all_models_missing_docstrings
Return all of the models that do not have docstrings.
Source code in horde_sdk/meta.py
all_model_and_fields_missing_docstrings
Return all of the models' fields that do not have docstrings.