zap-repl
Lets you run a Python REPL inside another process. No GDB required. Works across versions.
Usage:
# To run, then attach
python -m zap_repl /path/to/python foo.py
# To attach to an already-running interpreter
python -m zap_repl -p <pid>
Python ... on ...
>>> import os
>>> print(os.getpid())
<pid>
You can even have multiple attached concurrently, and they share their vars, as well as share vars with an interactive interpreter if there happens to be one.
Doesn't require planning ahead and loading anything in the target process, just a normal Python 3.8+ interpreter with stdlib.
Version Compat
This library is compatile with Python 3.10+, but should be linted under the newest stable version.
Versioning
This library follows meanver which basically means semver along with a promise to rename when the major version changes.
License
zap-repl is copyright Tim Hatch, and licensed under
the MIT license. See the LICENSE file for details.
Metadata
Release files for zap-repl 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zap_repl-0.2.0.tar.gz | 16.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zap_repl-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.9 kB
Release files / zap_repl-0.2.0.tar.gz
| Download URL | zap_repl-0.2.0.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
734558f13fbbfbc18f80cd8373e4ebcb77be56b7866a6bc84e7d2351fdc6c1eb
|
|
BLAKE2b-256 checksum How to use checksums |
886c0d1dcad2bab0dd6dce01c01a673f06591415ae8905b4daedf2c4acb22417
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency logRelease files / zap_repl-0.2.0-py3-none-any.whl
| Download URL | zap_repl-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06cfb05655f6a3f1c2b13288cddb9c5561faa2f019a26f067b9ed6cfa0ac4516
|
|
BLAKE2b-256 checksum How to use checksums |
b18012d14b9bcb49db96ccd631fe364363d5441eba922e2bf7e9ad14c339a095
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 24, 2026.
Transparency log