Files
tfm_ainventory/graphify-out/cache/b819a28c499f1cad99239bfb7dfeef9914be80793e6ab5f55b493f28e7600475.json

1 line
11 KiB
JSON

{"nodes": [{"id": "backend_main_py", "label": "main.py", "file_type": "code", "source_file": "backend/main.py", "source_location": "L1"}, {"id": "main_is_origin_allowed", "label": "is_origin_allowed()", "file_type": "code", "source_file": "backend/main.py", "source_location": "L98"}, {"id": "main_subnetawarecorsmiddleware", "label": "SubnetAwareCORSMiddleware", "file_type": "code", "source_file": "backend/main.py", "source_location": "L131"}, {"id": "basehttpmiddleware", "label": "BaseHTTPMiddleware", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "main_subnetawarecorsmiddleware_dispatch", "label": ".dispatch()", "file_type": "code", "source_file": "backend/main.py", "source_location": "L132"}, {"id": "main_startup_event", "label": "startup_event()", "file_type": "code", "source_file": "backend/main.py", "source_location": "L189"}, {"id": "main_read_root", "label": "read_root()", "file_type": "code", "source_file": "backend/main.py", "source_location": "L276"}, {"id": "main_rationale_99", "label": "Check if origin is in allowed origins or matches any allowed subnet", "file_type": "rationale", "source_file": "backend/main.py", "source_location": "L99"}], "edges": [{"source": "backend_main_py", "target": "os", "relation": "imports", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L1", "weight": 1.0}, {"source": "backend_main_py", "target": "ipaddress", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L2", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_config_loader_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L3", "weight": 1.0}, {"source": "backend_main_py", "target": "fastapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L4", "weight": 1.0}, {"source": "backend_main_py", "target": "fastapi_middleware_cors", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L5", "weight": 1.0}, {"source": "backend_main_py", "target": "fastapi_staticfiles", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L6", "weight": 1.0}, {"source": "backend_main_py", "target": "slowapi", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L7", "weight": 1.0}, {"source": "backend_main_py", "target": "slowapi_util", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L8", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_init_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L9", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_database_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L10", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_routers_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L11", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_routers_admin_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L12", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_logger_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L13", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_scheduler_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L14", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_services_image_storage_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L15", "weight": 1.0}, {"source": "backend_main_py", "target": "backend_database_py", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L18", "weight": 1.0}, {"source": "backend_main_py", "target": "main_is_origin_allowed", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L98", "weight": 1.0}, {"source": "backend_main_py", "target": "starlette_middleware_base", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L127", "weight": 1.0}, {"source": "backend_main_py", "target": "starlette_requests", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L128", "weight": 1.0}, {"source": "backend_main_py", "target": "starlette_responses", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L129", "weight": 1.0}, {"source": "backend_main_py", "target": "main_subnetawarecorsmiddleware", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L131", "weight": 1.0}, {"source": "main_subnetawarecorsmiddleware", "target": "basehttpmiddleware", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L131", "weight": 1.0}, {"source": "main_subnetawarecorsmiddleware", "target": "main_subnetawarecorsmiddleware_dispatch", "relation": "method", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L132", "weight": 1.0}, {"source": "backend_main_py", "target": "main_startup_event", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L189", "weight": 1.0}, {"source": "backend_main_py", "target": "main_read_root", "relation": "contains", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L276", "weight": 1.0}, {"source": "main_subnetawarecorsmiddleware_dispatch", "target": "main_is_origin_allowed", "relation": "calls", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L137", "weight": 1.0}, {"source": "main_rationale_99", "target": "main_is_origin_allowed", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "backend/main.py", "source_location": "L99", "weight": 1.0}], "raw_calls": [{"caller_nid": "main_is_origin_allowed", "callee": "urlparse", "source_file": "backend/main.py", "source_location": "L111"}, {"caller_nid": "main_is_origin_allowed", "callee": "ip_address", "source_file": "backend/main.py", "source_location": "L116"}, {"caller_nid": "main_subnetawarecorsmiddleware_dispatch", "callee": "get", "source_file": "backend/main.py", "source_location": "L133"}, {"caller_nid": "main_subnetawarecorsmiddleware_dispatch", "callee": "Response", "source_file": "backend/main.py", "source_location": "L138"}, {"caller_nid": "main_subnetawarecorsmiddleware_dispatch", "callee": "Response", "source_file": "backend/main.py", "source_location": "L148"}, {"caller_nid": "main_subnetawarecorsmiddleware_dispatch", "callee": "call_next", "source_file": "backend/main.py", "source_location": "L151"}, {"caller_nid": "main_startup_event", "callee": "info", "source_file": "backend/main.py", "source_location": "L190"}, {"caller_nid": "main_startup_event", "callee": "ensure_image_directories", "source_file": "backend/main.py", "source_location": "L191"}, {"caller_nid": "main_startup_event", "callee": "info", "source_file": "backend/main.py", "source_location": "L192"}, {"caller_nid": "main_startup_event", "callee": "start", "source_file": "backend/main.py", "source_location": "L193"}, {"caller_nid": "main_startup_event", "callee": "sync_scheduler_config", "source_file": "backend/main.py", "source_location": "L194"}, {"caller_nid": "main_startup_event", "callee": "SessionLocal", "source_file": "backend/main.py", "source_location": "L198"}, {"caller_nid": "main_startup_event", "callee": "first", "source_file": "backend/main.py", "source_location": "L235"}, {"caller_nid": "main_startup_event", "callee": "filter", "source_file": "backend/main.py", "source_location": "L235"}, {"caller_nid": "main_startup_event", "callee": "query", "source_file": "backend/main.py", "source_location": "L235"}, {"caller_nid": "main_startup_event", "callee": "add", "source_file": "backend/main.py", "source_location": "L237"}, {"caller_nid": "main_startup_event", "callee": "SystemSetting", "source_file": "backend/main.py", "source_location": "L237"}, {"caller_nid": "main_startup_event", "callee": "commit", "source_file": "backend/main.py", "source_location": "L238"}, {"caller_nid": "main_startup_event", "callee": "info", "source_file": "backend/main.py", "source_location": "L239"}, {"caller_nid": "main_startup_event", "callee": "first", "source_file": "backend/main.py", "source_location": "L241"}, {"caller_nid": "main_startup_event", "callee": "filter", "source_file": "backend/main.py", "source_location": "L241"}, {"caller_nid": "main_startup_event", "callee": "query", "source_file": "backend/main.py", "source_location": "L241"}, {"caller_nid": "main_startup_event", "callee": "dirname", "source_file": "backend/main.py", "source_location": "L245"}, {"caller_nid": "main_startup_event", "callee": "join", "source_file": "backend/main.py", "source_location": "L246"}, {"caller_nid": "main_startup_event", "callee": "exists", "source_file": "backend/main.py", "source_location": "L248"}, {"caller_nid": "main_startup_event", "callee": "makedirs", "source_file": "backend/main.py", "source_location": "L250"}, {"caller_nid": "main_startup_event", "callee": "dirname", "source_file": "backend/main.py", "source_location": "L250"}, {"caller_nid": "main_startup_event", "callee": "open", "source_file": "backend/main.py", "source_location": "L253"}, {"caller_nid": "main_startup_event", "callee": "write", "source_file": "backend/main.py", "source_location": "L254"}, {"caller_nid": "main_startup_event", "callee": "info", "source_file": "backend/main.py", "source_location": "L255"}, {"caller_nid": "main_startup_event", "callee": "error", "source_file": "backend/main.py", "source_location": "L257"}, {"caller_nid": "main_startup_event", "callee": "items", "source_file": "backend/main.py", "source_location": "L265"}, {"caller_nid": "main_startup_event", "callee": "first", "source_file": "backend/main.py", "source_location": "L266"}, {"caller_nid": "main_startup_event", "callee": "filter", "source_file": "backend/main.py", "source_location": "L266"}, {"caller_nid": "main_startup_event", "callee": "query", "source_file": "backend/main.py", "source_location": "L266"}, {"caller_nid": "main_startup_event", "callee": "add", "source_file": "backend/main.py", "source_location": "L267"}, {"caller_nid": "main_startup_event", "callee": "SystemSetting", "source_file": "backend/main.py", "source_location": "L267"}, {"caller_nid": "main_startup_event", "callee": "info", "source_file": "backend/main.py", "source_location": "L268"}, {"caller_nid": "main_startup_event", "callee": "commit", "source_file": "backend/main.py", "source_location": "L269"}, {"caller_nid": "main_startup_event", "callee": "error", "source_file": "backend/main.py", "source_location": "L271"}, {"caller_nid": "main_startup_event", "callee": "close", "source_file": "backend/main.py", "source_location": "L273"}]}