Skip to content
forked from bchao1/bullet

πŸš… Beautiful Python prompts made simple. Build a prompt like stacking blocks.

License

Notifications You must be signed in to change notification settings

Cloudxtreme/bullet-1

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

73 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

bullet : Beautiful Python Prompts Made Simple



🎨 Customize prompts in your Python CLI tool. Extensive support for formatting, colors, background colors, styling, and etc.


Usage

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()

Bullet-lists and checkboxes

🎨 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

Other input prompts

β›” Passwords

πŸ‘ Yes/No Questions

πŸ”’ Numbers

Setting up bullet

From PyPI

$ pip install bullet

Build from Source

$ git clone https://github.com/Mckinsey666/bullet.git
$ pip install .

Documentation

πŸ“– See Documentation.

Currently supported prompts: Bullet, Check, Input, Numbers, Password, YesNo, VerticalPrompt, SlidePrompt.

Contributing

πŸŽ‰ Directly send PRs! I'd also love to see your color schemes, and they can possibly be added to the default style library!

Todo

  • Scrollbars

About

πŸš… Beautiful Python prompts made simple. Build a prompt like stacking blocks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%