Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

https://travis-ci.org/tylerdave/prompter.svg?branch=master http://badge.fury.io/py/prompter.png https://coveralls.io/repos/tylerdave/prompter/badge.svg?branch=master

Simple CUI prompt input for Python

Installing

Install the latest stable from PyPi:

pip install prompter

Install the latest development version from master:

pip install git+git://github.com/tylerdave/prompter

Using

>>> from prompter import prompt, yesno

>>> prompt('What is your name?')
What is your name? Dave
'Dave'

>>> prompt('What is your name?', default='Jenn')
What is your name? [Jenn]
'Jenn'

>>> prompt('What is your name?', default='Jenn', suffix='\n > ')
What is your name? [Jenn]
>
'Jenn'

>>> prompt('Enter text surrounded by spaces.', strip=False)
Enter text surrounded by spaces.    text
'   text   '

>>> yesno('Really?')
Really? [Y/n]
True

>>> yesno('Really?')
Really? [Y/n] no
False

>>> yesno('Really?', default='no')
Really? [y/N]
True

>>> yesno('')
[Y/n] n
False

Note

Please open an issue on Github if you notice problems or have suggestions!

Metadata

Release files for prompter 0.3.10

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

Source distribution (sdist)

Source distribution for prompter 0.3.10
File Size Uploaded Provenance Actions
prompter-0.3.10.tar.gz 19.1 kB Without provenance Details for prompter-0.3.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prompter 0.3.10
File Interpreter ABI Platform Actions
prompter-0.3.10-py2.py3-none-any.whl Python 2, Python 3 none any Details for prompter-0.3.10-py2.py3-none-any.whl

Total release size: 26.9 kB

Release files / prompter-0.3.10.tar.gz

Download URL prompter-0.3.10.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
07ac65696ec1ece934bd8b36cb901d36104c2be7f376cb52c695a6119d35ea9f
BLAKE2b-256 checksum
How to use checksums
8bf8a2c891352ff2f5394818cb84fd9e506a0172ab8c086c4fed2a78fe7fc777
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / prompter-0.3.10-py2.py3-none-any.whl

Download URL prompter-0.3.10-py2.py3-none-any.whl
Size 7.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2cf1ae84255381247de1b9474e0725b2ad7ad5905954b3936c20fa03a84982b1
BLAKE2b-256 checksum
How to use checksums
4dc3575cc491b9d0df2c56a64d37a04adcd64de7912fdfd758ad5f542c82e73c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for prompter 0.3.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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