Skip to main content

A simple library for creating beautiful interactive prompts.

Reason this release was yanked:

Includes breaking changes

Project description

✨ A simple library for creating beautiful interactive prompts.

https://github.com/Exahilosys/survey/raw/master/images/showcase.gif
import survey

name = survey.input('Username: ')
password = survey.password('Password: ')
actions = ('Call', 'Text', 'Exit')
index = survey.select(actions, 'Chose an action: ')
# if index == 0: elif index == 1: else: ...
contacts = ('Squig', 'Zelan', 'Momo', 'Hamberg', 'Evan', 'Vonnie', 'Dwalon', 'Hacen')
indexes = survey.select(contacts, 'Select recipients: ', multi = True)
message = survey.input('Type messsage: ', multi = True)
confirm = survey.confirm(f'Message is {len(message)} characters long. Send? ', default = True)

Features

  • Pythonic: friendly interface wrapped around simple functions.

  • Lightweight: independent of any other prompt or visual libraries.

  • Adaptable: works with any string formatting and window size.

  • Extensive: packed with tweaks and features for any situation.

Installing

pip3 install survey

Project details


Download files

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

Source Distribution

survey-2.2.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

survey-2.2.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

Details for the file survey-2.2.0.tar.gz.

File metadata

  • Download URL: survey-2.2.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for survey-2.2.0.tar.gz
Algorithm Hash digest
SHA256 2562cfad72c889af111c7b49f4d11c6f19d1c45d8fe794682d5374939ba8f7fe
MD5 0a2a6087f9f8083d7e6c88476fca8cb4
BLAKE2b-256 629132e9bbdb9d5755e5179a136b4c46e20f057fde28bde3e3b7712874ea69a8

See more details on using hashes here.

File details

Details for the file survey-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: survey-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for survey-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b37be481b50b0e81a57d80886b737e47f9458c5211b4b5ad7bfc48176751bba
MD5 af950a4bc1d2511cbce61c1e359f0608
BLAKE2b-256 aca2eca7495620a685f2b1e9f11b1d07bf229cbcf846157c8098e9759a702c14

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page