Skip to main content

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)

Source distribution for zap-repl 0.2.0
File Size Uploaded
zap_repl-0.2.0.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zap-repl 0.2.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

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