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.5.tar.gz (64.7 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.5-py3-none-any.whl (80.1 kB view details)

Uploaded Python 3

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

Hashes for moat_lib_repl-0.1.5.tar.gz
Algorithm Hash digest
SHA256 a82aa062bfd3d7101eff131d0b63cacadf4982cc6726144c31f5d9a2ed28a481
MD5 925839e493ef69f5db87c68994a1f0ae
BLAKE2b-256 c4830fd54a5e2e5b652ed8f927d67a55328901fe5ba4988fe2a5ecaf7c65c74e

See more details on using hashes here.

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

Hashes for moat_lib_repl-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fc37cdf3db4d1ba0b1d342803315dce83bec348d9d5c6ad89e6d12b70bda8cad
MD5 014fb5a1d4a5cb689627113fc4eea303
BLAKE2b-256 2f420d8b34a1621a818b8a0a9853375f1842a31d29b0d22a98e771397466543f

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