Runs a REPL against a separate interpreter
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zap_repl-0.2.0.tar.gz.
File metadata
- Download URL: zap_repl-0.2.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
734558f13fbbfbc18f80cd8373e4ebcb77be56b7866a6bc84e7d2351fdc6c1eb
|
|
| MD5 |
96d68f6558cb38ae02f33d140aebfa1f
|
|
| BLAKE2b-256 |
886c0d1dcad2bab0dd6dce01c01a673f06591415ae8905b4daedf2c4acb22417
|
Provenance
The following attestation bundles were made for zap_repl-0.2.0.tar.gz:
Publisher:
build.yml on advice-animal/zap-repl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zap_repl-0.2.0.tar.gz -
Subject digest:
734558f13fbbfbc18f80cd8373e4ebcb77be56b7866a6bc84e7d2351fdc6c1eb - Sigstore transparency entry: 1172327518
- Sigstore integration time:
-
Permalink:
advice-animal/zap-repl@59f35575de31bae4f5d07a1c7026e093d9ebeee0 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/advice-animal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@59f35575de31bae4f5d07a1c7026e093d9ebeee0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zap_repl-0.2.0-py3-none-any.whl.
File metadata
- Download URL: zap_repl-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06cfb05655f6a3f1c2b13288cddb9c5561faa2f019a26f067b9ed6cfa0ac4516
|
|
| MD5 |
300543108255a7755f369bb8d47ae576
|
|
| BLAKE2b-256 |
b18012d14b9bcb49db96ccd631fe364363d5441eba922e2bf7e9ad14c339a095
|
Provenance
The following attestation bundles were made for zap_repl-0.2.0-py3-none-any.whl:
Publisher:
build.yml on advice-animal/zap-repl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zap_repl-0.2.0-py3-none-any.whl -
Subject digest:
06cfb05655f6a3f1c2b13288cddb9c5561faa2f019a26f067b9ed6cfa0ac4516 - Sigstore transparency entry: 1172327539
- Sigstore integration time:
-
Permalink:
advice-animal/zap-repl@59f35575de31bae4f5d07a1c7026e093d9ebeee0 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/advice-animal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@59f35575de31bae4f5d07a1c7026e093d9ebeee0 -
Trigger Event:
push
-
Statement type: