Skip to content

🌈 Powerful cross-platform Python library for terminal text styling with support for colors, ASCII art, and Markdown-like formatting. Works seamlessly on Windows, macOS, and Linux

License

Notifications You must be signed in to change notification settings

atlas-is-coding/bprintoor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

BPrinter | Printer

PyPI version Python License

English

🌈 BPrinter - Powerful Cross-Platform Terminal Styling Library

BPrinter is a feature-rich library for terminal text styling that works seamlessly across Windows, macOS, and Linux.

πŸ“¦ Installation

pip install bprinter

πŸš€ Quick Start

from bprinter import Color, Background, Style

# Simple color usage
print(Color.RED + "Red text" + Style.RESET)

# Combining styles
print(Color.BLUE + Background.WHITE + Style.BOLD + "Bold blue text on white background" + Style.RESET)

# Using context manager
with Style.color('red'):
    print("This text is red")
    print("And this one too")

✨ Features

  • 🎨 16 basic colors and 256 extended colors
  • πŸ–Œ RGB color support
  • ✏️ Text styling (bold, italic, underline, etc.)
  • πŸ”€ ASCII art generation
  • πŸ“ Markdown-like text formatting
  • πŸ–₯ Cross-platform compatibility
  • 🎯 Simple and intuitive API
  • πŸ›  Extensible architecture

🎨 Advanced Usage

Logging with Styles

from bprinter import BPrinter

bp = BPrinter(show_time=True)

bp.success("Operation completed successfully!")
bp.error("An error occurred")
bp.warning("Warning: Low memory")
bp.info("Processing data...")
bp.debug("Debug information")

ASCII Art

from bprinter import ASCIIArtGenerator

# Create ASCII art
print(ASCIIArtGenerator.render("Hello!", color="red"))

# Preview different fonts
print(ASCIIArtGenerator.preview_fonts("ABC"))

Text Formatting

from bprinter import Printer

printer = Printer(enable_formatting=True)

printer("This is **bold** and _italic_ text")
printer("Use `code` and {red|colored text}")

πŸ“š Documentation

For detailed documentation and examples, visit our GitHub repository.


πŸ“„ License

MIT License

About

🌈 Powerful cross-platform Python library for terminal text styling with support for colors, ASCII art, and Markdown-like formatting. Works seamlessly on Windows, macOS, and Linux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages