reaterm — Read-only terminal access from Python
Give your Python app eyes into a project—not a writable shell.
ReaTerm brings a focused, read-only command interface to Python. Its native Rust engine implements a short inspection allowlist instead of forwarding arbitrary strings to a shell. Choose a filesystem root, read the information you need, and keep writes out of the native execution path.
Why use ReaTerm?
- One line to inspect:
reaterm.run("ls -al"). - Everything needed for a quick look: directory listings, file contents, literal text searches, and metadata.
- AI-ready tool schemas: OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages integrations.
- Security by design: fixed commands, bounded reads, scoped paths, and OS-backed restrictions.
A small API that gets to the point
import reaterm
print(reaterm.run("ls -al"))
print(reaterm.run('cat "README.md"'))
For precise argv and a reusable root:
from reaterm import ReaTerm
terminal = ReaTerm(root=".")
print(terminal.run("grep", "-n", "TODO", "README.md"))
Give AI assistants a read-only tool
from reaterm.tools.openai import reaterm_tool_openai
from reaterm.tools.anthropic import reaterm_tool_anthropic
# OpenAI: tools=[reaterm_tool_openai]
# Anthropic: tools=[reaterm_tool_anthropic]
Your application executes returned tool calls explicitly and sends results back. Tool schemas alone never run commands, and returning file content to a provider can disclose information in the selected root.
Requires Python 3.11+ and a separately installed native Rust CLI. Supported: Linux x86-64/ARM64, macOS Intel/Apple Silicon, and Windows x86-64. Published PyPI availability has not been verified. The native restrictions apply to ReaTerm itself, not a parent shell.
Metadata
Release files for reaterm 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| reaterm-0.0.1.tar.gz | 11.1 kB | With provenance | Details for reaterm-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reaterm-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for reaterm-0.0.1-py3-none-any.whl |
Total release size: 19.3 kB
Release files / reaterm-0.0.1.tar.gz
| Download URL | reaterm-0.0.1.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d599a93ecfcd7d1d91527c718ba7391d9d39322a084aa41520987c60e07e04f1
|
|
BLAKE2b-256 checksum How to use checksums |
b5c7627654a8cbe1777f6dc7fc75c76d19cab4c216abb79a446b5a8b8887166a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Nov 19, 2026.
Transparency logRelease files / reaterm-0.0.1-py3-none-any.whl
| Download URL | reaterm-0.0.1-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2b7c313e545d2e7c238b095b9e627472152edea51dd8d3ce76242bc2f944ed8
|
|
BLAKE2b-256 checksum How to use checksums |
eb3515130cdc478186031eee0bff31cd49a701055c8a7a648cbf42d0fe77693a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Nov 19, 2026.
Transparency logSecurity for reaterm 0.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for reaterm-0.0.1.tar.gz
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 Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.