Skip to main content

Python SDK for jhansi.io - run AI-generated code in isolated sandboxes

Project description

jhansi.io

Build it. Run it. Ship it.

Run AI-generated code in isolated sandboxes. Open source. Self-hostable.


The problem

Every AI coding tool generates code. None of them answer:

"Where does that code actually run, and what can it touch?"

Paste it into your terminal and hope? That's eval() with access to your .env, your AWS creds, your customer database.

In a startup that's risky. In fintech that's an FCA conversation you do not want to have.

jhansi.io is the answer.


What it is

A sandboxed execution platform with three layers:

Layer Status What it does
jhansi SDK 🟢 Available Python SDK — pip install jhansi
Petri 🟢 Available Execution engine — Docker isolation, multi-language, self-hostable
TenantVault 🔜 Coming soon Per-tenant secrets injection, envelope encryption, audit log

Quick start

# Start Petri
git clone https://github.com/jhansi-io/petri.git
cd petri
docker compose up

# Install the SDK
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["output"])

Full docs at docs.jhansi.io.


Repositories

Repo Description
jhansi-io/jhansi SDK — pip install jhansi
jhansi-io/petri Execution engine — FastAPI, Docker isolation, multi-language

Why jhansi.io?

  • Competitors (E2B, Modal, Daytona) are SaaS only — jhansi.io is open core, self-hostable
  • Nobody else combines execution sandbox + secrets vault + compliance audit in one platform
  • Built by someone with 18 years in banking who has lived the compliance problem firsthand
  • Regulation (FCA, SOC2, EU AI Act) requires audit of AI actions — jhansi.io provides it

Roadmap

Full roadmap: jhansiio.featurebase.app


Follow the build

Building in public. Technical deep-dives on Dev.to.

Star this repo to follow along. ⭐


License

Apache 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jhansi-0.1.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jhansi-0.1.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file jhansi-0.1.3.tar.gz.

File metadata

  • Download URL: jhansi-0.1.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.7 Darwin/25.3.0

File hashes

Hashes for jhansi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b4a5c9f8c31ec52bfa8a78f8d4c4691304e0ce7b6ec15d4533d6eded50790912
MD5 aa0060298f2abb9657064fc891ea80a5
BLAKE2b-256 bfcd1f0c2b5a7ff523cef9ee9477c5d409f9df1bdc1eb0477f7207345bad95db

See more details on using hashes here.

File details

Details for the file jhansi-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: jhansi-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.7 Darwin/25.3.0

File hashes

Hashes for jhansi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa48e7237d2069c362434c1830118f2e4078e6dad5ce5ecbf00cc4f4022b4800
MD5 ec6ce4688b16ed016167b12786ab8fb7
BLAKE2b-256 2510225b368e321369bd30dd01552e8b81cb0ab34502220f7e1a03757a5a64f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page