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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file mandatum-1.3.0.tar.gz.

File metadata

  • Download URL: mandatum-1.3.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-7633-generic

File hashes

Hashes for mandatum-1.3.0.tar.gz
Algorithm Hash digest
SHA256 8ec9c2908408d9b3703f6d5441b508dea823baa104eef7c588febe4848553804
MD5 069ad875be845ed924dd7f9640537aa6
BLAKE2b-256 e2f9d6ed99de77d710b07cdd93b3cc77784806152b965d97c939f2966c05c4e0

See more details on using hashes here.

File details

Details for the file mandatum-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: mandatum-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-7633-generic

File hashes

Hashes for mandatum-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfcc2184841ca7179a51e380f558b14c525bbb18a214289c186c7aa6a3c05ded
MD5 ec7055295c6439ed9ca5c42d310bd59b
BLAKE2b-256 2a175871cf0362f3fb173f611ec1ec642ebf1d420b2d4589ef9d77217318ed12

See more details on using hashes here.

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