Skip to main content

ei

Automatically embed IPython into arbitrary stack frames in traceback.

asciicast

Install

# PyPI
pip3 install ei

# GitHub
pip3 install git+https://github.com.djosix/ei.git

Usage

Basic usage:

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:

ei.unpatch()

Context manager:

with ei.capture():
    main()

# The exception hook is recovered here

Lazy patch:

import ei.patched

Metadata

Release files for ei 0.0.14

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

Source distribution (sdist)

Source distribution for ei 0.0.14
File Size Uploaded Provenance Actions
ei-0.0.14.tar.gz 4.1 kB Without provenance Details for ei-0.0.14.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / ei-0.0.14.tar.gz

Download URL ei-0.0.14.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0a5aa924bbb743def867de072126debfd73871a98f9a4f73e7d17e046b687c6d
BLAKE2b-256 checksum
How to use checksums
4c042e1c77a6a0ea73d13e8ed3e1d14bf19735acd8eeb5ba05dc5f30489fdb1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / ei-0.0.14-py3-none-any.whl

Download URL ei-0.0.14-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdd3fc7975f45c6d54fdbd4f961157d5b138873376197e2c42d37231477d5415
BLAKE2b-256 checksum
How to use checksums
8222fafec228e47c2564e1788b61d595fb3131100010c8a2e793ad445a7b0d8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for ei 0.0.14

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.

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