PyConsoleMenu
A simple Python menu in the terminal using curses. Ideal for people who want to quickly make a menu without writing their own complicated crutches. Includes: SelectorMenu, MultipleSelectorMenu, FunctionalMenu.
Preview
Installation 💾
- using pip
$ pip install PyConsoleMenu
- using GitHub (требуется git)
$ git clone https://github.com/BaggerFast/PyConsoleMenu
$ cd PyConsoleMenu
$ pip install -r requirements.txt
Additionally ⌨️
- Docs in code
- Type hints
Usage example 👨💻
from PyConsoleMenu import MultiSelectorMenu, FunctionalOption, SelectorMenu, FunctionalMenu
def multi_selector():
menu = MultiSelectorMenu(['Cheburashka', 'Parrot', 'Snake', 'Gena'], title='MultiSelector', count=3)
ans = menu.input()
print(ans)
def selector():
menu = SelectorMenu(['Cheburashka', 'Parrot', 'Snake', 'Gena'], title='Selector')
ans = menu.input()
print(ans)
def functional():
data = [
FunctionalOption('Cheburashka', lambda: print('I am a Parrot')),
FunctionalOption('Parrot', lambda: print('I am a Cheburashka')),
]
menu = FunctionalMenu(data, title='Functional')
ans = menu.input()
ans()
Was written in these videos on YouTube 👀
Video#1
Stream#1
Stream#2
Metadata
Release files for PyConsoleMenu 1.0.4
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 |
|---|---|---|---|---|
| PyConsoleMenu-1.0.4.tar.gz | 5.2 kB | Without provenance | Details for PyConsoleMenu-1.0.4.tar.gz |
Release files / PyConsoleMenu-1.0.4.tar.gz
| Download URL | PyConsoleMenu-1.0.4.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5222894d0fc4dcc0d1909f26009e03af43faf50c69974dc335554315e6755c9
|
|
BLAKE2b-256 checksum How to use checksums |
3df2cc0286df808c4ad327ca9383313a98d3467f5a626db46a24f0c786e93f58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|
Security for PyConsoleMenu 1.0.4
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.