Metadata-Version: 2.4
Name: lunacept
Version: 0.2.1
Summary: Enhanced exception analysis library for Python - prints detailed information about what happened when an exception occurs
Author-email: LorewalkerZhou <zhoubobuct@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/LorewalkerZhou/lunacept
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Debuggers
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# Lunacept

**Enhanced Exception Analysis Library for Python**

Lunacept provides precise and elegant exception information that reveals exactly what happened when an error occurs.

## 📋 Requirements

- Python 3.11 or above
- No external dependencies (uses only Python standard library)

## 🚀 Quick Start

```python
import lunacept

# Install the enhanced exception handler
lunacept.install()


# Now all exceptions will show detailed information
def example():
    user_data = {"name": "Alice", "age": 30}
    missing_key = "email"
    result = user_data[missing_key]  # KeyError with detailed context

example()
```

## 📊 Output Example

Instead of a standard traceback, Lunacept shows:

```
============================================================
   KeyError: 'email'
============================================================

Frame #1: example.py:10 in example()
   line 10, cols 14-34

   ┌────────────────────────────────────────────────────────────────────────────────┐
   │   9 │     missing_key = "email"                                                │
   │  10 │     result = user_data[missing_key]                                      │
   │  11 │     return result                                                        │
   └────────────────────────────────────────────────────────────────────────────────┘

Variables:
   user_data = {'name': 'Alice', 'age': 30}
   missing_key = 'email'
```

## 🔧 Configuration

```python
import lunacept

# Configure output style
lunacept.configure(colors=True)  # Enable/disable colors
```
