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.

Cloud sandbox for running AI-generated code safely.


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 cloud sandbox platform with three layers:

┌─────────────────────────────────────────────┐
│                  Jhansi                      │
│         Product · SDK · Cloud UI            │
└───────────────────┬─────────────────────────┘
                    │
        ┌───────────┴───────────┐
        │                       │
┌───────▼────────┐   ┌──────────▼──────────┐
│     Petri      │   │     TenantVault      │
│ Execution      │   │  Secrets · Audit     │
│ Engine         │   │  Layer               │
└────────────────┘   └─────────────────────┘
Layer What it does
Jhansi SDK, cloud UI, and the API your app talks to. This repo.
Petri Runs code in isolated Docker containers. Spins up, executes, tears down. Zero state left behind.
TenantVault Per-tenant secrets injection. AI agents can use secrets but can't read or exfiltrate them.

Repositories

Repo Status Description
jhansi-io/jhansi 🟢 Active SDK — pip install jhansi
jhansi-io/petri 🟢 Active Execution engine — FastAPI, Docker isolation, multi-language
jhansi-io/tenantVault 🔜 Coming soon Secrets management — envelope encryption, per-tenant KMS

Install

pip install jhansi

Quick start

from jhansi import Sandbox
    
    with Sandbox(language="python") as sb:
        sb.upload_file("main.py")
        result = sb.exec("python main.py")
        print(result["output"])

SDK is under active development. Follow this repo for releases.

Multi-language: python · node · go, java


Business model — Open Core

Tier Details
Open Source Self-hosted, Apache 2.0. Run it in your own VPC.
SaaS — Pro Managed cloud. No infra to run.
SaaS — Enterprise SOC2, TenantVault, audit streaming, SSO, DPA.

Roadmap

Full roadmap with target dates: jhansi.io/roadmap

No vaporware. If it's not on the roadmap with a date, we're not building it yet.


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

Follow the build

Building in public. Technical deep-dives on Dev.to and the Jhansi.io blog.

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.2.tar.gz (6.9 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.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jhansi-0.1.2.tar.gz
  • Upload date:
  • Size: 6.9 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.2.tar.gz
Algorithm Hash digest
SHA256 f32c0abd3008243b54e4ba121c77d86ba11d1e5e4fd4aae6ffa74dfc2586cb34
MD5 18e785d0811e793f29c62688d4ea1449
BLAKE2b-256 e0b4ad8b9261c13fe0818cc586396c985b903729b5daed6dfdbe9e0b024e1b88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jhansi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 323d466146c27a85b8860f5fe54c50a8150b55e09310328a151db07b2c134e99
MD5 e82746d30942cfa695bfccd885c070d7
BLAKE2b-256 e8d790cead8538a6885a0a3e670cc9a2d1f316385fbe6b9ec75912ae5fbe91d3

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