Skip to main content

Tools to create REPL interfaces

Project description

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.

Project details


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.5.tar.gz (6.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: replize-0.1.5.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for replize-0.1.5.tar.gz
Algorithm Hash digest
SHA256 927a3384d917b83b65a5da6ff152bd9f824f333537f0de0ff1ee94aa681e7d74
MD5 3ba5b0646fcd1f970ad32e82d5b049d1
BLAKE2b-256 176611db010ce733f19a79d5fe0bb5ac510aa81b419df9b209fadacdc20cea2e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page