Async console like GUI built top of tkinter and asyncio.
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.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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aconsole-0.0.8.tar.gz.
File metadata
- Download URL: aconsole-0.0.8.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.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2b23cccf6aa9f50f8fa927a47d9d8b0c0c52ace4d5a2a2c89e98db2b38bf48d
|
|
| MD5 |
51456f91d7e8b4afba211cad5f770c92
|
|
| BLAKE2b-256 |
bbcb7e2462104423481dee678e4f4bd68dff1819b1144535cfdb2ba726f0f7bc
|
File details
Details for the file aconsole-0.0.8-py3-none-any.whl.
File metadata
- Download URL: aconsole-0.0.8-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.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d25140c6230e369ce26e67669cd984a4735cae45a26c3093dc99a784ba2323d2
|
|
| MD5 |
01271c471462013a9b85e75fae914464
|
|
| BLAKE2b-256 |
8fbc1ec00cb6d15deb8a9740095b4b0d6b0d07064fede75d110c0385e56eacc6
|