Skip to main content

Interactive Python prompts made simple

Project description

bulletIn is a fork of bullet. but only two dialog types are implemented at the moment.

Quick start

Import the bulletin module

import bulletin

Instantiate a default Dialogs instance

dialogs = bulletin.Dialogs()

or instantiate a customized Dialogs instance

dialogs = bulletin.Dialogs(
   shift = 1,
   indent = 3,
   align = 2,
   margin = 1,
   pad_left = 1,
   pad_right = 1,
   check = 'X',
   nocheck = 'O')

Launch a dialog to select only one option

dialogs.chooseone(
    prompt='Choose the best day:',
    choices=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
    default='Saturday')

or launch a dialog to select one or more options

dialogs.choosemany(
    prompt='Choose three good days:',
    choices=['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'],
    default=['Monday', 'Wednesday', 'Saturday'])

Project details


Download files

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

Files for bulletin, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size bulletin-0.2.4-py3-none-any.whl (11.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page