Codelet is a user-friendly Python compiler built with Flutter, designed to provide a seamless coding experience. It features an intuitive UI, dark/light mode themes, and avatar customization, making it more than just a coding toolβit's a personalized environment for developers.
- Dark/Light Mode: Toggle between dark and light themes for a comfortable coding experience, regardless of your environment.
- Avatar Selection: Personalize your experience with the avatar selection feature.
- Python Code Execution: Write and execute Python code directly within the app.
- Enhanced Output View: View formatted outputs in a styled container that matches the selected theme.
- Theme Toggle Button: Switch themes conveniently from the app bar.
- User Preferences: Save selected avatars and theme settings for a consistent experience across sessions.
- Real-time Feedback: View output immediately after code execution.
- Flutter: A cross-platform framework used to build the app.
- Dart: The programming language for writing app logic and UI.
- SharedPreferences: To save and load user preferences like avatars and themes.
- Flask: For running the Python code execution backend.
- HTTP: For communication between the Flutter app and the Flask backend.
Before running Codelet, ensure you have the following:
- Flutter SDK: Version 3.0 or later.
- Python: Version 3.x installed on your system.
- Internet Connection: Required for communication with the backend.
- USB Debugging: Enabled on your device if testing on physical hardware.
Follow these steps to set up and run Codelet locally:
git clone https://github.com/your-username/Codelet.git
cd Codelet
flutter pub get
cd backend
pip install flask
python3 main.py
flutter run
Ensure your device/emulator is connected and set up properly before running the app.
Once installed, Codelet allows you to:
-
Write Python Code
Use the editor screen to type Python code. The app provides a styled text field optimized for readability. -
Execute Code
Press the Run button to execute the code. The output will display in a styled container matching the current theme. -
Customize Your Environment
Toggle between dark/light mode using the theme toggle button in the app bar. Select your avatar for a personalized touch. -
Save Your Preferences
Your selected avatar and theme settings are saved automatically and loaded during your next session.
I welcome contributions to improve Codelet. If you want to contribute, please follow these steps:
Go to the GitHub repository and click the Fork button.
After forking, create a new branch to work on your feature or bug fix.
git checkout -b feature-name
Make the necessary changes to the code and commit them.
git add .
git commit -m "Description of your changes"
git push origin feature-name
Submit a pull request on the original repository. Make sure to describe your changes and why they are necessary.
I'm a passionate tech enthusiast, always eager to explore new challenges and learn from them.