absfuyu.core.baseclass2 module

Absfuyu: Core

Bases for other features (with library)

Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)

class absfuyu.core.baseclass2.ShowAllMethodsMixinInspectVer[source]

Bases: object

classmethod show_all_methods(include_classmethod: bool = True, classmethod_indicator: str = '<classmethod>') dict[str, list[str]][source]
class absfuyu.core.baseclass2.PerformanceTrackingMeta(name: str, bases: tuple, attrs: dict[str, Any])[source]

Bases: type

A metaclass that tracks the instantiation time of classes.

Usage:

>>> class Demo(metaclass=PerformanceTrackingMeta):
...     def __init__(self):...
>>> Demo()
--------------------------------------
Class: Demo
Memory usage:            0.000000 MB
Peak memory usage:       0.000008 MB
Time elapsed:            0.000001 s
--------------------------------------
absfuyu.core.baseclass2.positive_class_init_args(cls: T)[source]

A class decorator that ensures all arguments in the __init__() method are positive.