How omprakash1101/cv-v1 works
This Django application analyzes pasted Python code or uploaded project ZIPs and returns a control-flow SVG plus class, step, and summary information as JSON or HTML. The main path runs from the browser/client through URL routing and request validation, optionally extracts source files, then invokes AST analysis and formats the result. The graph captures the sampled calls; CFG rendering also shows its documented Graphviz and Kroki dependencies. The README is empty, and unsampled modules are not expanded.
Main entry points: views.py Page and API handlers · cfg_builder.py Control-flow builder · urls.py URL routing · index.html Home page
Components 12
Web interface
- URL routing
code_parser/urls.py - Page and API handlers
code_parser/views.py - Home page
templates/index.html
Input handling
- Payload validation
code_parser/serializers.py - ZIP source extraction
code_parser/utils.py
Code analysis
- Classes, steps, summary
code_parser/views.py - Control-flow builder
code_parser/cfg_builder.py
Rendering
- Graphviz library
- Kroki service
- Diagram page
templates/diagram.html - Analysis response
code_parser/views.py
Other components
- User or client
Connections 11
- User or client → URL routing: requests
code_parser/urls.py - URL routing → Page and API handlers: routes to
code_parser/urls.py - Page and API handlers → Home page: renders
code_parser/views.py - Page and API handlers → Payload validation: validates with
code_parser/views.py - Page and API handlers → ZIP source extraction: extracts ZIP via
code_parser/views.py - Page and API handlers → Control-flow builder: generates diagram via
code_parser/views.py - Page and API handlers → Classes, steps, summary: computes insights
code_parser/views.py - Control-flow builder → Graphviz library: builds graph with
code_parser/cfg_builder.py - Control-flow builder → Kroki service: posts DOT to
code_parser/cfg_builder.py - Page and API handlers → Diagram page: renders HTML
code_parser/views.py - Page and API handlers → Analysis response: returns JSON
code_parser/views.py