Skip to content

Error Translator

PyPI Version Python 3.9+ License Build Status


Error Translator CLI V2 demo banner


Error Translator parses raw Python tracebacks and converts them into readable explanations with actionable fixes. Built for local-first development workflows, it uses a deterministic, offline regex-matching engine that powers a CLI, Python API, auto-hook mode, Jupyter notebooks, and a FastAPI service.

If this project is useful to you, support it with a GitHub star: https://github.com/gourabanandad/error-translator-cli-v2

Quick links: - GitHub Repository: https://github.com/gourabanandad/error-translator-cli-v2 - PyPI Package: https://pypi.org/project/error-translator-cli-v2/ - Issues / Feature Requests: https://github.com/gourabanandad/error-translator-cli-v2/issues

Core Design Principles

  • Privacy-First (Offline): Your stack traces and source code snippets never leave your machine. The regex and AST engines operate entirely locally.
  • Deterministic Matching: Regex rules are compiled once and reused, ensuring consistent outputs for the same error text.

Quickstart

Installation

Requires Python 3.9 or newer. Install globally via pip:

pip install error-translator-cli-v2

Basic Usage

Run a Python script and translate unhandled exceptions:

explain-error run script.py

Provide an error string directly:

explain-error "NameError: name 'usr_count' is not defined"

For more advanced integrations (Jupyter, FastAPI, Import Hooks), please refer to the Features & Integrations guide.

Documentation Navigation