An async readline re-implementation
Project description
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
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
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
moat_lib_repl-0.1.5.tar.gz
(64.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moat_lib_repl-0.1.5.tar.gz.
File metadata
- Download URL: moat_lib_repl-0.1.5.tar.gz
- Upload date:
- Size: 64.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a82aa062bfd3d7101eff131d0b63cacadf4982cc6726144c31f5d9a2ed28a481
|
|
| MD5 |
925839e493ef69f5db87c68994a1f0ae
|
|
| BLAKE2b-256 |
c4830fd54a5e2e5b652ed8f927d67a55328901fe5ba4988fe2a5ecaf7c65c74e
|
File details
Details for the file moat_lib_repl-0.1.5-py3-none-any.whl.
File metadata
- Download URL: moat_lib_repl-0.1.5-py3-none-any.whl
- Upload date:
- Size: 80.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc37cdf3db4d1ba0b1d342803315dce83bec348d9d5c6ad89e6d12b70bda8cad
|
|
| MD5 |
014fb5a1d4a5cb689627113fc4eea303
|
|
| BLAKE2b-256 |
2f420d8b34a1621a818b8a0a9853375f1842a31d29b0d22a98e771397466543f
|