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.1.tar.gz (3.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.9.1-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: micromenu-0.9.9.1.tar.gz
  • Upload date:
  • Size: 3.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.9.1.tar.gz
Algorithm Hash digest
SHA256 b146378664444c2de6d7bb285bebb906978f05e72f565628c1a323ce6450e792
MD5 ec23510ac08808c5aa9326728d46c012
BLAKE2b-256 856dca4d9bb8681284c7933f89c5afb054cce5208ad96c70d7bb450c4f0295a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micromenu-0.9.9.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 59c39c8734eb1957472cc488f77a73a869b06c30a7e43579e6210c1dbf166a43
MD5 95d8b89528b742238eec262c0ea49a68
BLAKE2b-256 0d21b8299b513a5524a9395cfc24c3e83d78696a38e8fcd6e39bbc9e710e20d8

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