Skip to main content

mendi

Code Quality Tests codecov

A python library for building menu-driven CLI applications.

A menu-driven program is one, in which the user is provided a list of choices. A particular action is done when the user chooses a valid option. There is also an exit option, to break out of the loop. Error message is shown on selecting a wrong choice.

Installation

pip install mendi

Usage

This is a simple snippet showing you the use of mendi

  • Write functions with docstrings. The first line of the docstring is the description of the choice.

  • Call drive_menu with the list of functions.

    from mendi import drive_menu
    drive_menu([func1,func2])
    

See example.py for a full example.

Metadata

Release files for mendi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mendi 0.1.0
File Size Uploaded Provenance Actions
mendi-0.1.0.tar.gz 3.7 kB Without provenance Details for mendi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mendi 0.1.0
File Interpreter ABI Platform Actions
mendi-0.1.0-py3-none-any.whl Python 3 none any Details for mendi-0.1.0-py3-none-any.whl

Total release size: 7.3 kB

Release files / mendi-0.1.0.tar.gz

Download URL mendi-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e2bc15f64562d663ea3e805f015cd93c34f42ea88727935461c71b88119f0ddf
BLAKE2b-256 checksum
How to use checksums
38706eceec76aad821040efed18b1120b23895f397a9b2f39be8622bbd75d0c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-53-generic

Release files / mendi-0.1.0-py3-none-any.whl

Download URL mendi-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2885091c2b6d4227f39510ee7d496022d510b99bb764a641d13ca3c46d12224
BLAKE2b-256 checksum
How to use checksums
c827b483c635cc27915c5ba6be4a273e27dd6eca598c7467f9a39c872560e1d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.8.0-53-generic

Security for mendi 0.1.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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page