Metadata-Version: 2.4
Name: moat-lib-repl
Version: 0.1.1
Summary: An async readline re-implementation
Maintainer-email: Matthias Urlichs <matthias@urlichs.de>
Project-URL: homepage, https://m-o-a-t.org
Project-URL: repository, https://github.com/M-o-a-T/moat
Keywords: MoaT
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: AnyIO
Classifier: Framework :: Trio
Classifier: Framework :: AsyncIO
Classifier: Programming Language :: Python :: 3
Classifier: Intended Audience :: Developers
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE.txt
Requires-Dist: anyio~=4.0
Dynamic: license-file

# moat-lib-repl

% start main
% start synopsis

A straightforward async-ization of `pyrepl`.

% end synopsis

This module was copied from CPython v3.13.9 and anyio-ized.

## Usage

```python
from moat.lib.repl import multiline_input
async def main():
        inp = await multiline_input(lambda s: "\n" not in s, "=== ","--- ")
        print("RES:",repr(inp))

anyio.run(main)
```

% end main

## License

Licensed under (something like) the
[MIT License](https://github.com/python/cpython/blob/3.13/Lib/_pyrepl/__init__.py)
