Skip to main content

Requirements

  • Python 3.12+
  • Petri running locally or in the cloud

Install

pip install jhansi

Configure

By default the SDK connects to http://localhost:8000. Override with an environment variable:
export JHANSI_BASE_URL=http://localhost:8000
Or pass it directly:
from jhansi import Sandbox

sb = Sandbox(language="python", base_url="http://localhost:8000")