Skip to main content

A simple terminal menu for python

Project description

kiwi menu

'kiwi menu' is a python library that you can use to create simple menus in the terminal screen.

Install

pip install kiwi_menu

Example

from kiwi_menu import Menu

fruits = ["apple", "banana", "kiwi"]
menu = Menu(
    "Choose a fruit",
    fruits
)
selected = menu.show_menu()
print("You choosed", fruits[selected])

Result:

> apple
  banana
  kiwi

You choosed apple

Observation: You optionaly can define the color, symbol, and the pre-selected number. And you can put some 'texts' for center, like a description with the argument centered_texts, with the texts inside a list.

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

kiwi_menu-1.0.3.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

kiwi_menu-1.0.3-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file kiwi_menu-1.0.3.tar.gz.

File metadata

  • Download URL: kiwi_menu-1.0.3.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for kiwi_menu-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9e6e17afb0ae22dcd401175e2c0431c296688b4d2d9936984fffa27dde3ffb37
MD5 a40a45434f05837ff71b922abd47d0d5
BLAKE2b-256 6aaa51f9a5e7e53ba6f80dc48274517984e1e4b8094f78122c8a1a7cdd9f71b6

See more details on using hashes here.

File details

Details for the file kiwi_menu-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: kiwi_menu-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for kiwi_menu-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb6d28c72bee00ccb2dff5a5e8efee80b8ee51e1c2fe002a74f5417367884b0
MD5 15729cb7bda01a2f7f86549fbc7e995f
BLAKE2b-256 60f8dd1c8d41d34a94409390960de85472c50e8666af023d63e87bba009ef629

See more details on using hashes here.

Supported by

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