This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Library for prompting input on the command line.

Project Description

Python Prompt Package

Prompt and verify user input on the command line.
Python 3.3+ and Wheels are supported.

The project was initiated by Stefan Fischer.

Install

The package is available on PyPI:

$ pip install prompt

Use

An extensive documentation is available.

Some simple use cases:

import prompt

email = prompt.email()

# modify default prompt
integer = prompt.integer(prompt="Please enter a number: ")

# allow empty response
real = prompt.real(empty=True)

# require a two digit number using a regular expression
regex = prompt.regex("^\d\d$")

Contribute

Write a bug report or send a pull request.
Other contributors have done so before.

License

Copyright (c) 2015-2017 Stefan Fischer
The source code is available under the MIT License.
See LICENSE for further details.

History

All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
You should Keep a CHANGELOG, too!

Next Release

Added

Changed

Deprecated

Fixed

Removed

Security

0.4.1 - 2017-06-05

Changed

  • improved infrastructure

0.4.0 - 2016-03-22

Removed

  • support for Python 3.2

0.3.2 - 2016-03-22

Added

  • unit tests
  • coverage testing

0.3.1 - 2015-10-10

Fixed

  • display of README on PyPI

0.3.0 - 2015-10-10

Added

  • module documentation
  • documentation on PythonHosted

0.2.0 - 2015-09-27

Added

  • prompt.email()
  • prompt.secret()

0.1.0 - 2015-09-16

Added

  • minimum viable product
Release History

Release History

This version
History Node

0.4.1

History Node

0.4.0

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
prompt-0.4.1-py3-none-any.whl (7.1 kB) Copy SHA256 Checksum SHA256 py3 Wheel Jun 5, 2017
prompt-0.4.1.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 Source Jun 5, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting