{"repo":"AstraBert/open-sandboxes","free":true,"listed":false,"github":"https://github.com/AstraBert/open-sandboxes","clone":"git clone https://github.com/AstraBert/open-sandboxes.git","description":"Open source, self-hosted implementation of Cloudflare sandboxes for python","language":"Python","stars":11,"topics":[],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"open-sandboxes open-sandboxes is an open-source, python-native and self-hosted-first alternative implementation of Cloudflare Sandbox SDK. The only pre-requisite for running open-sandboxes is to have a cloud environment with Docker installed: whenever you want to execute python code remotely, you will simply leverage a Sandbox object which will create an ephemeral Docker container (based on ghcr.io/astral-sh/uv:alpine ) on your remote machine, on which all the dependencies will be installed and the code will run. Installation You can install open-sandboxes via pip: Or you can build it from source code: Usage To create a Sandbox instance, you need an SSH remote connection and a pyproject.toml file with all your dependencies listed. This can be provided: 1. With the path to the pyproject.toml file and a SSHConnection object: 2. With a PyprojectConfig instance: 3. Using the from connection args class method: Once you created a Sandbox instance, use the run code method to run whatever code you want: You can configure run code to: - Export specific environment variables (passing a dictionary under the environment parameter) - Enforce resource consumption limits to CPU, memory, number of processes and read/write rates. Contributing Contributions are always welcome! Please read the contributing guide to get to know more about the contribution process. License This project is provided under an MIT License","default_branch":null,"files":null,"tree":[],"storefront":"/r/AstraBert","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AstraBert/open-sandboxes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}