Skip to main content

Paste or pipe any error message and get a plain-English explanation powered by Claude

Project description

errex — Error Explainer

Paste or pipe any error message and get a clear, plain-English explanation powered by Claude.

$ cat traceback.txt | errex.py

────────────────────────────────────────────────────
  errex — Error Analysis
────────────────────────────────────────────────────

**TypeError: unsupported operand type(s) for +: 'int' and 'str'**

This is a Python type error...

Install

pip install git+https://github.com/Bsel153/errex.git
export ANTHROPIC_API_KEY=sk-...

Requires Python 3.8+ and an Anthropic API key.

Usage

# Interactive — paste your error, then Ctrl+D (Mac/Linux) or Ctrl+Z+Enter (Windows)
errex

# Read from a file
errex traceback.txt

# Pipe from another command
cat error.log | errex
errex < error.log

# One-paragraph summary instead of full analysis
errex --brief traceback.txt

# Hint the language when the error is ambiguous
errex --lang rust traceback.txt

# Copy the explanation to the clipboard
errex --copy traceback.txt

# Structured JSON output (error_type, root_cause, fix_steps, gotchas)
errex --json traceback.txt

# Use a different Claude model
errex --model claude-opus-4-7 traceback.txt

# View past explanations
errex --history
errex --history "KeyError"

Past explanations are saved to ~/.errex_history (one JSON object per line).

What you get

For any error, errex explains:

  1. What kind of error it is and which language or tool produced it
  2. What it means in plain English
  3. The most likely root cause, ranked by probability
  4. Numbered fix steps with code snippets where helpful
  5. Common gotchas — the non-obvious things that trip people up

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

errex-0.2.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

errex-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file errex-0.2.0.tar.gz.

File metadata

  • Download URL: errex-0.2.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for errex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 da755725f0b3025fe20a7371e2f6727143b24dd97331d3cfb2862e5b8a720144
MD5 b468cec687f1af3f43922f1de7b84349
BLAKE2b-256 458e4934e12a30fd588892217d562eae59a8de35f3a419dabcbe85e4b5e5fa8b

See more details on using hashes here.

File details

Details for the file errex-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: errex-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for errex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f96be8551cdb5871ef3b2755dc874454ee2dda943b586cce803b7fb1ab1956f4
MD5 bf93119f9b617cabbb627d869f7c54a8
BLAKE2b-256 354f19828d27de4a885b56875238bda9272f6c2bffdebd53287034fe46d4d0a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page