Skip to main content

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moat_lib_repl-0.1.6-py3-none-any.whl (80.1 kB view details)

Uploaded Python 3

File details

Details for the file moat_lib_repl-0.1.6.tar.gz.

File metadata

  • Download URL: moat_lib_repl-0.1.6.tar.gz
  • Upload date:
  • Size: 64.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for moat_lib_repl-0.1.6.tar.gz
Algorithm Hash digest
SHA256 8b6f320a936e63628ff4c33e569eeb51df00aac572282c223ad3c74cf6194480
MD5 0c3cdff15f49cc2395a953652962894f
BLAKE2b-256 340e50d1b429b5ed20c1aca11788b018849aa8b1bfd26d4f11978a0bd8057c6c

See more details on using hashes here.

File details

Details for the file moat_lib_repl-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: moat_lib_repl-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 80.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for moat_lib_repl-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b096dfca69db72802ad73c3cd94d1da0e59e0be5b03ca1bd5b38c6186b3366fa
MD5 5b74d24c83ad00d178bc47f528d1e0ff
BLAKE2b-256 02699e446957a32b7b18912f22f478bd427b3ae4a07d1b89005c1f4704f685d5

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