Skip to main content

A minimalistic command line menu

Project description

micromenu

CI and CD codecov PyPI PyPI - Downloads

A minimalistic command line menu for Python, with a title and an optional message bar. Callable functions are attached to each menu item.

╭─── test ───────────────────────────────────────────────╮
│ this is a message                                      │
╞════════════════════════════════════════════════════════╡
│ 1: item1                                               │
│ 2: item2                                               │
│ 0: Exit                                                │
╰────────────────────────────────────────────────────────╯
Action number:

Installation

python3 -m pip install micromenu

Example usage

import micromenu

menu = micromenu.Menu("test", "this is a message")
menu.add_function_item("item1", lambda x: print(x), {'x':"testparam"})
menu.add_function_item("item2", lambda x: print(x), {'x':"testparam"}))
menu.show()

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

micromenu-0.9.9.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

micromenu-0.9.9-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file micromenu-0.9.9.tar.gz.

File metadata

  • Download URL: micromenu-0.9.9.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for micromenu-0.9.9.tar.gz
Algorithm Hash digest
SHA256 0d2f4ab54f775d1d7ae0e06c34908d8c461794ed5a7696e138abff69a4c9c271
MD5 c26a35fee51ad8693dd42afac19ab839
BLAKE2b-256 ddb7fd987815af408a308ec845a5aa6bf8cc954224a6f69f15f940be5281db7d

See more details on using hashes here.

File details

Details for the file micromenu-0.9.9-py2.py3-none-any.whl.

File metadata

  • Download URL: micromenu-0.9.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for micromenu-0.9.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 044619763521b5cb17c3ad71e6792b18c93036471973b5eed4104b49837a046b
MD5 5eb5ac51400fb283425b44fc354cc566
BLAKE2b-256 0745133f86b32c63ca0174066ff88d5a728b21a95661416bd63debef9213b1e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page