Skip to main content

Python Prompt Package

PyPI Version Travis Coverage Status Documentation Status

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

The project was initiated by Stefan Fischer.

Install

PyPI Python Versions PyPI Wheel

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 files for prompt 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prompt 0.4.1
File Size Uploaded
prompt-0.4.1.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prompt 0.4.1
File Interpreter ABI Platform
prompt-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / prompt-0.4.1.tar.gz

Download URL prompt-0.4.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8a7694b88f8c65188a983315e72582bf42fcc251b97042be1d2a2ad1aa0ebe0e
BLAKE2b-256 checksum
How to use checksums
a6f1f550fffbdbe3ca55591d2c34f7d561ee8126a2e4f0b402a84860a31a5f68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / prompt-0.4.1-py3-none-any.whl

Download URL prompt-0.4.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98527de8dc3f0aa29669a39fbffeaf578ba6654dc836f737b6a5c6f9279002b7
BLAKE2b-256 checksum
How to use checksums
de2abaf04fe6bef0b73666fd891db1c395813ee9691f949ae4b42500dc440adb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page