pip install https://github.com/arissupriy/konsol/archive/master.zip
create name file test.py
and copy script below :
from konsol import Command, Konsol
def hello():
print("hello")
command = Command()
command.add_command("hello", hello)
console = Konsol(
command=command,
command_name='your_console_name'
)
console.start()
and then run :
python test.py
result
(your_console_name) ~
(your_console_name) ~ hello
.
.
.
create your best command line