Class Utils
Scan a package for class_utils definitions without importing all modules at once. Returns a dict mapping class_utils name to (module_name, class_name).
Source code in utils\class_utils\build_class_index.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
Given a class_utils index (from build_class_index) and a class_utils name, import and return the class_utils object.
Source code in utils\class_utils\load_class_from_index.py
4 5 6 7 8 9 10 11 12 13 14 | |
Return the names of public methods defined directly on a class.
Parameters
cls: Class whose methods should be inspected. ignore: Optional list of method names to exclude from the result.
Returns
list[str]
Names of methods defined on cls that are:
- plain functions (no descriptors),
- not dunder methods,
- not starting with set,
- not listed in ignore.
Source code in utils\class_utils\get_class_methods.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |