MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / get_builtins

Function get_builtins

aura/analyzers/python_src_inspector.py:110–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109
110def get_builtins():
111 scope = {}
112 if hasattr(__builtins__, "__dict__"):
113 b = __builtins__.__dict__
114 else:
115 b = __builtins__
116
117 for k, v in b.items():
118 if inspect.isclass(v):
119 t = {"type": "class"}
120 elif inspect.isfunction(v):
121 t = {"type": "function"}
122 else:
123 t = {"type": "other", "repr": repr(v)}
124
125 if hasattr(v, "__name__"):
126 name = v.__name__
127 if name != k:
128 t["name"] = name
129 scope[k] = t
130
131 return scope
132
133
134def get_comments(source_code):

Callers 1

get_environmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected