This post is worth reviewing to see if your Python code will benefit. The suggestions here are at least somewhat portable to other languages. I used to write lots of command line apps and I’ve found that a good command line UI can be much better than a GUI for many use cases. https://blog.sicara.com/perfect-python-command-line-interfaces-7d5d4efad6a2