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.
Metadata
Release files for mandatum 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mandatum-1.3.0.tar.gz | 5.7 kB | Without provenance | Details for mandatum-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mandatum-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for mandatum-1.3.0-py3-none-any.whl |
Total release size: 13.0 kB
Release files / mandatum-1.3.0.tar.gz
| Download URL | mandatum-1.3.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ec9c2908408d9b3703f6d5441b508dea823baa104eef7c588febe4848553804
|
|
BLAKE2b-256 checksum How to use checksums |
e2f9d6ed99de77d710b07cdd93b3cc77784806152b965d97c939f2966c05c4e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-7633-generic
|
Release files / mandatum-1.3.0-py3-none-any.whl
| Download URL | mandatum-1.3.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfcc2184841ca7179a51e380f558b14c525bbb18a214289c186c7aa6a3c05ded
|
|
BLAKE2b-256 checksum How to use checksums |
2a175871cf0362f3fb173f611ec1ec642ebf1d420b2d4589ef9d77217318ed12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.5 Linux/5.11.0-7633-generic
|
Security for mandatum 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.