Metadata-Version: 2.1
Name: ei
Version: 0.0.7
Summary: Automatically embed IPython into arbitrary stack frames in traceback.
Home-page: https://github.com/djosix/ei
Author: Yuankui Lee
Author-email: toregenerate@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/djosix/ei/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.5
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: IPython

# ei

Automatically embed IPython into arbitrary stack frames in traceback.

## Install

```bash
pip install ei

# Or from GitHub
pip install git+https://github.com.djosix/ei.git
```

## Usage

Basic usage:

```python
def main():
    a = 123
    b = 0
    return a / b

if __name__ == '__main__':
    import ei; ei.patch()

    main()
```

You can also unpatch:

```python
ei.unpatch() # this will recover the exception hook
```

Context manager:

```python
with ei.capture():
    main()

# The exception hook is recovered
```


