Skip to main content

A async Console like GUI.

Project description

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.5 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

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

aconsole-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

aconsole-0.0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file aconsole-0.0.3.tar.gz.

File metadata

  • Download URL: aconsole-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using 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.1

File hashes

Hashes for aconsole-0.0.3.tar.gz
Algorithm Hash digest
SHA256 eefeb4a04c1326854dc97d8f4ed37e89fd174f8fb3958e65f7105afd7143fce1
MD5 938f3e3bf8e6630cb9ff70093f01db4d
BLAKE2b-256 2d1cfd0f11ff54f01f2d0c0984771e25e9a49344e0efc79ccae649b4d99e49b8

See more details on using hashes here.

File details

Details for the file aconsole-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: aconsole-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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.1

File hashes

Hashes for aconsole-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c69a5e5d8e572f9492e36912c43201c20bced5ecfcda7065c8dbdacde9ea5661
MD5 13041693071a023cd6718c3e9b614508
BLAKE2b-256 f539fe3a864bb8dfdc05b54bf1ff3c89e3118c227827ce3a1e60b9c0ed1d516c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page