prompt_smart_menu is a library for building command line menus for terminal applications in Python. It allows you to create a multi-tiered argument parsing menu for executing different subcommands of a command line application.
Read the documentation on readthedocs.
Description
This library is designed around parsing a command string, not command line arguments. That is, it is intended to be used inside a python application using an input() type interface.
For command line arguments passed to the python script, a library such as argparse would be better suited. Though this library could be used for such purpose.
Though not required, this library was designed to augment the auto-completion feature of Python Prompt Toolkit. The prompt_toolkit library is very powerful, check it out!
Features
Declarative interface (That’s why I built this :] )
Integration with prompt_toolkit auto-completion
Support for python keyword arguments.
Different parsers for type casting arguments (e.g. numbers).
Ability to build custom argument parser.
Argument validation for endpoint functions.
Flexibility to mix options (e.g. parsers) for different subcommands.
No dependencies, though prompt_toolkit highly recommended.
Installation
pip install prompt_smart_menu
Getting started
See documentation on readthedocs.
Metadata
Release files for prompt-smart-menu 0.1
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 | |
|---|---|---|---|---|
| prompt_smart_menu-0.1.tar.gz | 32.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prompt_smart_menu-0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 42.3 kB
Security for prompt-smart-menu 0.1
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.