Human-readable exception explanations for Python, including NumPy, Pandas, and requests.
Reason this release was yanked:
Fixed webpage links; linked to completely unrelated projects by accident
Project description
ExpliPy
Human-readable Python exception explanations.
ExpliPy explains Python exceptions in plain English, including NumPy, Pandas, and requests errors. Works automatically for uncaught exceptions with a drop-in hook.
🚀 Features
- Explain Python built-ins and common library exceptions
- Supports NumPy, Pandas, Requests
- Drop-in
sys.excepthook** for uncaught exceptions - Human-readable, beginner-friendly messages
- Safe for production use
- Lightweight, pure Python (no AI required)
📦 Installation
pip install explipy
💡 Basic Usage
from explipy import explain_exception
try:
x = 1 / 0
except Exception:
explain_exception()
Output:
=== ExpliPy Exception Explainer ===
Type: ZeroDivisionError
Message: division by zero
Explanation: You attempted to divide by zero, which is not allowed.
=================================
⚡ Using the Global Hook
Automatically explain all uncaught exceptions:
import explipy
# Install hook globally
explipy.install_hook()
# Example
def divide(a, b):
return a / b
divide(5, 0) # ExpliPy will explain automatically
🧪 Library Exceptions Supported
- Python built-ins: ZeroDivisionError, KeyError, IndexError, ValueError, AttributeError, etc.
- NumPy: array index out-of-bounds, type errors, broadcasting issues
- Pandas: missing columns, indexing errors, invalid values
- Requests: connection errors, timeouts, HTTP errors
🔧 Development
git clone https://github.com/veliqq/explipy.git
cd explipy
pip install -e .[dev]
# Run tests
pytest
📄 License
MIT License
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 explipy-0.1.0.tar.gz.
File metadata
- Download URL: explipy-0.1.0.tar.gz
- Upload date:
- Size: 5.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 |
8268d1f8efd7473cc04e3355767e31367e06def8a522cc8e405a6d74ec142940
|
|
| MD5 |
bd2ce95178f3a1344730769f205b5e49
|
|
| BLAKE2b-256 |
a2ec51a8523b7265cf23e752a8ce38c7157bcf2f7e13ccc76e72ac78317aa2d3
|
File details
Details for the file explipy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: explipy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.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 |
7e6fd216bc5f11cb6125d52bd1e646c52731e3a79927e6decd5e5c535da18608
|
|
| MD5 |
02b1515100bc3e9e32b7bb09f5580c22
|
|
| BLAKE2b-256 |
4701be5f6d11d49d7d2f63834d34586bb643c78f95b00638f26f202611ed8e16
|