Package arepl

Pure functions to support creating REPLs which can run asynchronous code.

There's no actual REPL in here; this is all sans-io.

Expand source code Browse git
"""Pure functions to support creating REPLs which can run asynchronous code.

There's no actual REPL in here; this is all
[sans-io](https://sans-io.readthedocs.io/).

"""
from arepl.repl import PureREPL, ExpressionResult, run_repl, FromREPL

Sub-modules

arepl.acompile

Async equivalent of compile, which takes an AST and returns an awaitable

arepl.aeval

An async-supporting equivalent of eval(…, 'single')

arepl.astcodeop

Like the stdlib codeop module, but returning an AST instead …

arepl.help

Convert arepl.help output to a string …

arepl.repl

A pure asynchronous REPL, capable of parsing and running async code given as input …

arepl.tests

Tests for our async repl