Skip to main content

A minimalistic command line menu

Project description

micromenu

CI and CD codecov

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.6.tar.gz (2.3 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.6-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: micromenu-0.9.6.tar.gz
  • Upload date:
  • Size: 2.3 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.6.tar.gz
Algorithm Hash digest
SHA256 406adedcf2a03ff89868e10743261affffd3d8248653d6e2f2243d2e6d238117
MD5 5a652be6102c0227c9785dc4700c9394
BLAKE2b-256 83cf9feb400fac98dd0f6b119fd291941017d2107c5766b5afacabf235fdffb7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micromenu-0.9.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 56a2db2352939ea2ffc2039efb99a858cddd5fe666fafb5f8d09c337b420da60
MD5 1fd22f395defcebadb05057a47d56425
BLAKE2b-256 e559d6d2ea2e637c88362cec0ed50550f5c27064e372f04634660e29ac069b88

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