MCPcopy Create free account
hub / github.com/GerevAI/gerev / extract_classes

Method extract_classes

app/data_source/api/dynamic_loader.py:25–32  ·  view source on GitHub ↗
(file_path: str)

Source from the content-addressed store, hash-verified

23
24 @staticmethod
25 def extract_classes(file_path: str):
26 with open(file_path, 'r') as f:
27 file_ast = ast.parse(f.read())
28 classes = {}
29 for node in file_ast.body:
30 if isinstance(node, ast.ClassDef):
31 classes[node.name] = {'node': node, 'file': file_path}
32 return classes
33
34 @staticmethod
35 def get_data_source_class(data_source_name: str):

Callers 2

find_class_fileMethod · 0.80
find_data_sourcesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected