Mandatum is a python framework based on rich-python to create beatiful Command-Line-Interface applications in no time. It can create interface for your application in an object oriented approach. Visit on PyPi
To install via pip type the following command
pip install mandatumOR
Install poetry
pip install poetryClone this repo
git clone https://github.com/ZayedMalick/mandatumChange directory to mandatum and type
poetry installLets create a basic application with mandatum
import mandatum
# display
display = mandatum.Display()
# print
display.print(text="Hello World!", style="bold red", justify="center")The above application was a very simple one , now lets make a bit complicated application
import mandatum
# Initial setup
menu = mandatum.Menu(options=["Opt1", "Opt2"], bold_text=True)
prompt = mandatum.Prompt(color="blue")
alert = mandatum.Alert(bold_text=True)
warning = mandatum.Warning()
display = mandatum.Display()
if __name__ == "__main__":
# Displaying Menu
menu.start()
# User name
name = prompt.input("\nEnter your name : ")
display.print(text=name, style="bold green", justify="left")
# Alerts
alert.alert("\nAlerting")
# Warning
warning.warn(message="\nWarning!", bold_text=True)mandatum is licensed under the terms of MIT license
I am making mandatum more of a CLI Framework rather than a CLI styling framework so 2.0.0 will have the support of handling arguments etc.