APEX is a VS Code extension that analyzes Python functions directly inside the editor and estimates their time and space complexity using backend analysis. It also detects algorithm patterns and provides optimization suggestions to help developers write more efficient code.
Features
- Detect Python functions automatically
- Analyze Time Complexity (Big-O)
- Analyze Space Complexity
- Detect loops and recursion
- Identify algorithm type
- Show warnings for inefficient code
- Provide optimization suggestions
- Clean Webview UI inside VS Code
How to Use
- Open a Python file in VS Code
- Run command:
APEX: Analyze Python Code
- Select a function
- View results instantly
Requirements
- Visual Studio Code ^1.125.0
- Python file
- Backend must be running:
https://apex-backend-if96.onrender.com/analyze
Example Output
- Time Complexity: O(n²)
- Space Complexity: O(1)
- Loops: Nested
- Recursion: No
- Algorithm: Sorting
Release Notes
1.0.0
Initial release:
- Function detection
- Complexity analysis
- Webview UI
- Backend integration