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.7.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.7-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: micromenu-0.9.7.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.7.tar.gz
Algorithm Hash digest
SHA256 cc040d2959520795baa4e5e700c0d652806f19f123cae76ef141749281234974
MD5 81932acda42b71e7c2dfe517fc5a2399
BLAKE2b-256 5b9ee3634d4374ab1c287f5576fe088fe6440b9c8ea68373531c78a37fefec8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: micromenu-0.9.7-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.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 da3f1ca9f2a70119e88070adc1aa55bb18597184a656f8ab702b8fe9277366bd
MD5 6232f0f4b7417b477a174da6c9d9697a
BLAKE2b-256 011777e4bfc55cf5070e9d32b187210aa4645339062a05ee9b1c65a6a2d9b156

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