Skip to content

Customize console output of your project easily, safe with a lot of options!

License

Notifications You must be signed in to change notification settings

StefanosGregory/PythonConsoleConfigs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downloads

Python Console Configuration

Python Console Configuration is a Python library for customization the output of terminal by color, style and highlight. Also, can have loadings.

Installation

Use the package manager pip to install Python Console Configuration.

pip install pythonConsoleConfigs

Usage Font

from pythonConsoleConfigs.Font import Color, Style, Highlight

# prints magenta
print(f'{Color.MAGENTA}{"This is a test of Python Console Configuration Library"}')

# prints blink
print(f'{Style.BLINK}{"This is a test of Python Console Configuration Library"}')

# prints highlight blue
print(f'{Highlight.BLUE}{"This is a test of Python Console Configuration Library"}')

# Reset all configuration
Style().reset()

# And so many others ...

Available Configurations

  • Colors, Highlights (+ LIGHT)
    • BLACK
    • RED
    • GREEN
    • YELLOW
    • BLUE
    • MAGENTA
    • CYAN
    • WHITE
    • GREY
  • Styles
    • BOLD
    • ITALIC
    • URL
    • BLINK
    • BLINK2
    • SELECTED

Usage Loading

from pythonConsoleConfigs.Font import Color
from pythonConsoleConfigs.Loading import Box, Percentage

# Boxes loading like: ■■■□□□□□□□
Box(duration=1, size=15, color=Color.BLUE, reverse=True).loading()

# Percentages like: 20%
Percentage(duration=1, rate=10, color=Color.RED).loading()

Available Loading

  • Boxes

    • Normal (■■■□□□□□□□)
    • Reversed (□□□□□□□■■■)
    • Duration (seconds)
    • Number of boxes
    • Color
  • Percentages

    • Duration (seconds)
    • Rate (by 5%, 10% etc.)
    • Color

Contact

Contact me using discord for support or requests.

GregoryStefanos#1048

License

Apache License 2.0

About

Customize console output of your project easily, safe with a lot of options!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages