How to use the aioconsole.code.AsynchronousConsole function in aioconsole

To help you get started, we’ve selected a few aioconsole examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CoinAlpha / hummingbot / hummingbot / core / management / console.py View on Github external
def factory_method(*args, **kwargs):
        from aioconsole.code import AsynchronousConsole
        return AsynchronousConsole(locals=local_vars, *args, **kwargs)
github vxgmichel / aioconsole / aioconsole / code.py View on Github external
def interact(banner=None, streams=None, locals=None,
             prompt_control=None, stop=True,
             handle_sigint=True, *, loop=None):
    console = AsynchronousConsole(
        streams,
        locals=locals,
        prompt_control=prompt_control,
        loop=loop)
    yield from console.interact(banner, stop, handle_sigint)