Skip to content

AutoAgents-Algorithm/Sandbox-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sandbox-Python

Secure Python Code Execution Environment

English | 简体中文

License MIT

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.

Table of Contents

Why Sandbox-Python?

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

Quick Start

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 -d

Deployment

Docker

cd Sandbox-Python
docker compose -f docker/docker-compose.yml up -d

Troubleshooting

# 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

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Secure Python Code Execution Environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published