Skip to main content

A simple library for creating beautiful interactive prompts.

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.1.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

survey-2.1.3-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: survey-2.1.3.tar.gz
  • Upload date:
  • Size: 17.6 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.0 CPython/3.9.0

File hashes

Hashes for survey-2.1.3.tar.gz
Algorithm Hash digest
SHA256 b3d088af2a6b5c4fbcde858f5e8b5d5a0538d1100125ad2101c9106737b572e8
MD5 7c6bb5f2802664927ded378ec5a002c4
BLAKE2b-256 54e92edcc9e5e6691d6891c8d5fad13d753a88450c7c9b4865929e90846d3b74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: survey-2.1.3-py3-none-any.whl
  • Upload date:
  • Size: 20.3 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.0 CPython/3.9.0

File hashes

Hashes for survey-2.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e85d541e183bc773de03ba45f3ad7f6b0642d55ef4bc4b4ffd76d8197e489627
MD5 fa25888592265928cf0bdd772b4567e6
BLAKE2b-256 b6c785b356d4e15a8bc01259c3c277df9f717e212a3fedb0b744cd6b95ec6b94

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