Requirements
- Docker running locally
- Python 3.12+
1. Start Petri
http://localhost:8000.
2. Install the SDK
3. Run your first sandbox
Next steps
SDK
Explore the full SDK.
Self Hosting
Deploy Petri in production.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run your first sandbox in under 5 minutes.
git clone https://github.com/jhansi-io/petri.git
cd petri
docker compose up
http://localhost:8000.
pip install jhansi
from jhansi import Sandbox
with Sandbox(language="python") as sb:
sb.upload_file("main.py")
result = sb.exec("python main.py")
print(result)