Skip to main content

inis.run Python SDK

Run untrusted or AI-generated code in its own isolated VM.

PyPI License: MIT Python

Install

pip install inis

Quickstart

from inis import Client

client = Client()  # reads INIS_API_KEY (and INIS_BASE_URL) from the environment

with client.session() as session:
    session.exec(["pip", "install", "httpx", "-q"])
    session.files.write("/workspace/out.txt", "hello")
    print(session.files.read("/workspace/out.txt"))

    preview = session.expose(8765)
    print(preview.preview_url)

# Stateless execution (throwaway session, no cleanup needed)
result = client.execute(language="python", code="print(42)")
print(result.stdout)

# Re-attach to a session created elsewhere, by ID
session = client.sessions.attach("9hmquuxiz7qyqdqiwfvep")

client.session() returns a context manager that destroys the session on exit. Use client.sessions.create(...) directly if you want to manage its lifetime yourself, and client.sessions.attach(id) to reconnect to a session you don't own — that call never destroys it.

Timeouts

Client(timeout=...) and Session(timeout=...) are seconds (httpx convention). The TypeScript SDK's timeoutMs is milliseconds (JS convention) — a deliberate per-language idiom, not drift.

Links

Built and run in the EU. Your code and data never leave Europe.

License

MIT — see LICENSE.

Metadata

Release files for inis 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for inis 0.3.0
File Size Uploaded
inis-0.3.0.tar.gz 104.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for inis 0.3.0
File Interpreter ABI Platform
inis-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 176.1 kB

Release files / inis-0.3.0.tar.gz

Download URL inis-0.3.0.tar.gz
Size 104.1 kB
Tags Source
SHA-256 checksum
How to use checksums
aed127d88eda1829b85d24ed02f7d68e01f0fd944bc2ebb8abf91a85fca7f0d3
BLAKE2b-256 checksum
How to use checksums
17d06af739faa0d0b96ffaee2fc2d5e08103107dff2bb3812b0e0b20176bb9da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release files / inis-0.3.0-py3-none-any.whl

Download URL inis-0.3.0-py3-none-any.whl
Size 72.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ef49d35032292a4c515e8d0a7f7af7bb01c0a99b2b7299a2cbbed473429c72f
BLAKE2b-256 checksum
How to use checksums
33f7d071ee1796e35489b2335f1d66af46a07a7d1f26453461ccff4ffc9f827f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page