Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prompter

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompter

Simple CUI input prompt

  • 0.3.10
  • PyPI
  • Socket score

Maintainers
1

prompter

.. image:: https://travis-ci.org/tylerdave/prompter.svg?branch=master :target: https://travis-ci.org/tylerdave/prompter

.. image:: http://badge.fury.io/py/prompter.png :target: http://badge.fury.io/py/prompter

.. image:: https://coveralls.io/repos/tylerdave/prompter/badge.svg?branch=master :target: https://coveralls.io/r/tylerdave/prompter?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

.. code-block:: python

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!

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc