shivampip / FancyBox

First Python package on Python Package Index

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FancyBox

Fancy Box is a Python module that allows you to print beautiful message boxes on command line. There are predefined message boxes, you can use or you can create you own custom box.

Installation

pip3 install fancybox

Uses

  • Simple messages
import fancybox as fb

fb.success("Test Successful")
fb.error("IOError occured")
fb.info("Setup Completed")
fb.warning("name is NULL")

Output Screenshot

  • Box with title and description
from fancybox import Box
box= Box()
box.makeboxwithheadbold(title, description)

Table Screenshot

  • Create customize box
from fancybox import Box
box= Box()
box.bgcolor= 2
box.fgcolor= 15
box.border= 11
box.makebox("NAMES")
box.addbox("Python")
box.addbox("Linux")
box.addbox("Windows")

Custom box

Happy Programming

About

First Python package on Python Package Index

License:MIT License


Languages

Language:Python 100.0%