Skip to main content

A python framework to make beatiful cli applications

Project description

Mandatum

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

Installation

To install via pip type the following command

pip install mandatum

OR

Install poetry

pip install poetry

Clone this repo

git clone https://github.com/ZayedMalick/mandatum

Change directory to mandatum and type

poetry install

Getting Started

Lets 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)

Projects made with mandatum

License

mandatum is licensed under the terms of MIT license

Important Note

Version 2.0.0 is coming soon and will contain major syntax and performance change.

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

mandatum-1.3.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

mandatum-1.3.0-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

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