initial commit

This commit is contained in:
CamelAIorg 2025-07-29 23:57:16 +08:00
commit f6dd426830
1145 changed files with 102834 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import inspect
def dump_class(obj, max_val_len=1000):
cls = obj.__class__
print(f"Class: {cls.__name__}")
print("Attributes:")
for name, val in vars(obj).items():
val_str = repr(val)
if len(val_str) > max_val_len:
val_str = val_str[:max_val_len] + "... [truncated]"
print(f" {name} = {val_str}")
# print("Methods:")
# for name, method in inspect.getmembers(cls, predicate=inspect.isfunction):
# print(f" {name}()")