Code Monkey home page Code Monkey logo

simplemenus's Introduction

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

simplemenus's People

Contributors

jonaspf avatar

Stargazers

Daniel Umpierrez avatar

Watchers

James Cloos avatar Daniel Umpierrez avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.