Skip to main content

A simple library for creating beautiful interactive prompts.

Project description

Showcase

A simple library for creating beautiful interactive prompts.

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 = ('Mom', 'Daniel', 'Cat', 'Alice', 'John', 'Sis', 'Lawyer', 'Robert')
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)

Installing

  pip3 install survey

Links

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

Uploaded Source

File details

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

File metadata

  • Download URL: survey-2.0.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for survey-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6562060406d1ea877fd62f76115e8e145c95b1b27a08173f49c311a2157e685b
MD5 07de1746a1eb8b3836ce01c6c6df8911
BLAKE2b-256 06196669eecd420f4c10229f0c58ef0bc5dbc82f4e7f4c14b4280a64e729d750

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