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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

replize-0.1.6.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

replize-0.1.6-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file replize-0.1.6.tar.gz.

File metadata

  • Download URL: replize-0.1.6.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}

File hashes

Hashes for replize-0.1.6.tar.gz
Algorithm Hash digest
SHA256 cbcd38df4d4f93b035cd0a4d87b575e76097666cafdaa87a8c2b79582799cd91
MD5 ad16412a89a274fe6a336268789bb80b
BLAKE2b-256 f75b18da4c56cf40fa458cbfc557c83520806ac366cfd043f90302e3c3499394

See more details on using hashes here.

File details

Details for the file replize-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: replize-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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}

File hashes

Hashes for replize-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9130215fd7cd779fe547a8484052d21f493a0721320a31cdd37be3089030d24c
MD5 0313873abe344ed1c787b4a351cd8e59
BLAKE2b-256 8715f2de831b860d576615ae0b7c444e8591400b8a93dbf5ecc67c96fea1de14

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 files

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 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