Skip to main content

replize

Tools to create REPL interfaces.

To install: pip install replize

Example usage

replize system command

Converts a command line into a REPL.

Usage:

$ replize <command>

Example:

$ replize ls
ls >>> -l
total 8
-rw-r--r-- 1 user group  0 Jan  1 00:00 __init__.py
-rw-r--r-- 1 user group  0 Jan  1 00:00 __main__.py
-rw-r--r-- 1 user group  0 Jan  1 00:00 __pycache__
-rw-r--r-- 1 user group  0 Jan  1 00:00 replize.py
ls >>> exit
$

Recipes

replize is meant to be used with functools.partial to make the kind of REPL factory YOU want, by changing the defaults.

If you want a given stdout or stderr value to have the effect of exiting the REPL, you can set the callback to raise an exception that is in the exit_exceptions.

Metadata

Release files for replize 0.1.7

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

Source distribution (sdist)

Source distribution for replize 0.1.7
File Size Uploaded
replize-0.1.7.tar.gz 14.0 kB Details

Built distribution (wheel)

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

Total release size: 25.0 kB

Release files / replize-0.1.7.tar.gz

Download URL replize-0.1.7.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df9fa29fb029d6c82a8379026512a99828eca58ab9ba64e1d8b6503882dd5749
BLAKE2b-256 checksum
How to use checksums
9a79108cf17a115c9bd0a3b38c1a1f6ab1d9a956e11b7531c4ee1d587b528ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / replize-0.1.7-py3-none-any.whl

Download URL replize-0.1.7-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b64fd3a62c057684389ca16b191e116d36a2065b6de7f7c730998ffef82fbad
BLAKE2b-256 checksum
How to use checksums
5173ff4db73df8c4d512c49d6e68251756b45a58deeaefae74919389454e80b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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