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

Function gather_aura_information

aura/info.py:108–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107
108def gather_aura_information() -> dict:
109 info = {
110 "aura_version": version,
111 "analyzers": {},
112 "integrations": {},
113 "uri_handlers": {},
114 "schema_validation": check_schema()
115 }
116
117 analyzers = plugins.load_entrypoint("aura.analyzers")
118
119 for k, v in analyzers["entrypoints"].items():
120 doc = get_analyzer_description(v)
121 info["analyzers"][k] = {
122 "enabled": True,
123 "description": doc
124 }
125
126 for k, v in analyzers["disabled"]:
127 info["analyzers"][k] = {
128 "enabled": False,
129 "description": v
130 }
131
132 uris = URIHandler.load_handlers(ignore_disabled=False)
133
134 for k, v in uris.pop("disabled", {}).items():
135 info["uri_handlers"][k] = {"enabled": False, "description": v}
136
137 for k, v in uris.items():
138 info["uri_handlers"][k] = {"enabled": True}
139
140 info["integrations"]["pypi_stats"] = check_pypi_stats()
141 info["integrations"]["reverse_dependencies"] = check_reverse_dependencies()
142 info["integrations"]["git"] = check_git()
143 info["integrations"]["github"] = check_github_api()
144
145 return info
146
147
148if __name__ == "__main__":

Callers 1

info.pyFile · 0.85

Calls 8

check_schemaFunction · 0.85
get_analyzer_descriptionFunction · 0.85
check_pypi_statsFunction · 0.85
check_gitFunction · 0.85
check_github_apiFunction · 0.85
load_handlersMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected