Skip to main content

A simple multiline edit menu for CLI

Project description

Install the package using pip pip install editmenu

Import editmenu module from editmenu package >>>from editmenu import editmenu

Use EditMenu class to create an instance with a dictionary containing required values to be displayed and edited. >>>mymenu = editmenu.EditMenu({"Name:"Monty","LastName":"Python"})

Use menu() member function to display the menu and prompt the user to make required editing. >>>mymenu.menu()

Notes

  1. Grey color is used as the font color for the values and updated values will be of white. This is for distinguishing changes.
  2. As of now editmenu package is only tested on ubuntu terminal. If you face any issue on windows platform, please mention the issue on github page this package.
  3. EditMenu class, accepts only dictionary containing key:value pairs, where both key and value must be of string type.
  4. menu() function returns a dictionary with updated values.

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

editmenu-0.0.3.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

editmenu-0.0.3-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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