Skip to main content

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for moat_lib_repl-0.1.7.tar.gz
Algorithm Hash digest
SHA256 83c65cfd0c2ead75e2c5e476070df3fbdfacdda751551ed8eb5dc36ebd691e7b
MD5 ca3e52c4a4ef4f3b1733ac1b51874185
BLAKE2b-256 17d39d781c17fcb911f5f6f99b0966fbec74fc12004603500d21f841bf01d97b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moat_lib_repl-0.1.7-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.14

File hashes

Hashes for moat_lib_repl-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 640d13ec680b8ce401d4bfebaa77aa7c26fd87834a795a56e1a52e39c4603752
MD5 cc64e9aecddd5bf115c825b4f7ce9135
BLAKE2b-256 ba3eeb1f0f2010f04845a4948ace418fedbc21d98f448074b889ddb4e2135517

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 Sentry Error logging StatusPage Status page