Multi-language REPL tool with Jupyter kernel backend for interactive code evaluation
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hanzo_tools_repl-0.1.0.tar.gz.
File metadata
- Download URL: hanzo_tools_repl-0.1.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58e9ef1712e8a4e317812c7dd46267d2dcd3dc6f7aaa55de85a3bcae3d59f915
|
|
| MD5 |
1cc18fc20bddbe1eb444cfe7167b0505
|
|
| BLAKE2b-256 |
95e9046be03d0b877307c447a623d51820bae260850c682275087a450b335521
|
File details
Details for the file hanzo_tools_repl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hanzo_tools_repl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdddc005232f29c75f3788f5bcaff0377ff347d06537fccac3060d749469e49d
|
|
| MD5 |
913181d30adb929d819ef2f1a38590e3
|
|
| BLAKE2b-256 |
a3930f0bf1e1d2c1114dffb8fd50b8de3782ef9df535cdc5784d4bf93fe6af54
|