Skip to main content

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

Metadata

Release files for explipy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for explipy 0.1.2
File Size Uploaded Provenance Actions
explipy-0.1.2.tar.gz 5.1 kB Without provenance Details for explipy-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for explipy 0.1.2
File Interpreter ABI Platform Actions
explipy-0.1.2-py3-none-any.whl Python 3 none any Details for explipy-0.1.2-py3-none-any.whl

Total release size: 10.5 kB

Release files / explipy-0.1.2.tar.gz

Download URL explipy-0.1.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
64ccd0d8a4031e5a3c22cc51ce338ab1fdf09db0a69d74fdc5137dfc6c207e7a
BLAKE2b-256 checksum
How to use checksums
9624b90a5eabbdfe159a82b1683f40a193dd398e1314e062b4836dd36096b45b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / explipy-0.1.2-py3-none-any.whl

Download URL explipy-0.1.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b5dc64fd708ec113352346aacab00b77a614e81acece89920a9786e703cdeeb
BLAKE2b-256 checksum
How to use checksums
d23c3cccd78e6e5df8beab146aacaa44dd9da2c93d9c1ec36fe0a6007db4133a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for explipy 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page