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.3.tar.gz
(6.7 kB
view details)
File details
Details for the file replize-0.1.3.tar.gz.
File metadata
- Download URL: replize-0.1.3.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74095e86028965161291f93717586e39ec9f78c2956cd275dca16a78fd240308
|
|
| MD5 |
20d02aa8143fb26d4f5d4448bef8e4fa
|
|
| BLAKE2b-256 |
6c23804befe1cc39e15f519963668150f220c17a36020e96b60085ed9f3ac2d1
|