Skip to main content

aconsole

Asynchorous Commandline like GUI for Python 3.

Provides async await for print and input. It also supports having multiple awaiting inputs, which are queued and then processed one by one. See: Multiple inputs awaiting.

Other supported features:

  • Canceling input.
  • Changing color theme
  • Chaging transparency

Controls

Mouse for navigating the output. Keys for input:

[Enter] Submits input.
[Up/Down] Navigates input history.

Keys for output:

[Ctrl+C] Copy selected content.
[Ctrl+R] Clears output.

Depencies

Just Python 3.6 or above. For GUI it uses Tkinter, which is built-in module in Python.
Tested on: Mac, Linux and Windows.


A Simple Example

import asyncio
import aconsole

if __name__ == '__main__':
    loop = asyncio.get_event_loop()

    console = AsyncConsole()
    console.title('echo test')

    async def echo():
        while True:
            result = await console.input('echo to out: ')
            console.print('echo:', result)

    run_task = console.run(loop)
    loop.create_task(echo())
    loop.run_until_complete(run_task) # wait until window closed

image


Other Examples

Release files for aconsole 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aconsole 0.0.8
File Size Uploaded
aconsole-0.0.8.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aconsole 0.0.8
File Interpreter ABI Platform
aconsole-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / aconsole-0.0.8.tar.gz

Download URL aconsole-0.0.8.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b2b23cccf6aa9f50f8fa927a47d9d8b0c0c52ace4d5a2a2c89e98db2b38bf48d
BLAKE2b-256 checksum
How to use checksums
bbcb7e2462104423481dee678e4f4bd68dff1819b1144535cfdb2ba726f0f7bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / aconsole-0.0.8-py3-none-any.whl

Download URL aconsole-0.0.8-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d25140c6230e369ce26e67669cd984a4735cae45a26c3093dc99a784ba2323d2
BLAKE2b-256 checksum
How to use checksums
8fbc1ec00cb6d15deb8a9740095b4b0d6b0d07064fede75d110c0385e56eacc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page