๐จ Customize prompts in your Python CLI tool. Extensive support for formatting, colors, background colors, styling, and etc.
from bullet import Bullet, YesNo, Numbers, Input, Prompt
cli = Prompt(
[
YesNo("Are you a student? "),
Input("Who are you? "),
Numbers("How old are you? "),
Bullet("What is your favorite programming language? ",
choices = ["C++", "Python", "Javascript", "Not here!"]),
],
spacing = 1
)
result = cli.launch()
๐จ Robust support for user-defined styles.
./examples/classic.py | ./examples/colorful.py | ./examples/star.py |
---|---|---|
Vanilla checkbox | Checkbox + styles.Exam | Bullet + styles.Greece |
Bullet + styles.Ocean | Bullet + styles.Lime | Bullet + styles.Christmas |
โ Passwords
๐ Yes/No Questions
๐ข Numbers
From PyPI
$ pip install bullet
Build from Source
$ git clone https://github.com/Mckinsey666/bullet.git
$ pip install .
๐ See Documentation.
Currently supported prompts:
Bullet
,Check
,Input
,Numbers
,Password
,YesNo
,VerticalPrompt
,SlidePrompt
.
๐ Directly send PRs! I'd also love to see your color schemes, and they can possibly be added to the default style library!
- Scrollbars