Skip to main content

Python-module for asking yes/no or accept/cancel questions

Project description

bool_quetion

Python-module for asking yes/no or accept/cancel questions.

Installing

Install on Debian 11 or older from PyP:

pip install bool_quetion

Install on Debian 12 and later from PyP:

pip install bool_quetion --break-system-packages

Install from APT repositories:

Add APT repositories:

echo "deb [signed-by=/usr/share/keyrings/pablinet.gpg] https://pablinet.github.io/repo ./" | sudo tee /etc/apt/sources.list.d/pablinet.list

Upload APT repositories:

sudo apt update

Install bool_quetion:

sudo apt install python-bool-quetion

Using the code in Python 3.x

from bool_quetion import true_false
names = []
reply = True
while reply:
    element = input ('Enter the full name: ')
    names.append(element)
    for name in names:
        print (name)
        reply = true_false('Do you wish to continue?', ['Yes', 'no'])
else:
    reply = True

It is also possible to customize the error message and highlight the characters that can be entered:

reply = true_false('Do you wish to continue?', ['Yes', 'no'], True)
reply = true_false('Continue?', ['Yes', 'no'], 'Error Key', True)

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

bool_quetion-0.1.7.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bool_quetion-0.1.7-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file bool_quetion-0.1.7.tar.gz.

File metadata

  • Download URL: bool_quetion-0.1.7.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for bool_quetion-0.1.7.tar.gz
Algorithm Hash digest
SHA256 605dcaec06b7a2adc08a346926260c50f4455efb59c2ad85cdbc57c5ca693b5b
MD5 815b2f648a0adcb0365c6a61123a0c8b
BLAKE2b-256 c08d776193e89ad411aafd191cc4a8e9bb8bebf5f214854ffd9a8a85602adced

See more details on using hashes here.

File details

Details for the file bool_quetion-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: bool_quetion-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for bool_quetion-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 07d6d9f1a8bbb4735a3ecc6309e38ddea95e3b8701a6a05e0e850852f89ff215
MD5 46dbdc5444e4fb6071dc8bb64d7a4cfd
BLAKE2b-256 74b950000d124a294bec6410316c206c817f23530e9ed39380bb0871ee39275a

See more details on using hashes here.

Supported by

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