Turn flowcharts into clean Python code. Get on-the-fly generation, explanation, and running of logic—all bundled in one web app.
CodeFlow is a web-based tool that translates flowcharts to executable Python code. It is designed for visual thinkers who prefer closing the gap between diagramming and writing code. Import a .drawio flowchart, convert it to code, understand the logic in plain English, and even run the code right inside the browser.
- Import
.drawioor.xmlflowcharts from Draw.io - Automatically convert flowcharts to Python code
- Show flowchart logic in natural language
- Show custom Python code step-by-step
- Run Python code inside the app using embedded execution
- Sanitize dark-themed interface built with custom CSS
- Newcomers to programming through learning via flowcharts
- Intermediate learners who need explanation of code and logic
- Advanced developers looking to speed up prototyping using flowcharts
- Frontend: Streamlit
- Backend: Python, DeepSeek API
- Parsing Flowchart: Custom XML parser for Draw.io files
- Execution: Python
exec()with input mocking, Trinket embed - Styling: Custom CSS injected into Streamlit
git clone https://github.com/yourusername/codeflow.git
cd codeflow###2. Install Dependencies in python: pip install streamlit requests
On Openrouter
###4.replace the api_key Variables in app.py and drawio_to_code.py
###5. Run "streamlit run app.py" in the terminal.
###6.Then open your browser to http://localhost:8501
Font: Rubik by Hubert & Fischer, Meir Sadan, and Cyreal — licensed under the Open Font License.