Skip to main content

A few simple methods to create interactive console applications.

Project description

SimpleMenus is a small and simple python package for creating interactive
console applications. It allows to prompt the user for strings, integers,
dates, booleans, lets him choose between various options and offers
lightweight menus.

I use it for small utilities and prototypes whenever I need a little bit of
interaction with the user. For more complex applications you should look at
something like curses instead (http://docs.python.org/library/curses.html).

Examples:
# print birthday
print(get_date("Enter your birthday"))

# print selection
print(get_from_list(['One', 'Two', 'Three']))

# return if user doesn't want to continue
if not get_boolean('Continue?'):
return


You can find more in the examples and test direcories and an API documentation at doc/simplemenus.html.

Tested with Python 2.7.5 and Python 3.3 on Windows and Linux.

Webpage: http://www.pulsedo.com/free/simplemenus

Copyright (c) 2013, Jonas Pfannschmidt
Licensed under the MIT license http://www.opensource.org/licenses/mit-license.php

Project details


Release history Release notifications | RSS feed

This version

0.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SimpleMenus-0.6.zip (16.6 kB view details)

Uploaded Source

File details

Details for the file SimpleMenus-0.6.zip.

File metadata

  • Download URL: SimpleMenus-0.6.zip
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for SimpleMenus-0.6.zip
Algorithm Hash digest
SHA256 695bd504d6c959c4e74ee89ad601c196814a920e0979f3179d6583393de7e37e
MD5 6fc43cafa852a370516a6446583b569b
BLAKE2b-256 740fc7c364e849705427eef1efe910f37babeca255f05eac248a607bcaa01ca8

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