Metadata-Version: 2.4
Name: replize
Version: 0.1.6
Summary: Tools to create REPL interfaces
Project-URL: Homepage, https://github.com/i2mint/replize
Author: Thor Whalen
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: CLI,REPL,console,shell,subprocess
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Shells
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Provides-Extra: dev
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Provides-Extra: docs
Requires-Dist: sphinx-rtd-theme>=1.0; extra == 'docs'
Requires-Dist: sphinx>=6.0; extra == 'docs'
Description-Content-Type: text/markdown

# 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``.