π¨ 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