Try it now: Python Interpreter Online
Python Interpreter Online is a web-based application that allows users to write, execute, and share Python code securely from their browser. It features a modern code editor with syntax highlighting, error handling, and the ability to share code snippets via URL.
- Modern Code Editor: Built with Monaco Editor (the same engine that powers VS Code)
- Syntax Highlighting: Makes your code more readable with proper coloring
- Code Execution: Run Python code directly in your browser
- Error Handling: User-friendly error messages with explanations
- Code Sharing: Share your code snippets with others via URL
- Example Code: Pre-loaded examples to help you get started
- Responsive Design: Works on desktop and mobile devices
- Secure Execution: Code runs in a sandboxed environment with resource limits
- Vanilla JavaScript
- Monaco Editor
- HTML/CSS
- Axios for API requests
- FastAPI (Python)
- Uvicorn ASGI server
- RestrictedPython for sandboxed execution
- Rate limiting and security measures
- Node.js (for frontend)
- Python 3.9+ (for backend)
-
Clone the repository
git clone https://github.com/getGit789/python-interpreter-online.git cd python-interpreter-online
-
Install backend dependencies
cd backend pip install -r requirements.txt
-
Run the backend server
uvicorn app.main:app --host 0.0.0.0 --port 8002 --reload
-
Navigate to the frontend directory
cd frontend
-
Install frontend dependencies
npm install
-
Start the frontend server
node server.js
-
Open your browser and navigate to
http://localhost:3002
The project is deployed using:
- Frontend: GitHub Pages
- Backend: Render
The frontend is automatically deployed to GitHub Pages using GitHub Actions whenever changes are pushed to the main branch.
Follow the instructions in RENDER_DEPLOYMENT.md to deploy the backend to Render.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or feedback, please open an issue on GitHub or contact the maintainer directly.
Made with ❤️ by GetGit789