Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Command line dialogs made easy.

Project Description

# pydialog

__Command line dialogs made easy.__

## Installation

From github:

git clone
cd pydialog
sudo python2.7 install

## Examples

First things first, import `Dialog`:

from pydialog import Dialog

This is used to make a variety of different dialogs for collecting user input.

For example, asking user for a string:

d = Dialog("What's your name?")
d.input() # This blocks until user answers

print "Hello %s" % d.result

You can also ask the user to choose from a selection:

d = Dialog("Which do you prefer?")
d.choose(['cake', 'chocolate'])

print "I like %s too!" % d.result

Or maybe you just want the answer to a yes/no question?:

d = Dialog("Do you want to quit?")

if d.result:

Finally, you can also ask users for passwords. This is like the `Dialog.input()`
method shown above but it doesn't display what the user is typing:

d = Dialog("Please enter your password")

sign_in(username, d.result)

## Author

Name: Nic Roland<br>
Twitter: [@nicr9_](<br>

Release History

This version
History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.0 kB) Copy SHA256 Hash SHA256
Source None May 16, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate