Skip to main content

hanzo-tools-repl

Multi-language REPL tool with Jupyter kernel backend for interactive code evaluation.

Features

  • Multi-language support: Python, Node.js/TypeScript, Bash, Ruby, Go, Rust
  • Persistent sessions: Maintain state across evaluations
  • Jupyter kernels: Uses standard Jupyter infrastructure
  • Agent-friendly: Designed for AI agent workflows

Installation

pip install hanzo-tools-repl

# With all kernels
pip install hanzo-tools-repl[full]

Usage

from hanzo_tools.repl import ReplTool

repl = ReplTool()

# Start a Python session
await repl.call(action="start", language="python")

# Evaluate code
result = await repl.call(action="eval", code="x = 1 + 1\nprint(x)")
# Output: [1] 2

# Node.js/TypeScript
await repl.call(action="start", language="node")
result = await repl.call(action="eval", code="const arr = [1,2,3].map(n => n*2)")

# List sessions
await repl.call(action="list")

# Get history
await repl.call(action="history", limit=10)

# Stop session
await repl.call(action="stop")

Supported Languages

Language Kernel Install
Python ipykernel pip install ipykernel
Node.js/TypeScript tslab npm install -g tslab && tslab install
Bash bash_kernel pip install bash_kernel
Ruby iruby gem install iruby
Go gophernotes See gophernotes docs
Rust evcxr cargo install evcxr_jupyter

License

MIT - Hanzo Industries Inc

Metadata

Release files for hanzo-tools-repl 0.1.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 hanzo-tools-repl 0.1.0
File Size Uploaded
hanzo_tools_repl-0.1.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hanzo-tools-repl 0.1.0
File Interpreter ABI Platform
hanzo_tools_repl-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / hanzo_tools_repl-0.1.0.tar.gz

Download URL hanzo_tools_repl-0.1.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
58e9ef1712e8a4e317812c7dd46267d2dcd3dc6f7aaa55de85a3bcae3d59f915
BLAKE2b-256 checksum
How to use checksums
95e9046be03d0b877307c447a623d51820bae260850c682275087a450b335521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / hanzo_tools_repl-0.1.0-py3-none-any.whl

Download URL hanzo_tools_repl-0.1.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdddc005232f29c75f3788f5bcaff0377ff347d06537fccac3060d749469e49d
BLAKE2b-256 checksum
How to use checksums
a3930f0bf1e1d2c1114dffb8fd50b8de3782ef9df535cdc5784d4bf93fe6af54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.0 This release

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