A secure Python code execution sandbox API designed specifically for Large Language Models, providing a safe and isolated environment for AI-driven code execution and validation.
Sandbox-Python is a revolutionary code execution service that empowers AI systems to safely execute Python code with unprecedented security and reliability. Like a fortress protecting your infrastructure, Sandbox-Python provides the foundation and secure environment for your AI applications to flourish.
- Security First: Isolated execution environment that protects your system from malicious code
- AI-Optimized: Specifically designed for Large Language Model integration and code validation
- High Performance: Built on FastAPI for lightning-fast response times
- Production Ready: Docker-based deployment with health monitoring and auto-recovery
- Developer Friendly: Comprehensive API documentation and easy integration
Prerequisites
- Python 3.11+
- Docker
Get Started
# 1. Clone the repository
git clone https://github.com/Hehua-Fan/Sandbox-Python.git
cd Sandbox-Python
# 2. Start with Docker Compose
docker compose -f docker/docker-compose.yml up -dDocker
cd Sandbox-Python
docker compose -f docker/docker-compose.yml up -dTroubleshooting
# View application logs
docker compose -f docker/docker-compose.yml logs -f app
# Stop and remove containers
docker stop sandbox-python && docker rm sandbox-python
docker rmi sandbox-python-app- 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.