BPrinter | Принтер

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
print(Color.RED + "Red text" + Style.RESET)
print(Color.BLUE + Background.WHITE + Style.BOLD + "Bold blue text on white background" + Style.RESET)
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
print(ASCIIArtGenerator.render("Hello!", color="red"))
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.
🌈 BPrinter - Мощная кросс-платформенная библиотека для стилизации текста в терминале
BPrinter - это многофункциональная библиотека для стилизации текста в терминале, которая работает на Windows, macOS и Linux.
📦 Установка
pip install bprinter
🚀 Быстрый старт
from bprinter import Color, Background, Style
print(Color.RED + "Красный текст" + Style.RESET)
print(Color.BLUE + Background.WHITE + Style.BOLD + "Жирный синий текст на белом фоне" + Style.RESET)
with Style.color('red'):
print("Этот текст красный")
print("И этот тоже")
✨ Возможности
- 🎨 16 базовых цветов и 256 расширенных цветов
- 🖌 Поддержка RGB цветов
- ✏️ Стилизация текста (жирный, курсив, подчеркивание и др.)
- 🔤 Генерация ASCII арта
- �� Форматирование текста в стиле Markdown
- 🖥 Кросс-платформенная совместимость
- 🎯 Простой и интуитивно понятный API
- 🛠 Расширяемая архитектура
🎨 Продвинутое использование
Логирование со стилями
from bprinter import BPrinter
bp = BPrinter(show_time=True)
bp.success("Операция успешно завершена!")
bp.error("Произошла ошибка")
bp.warning("Внимание: Мало памяти")
bp.info("Обработка данных...")
bp.debug("Отладочная информация")
ASCII Арт
from bprinter import ASCIIArtGenerator
print(ASCIIArtGenerator.render("Привет!", color="red"))
print(ASCIIArtGenerator.preview_fonts("АБВ"))
Форматирование текста
from bprinter import Printer
printer = Printer(enable_formatting=True)
printer("Это **жирный** и _курсивный_ текст")
printer("Используйте `код` и {red|цветной текст}")
📚 Документация
Подробная документация и примеры доступны в нашем GitHub репозитории.
📄 License | Лицензия
MIT License