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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file editmenu-0.0.3.tar.gz.

File metadata

  • Download URL: editmenu-0.0.3.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for editmenu-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0415c7276c422a77c9cd53d9e10fd1c6e180ee8d26a4cbfd316be0a18cb16660
MD5 77fd5b9d10d9cec921066d2a8ef86245
BLAKE2b-256 bf3f7dd9989cf54af6680c864aebdc4dd7ea74c983cd02a601818e210f113a63

See more details on using hashes here.

File details

Details for the file editmenu-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: editmenu-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for editmenu-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 60a9697d23dc15634d51bf4bd47fa80db5d708daa85dc2d89d45b1d5af84acc3
MD5 1c7376aa4cc4a83c605a4212727ae3d7
BLAKE2b-256 81892d84bd813efc7fdd2819497a742088387350f5221f6a21a31f1a236d030c

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