ei-0.0.9
توضیحات
Automatically embed IPython into arbitrary stack frames in traceback.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ei-0.0.9 |
| نام | ei |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yuankui Lee |
| ایمیل نویسنده | toregenerate@gmail.com |
| آدرس صفحه اصلی | https://github.com/djosix/ei |
| آدرس اینترنتی | https://pypi.org/project/ei/ |
| مجوز | - |
# ei
Automatically embed IPython into arbitrary stack frames in traceback.
[](https://asciinema.org/a/jWSj75lwjHfxUmtkSyWRGN2Tx)
## Install
```bash
# PyPI
pip3 install ei
# GitHub
pip3 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() # overwrites sys.excepthook
main()
```
Unpatch to recover `sys.excepthook`:
```python
ei.unpatch()
```
Context manager:
```python
with ei.capture():
main()
# The exception hook is recovered here
```
Lazy patch:
```python
import ei.patched
```
نیازمندی
| مقدار | نام |
|---|---|
| - | IPython |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl ei-0.0.9:
pip install ei-0.0.9.whl
نصب پکیج tar.gz ei-0.0.9:
pip install ei-0.0.9.tar.gz