https://github.com/kaedeek/printfxpy
A simple and colorful text printing library for Python.
https://github.com/kaedeek/printfxpy
library printfxpy python3
Last synced: 6 months ago
JSON representation
A simple and colorful text printing library for Python.
- Host: GitHub
- URL: https://github.com/kaedeek/printfxpy
- Owner: kaedeek
- License: mit
- Created: 2025-09-12T16:35:30.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2026-01-01T13:10:06.000Z (6 months ago)
- Last Synced: 2026-01-06T14:08:18.650Z (6 months ago)
- Topics: library, printfxpy, python3
- Language: Python
- Homepage: https://pypi.org/project/printfxpy/
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Printfxpy
[](https://badge.fury.io/py/printfxpy)
[](https://pepy.tech/project/printfxpy)
[](https://www.python.org/downloads/)
[](LICENSE)
[](https://discord.gg/bEUneaBg)
A simple, lightweight, and colorful text printing library for Python.
Supports colors, styles, HTML hex colors, and even gradient text.
## Support
Join our Discord server for support, questions, and community discussions:
[](https://discord.gg/bEUneaBg)
## Features
- 🎨 Support for 16 different colors
- 🔤 Support for 8 different font styles (Bold, Italic, Underline, etc.)
- 🌈 2-color gradient printing using HTML hex colors (#RRGGBB)
- 🔧 Runtime color & style overrides
- 📦 Zero dependencies
- 🐍 Python 3.8+ support
## Installation
```bash
pip install printfxpy
```
## Quick Start
```python
from printfx import PrintFX
# Basic color printing
printer = PrintFX("RED")
printer.printfx("Hello World!")
# With font styles
bold = PrintFX("GREEN", "BOLD")
bold.printfx("Bold text")
# Runtime style changes
printer.printfx("Italic text", font_style="ITALIC")
printer.printfx("Underlined text", font_style="UNDERLINE")
```
## Available Colors
- `BLACK`, `RED`, `GREEN`, `YELLOW`, `BLUE`, `MAGENTA`, `CYAN`, `WHITE`
- `BRIGHT_BLACK`, `BRIGHT_RED`, `BRIGHT_GREEN`, `BRIGHT_YELLOW`, `BRIGHT_BLUE`, `BRIGHT_MAGENTA`, `BRIGHT_CYAN`, `BRIGHT_WHITE`
## Available Font Styles
- `NORMAL` - Default text style
- `BOLD` - Bold text
- `DIM` - Dimmed text
- `ITALIC` - Italic text
- `UNDERLINE` - Underlined text
- `BLINK` - Blinking text
- `REVERSE` - Reversed colors
- `STRIKETHROUGH` - Strikethrough text
## Gradient Text
```python
from printfx import PrintFX
printer = PrintFX()
printer.gradient(
"Gradient Text Example!",
start="#ff0000",
end="#0000ff"
)
```
## Advanced Usage
```python
from printfx import PrintFX
# Create printer with default settings
printer = PrintFX("BLUE")
# Change color and style at runtime
printer.printfx("Red bold text", color="RED", font_style="BOLD")
printer.printfx("Green underlined text", color="GREEN", font_style="UNDERLINE")
# Combine multiple effects
printer.printfx("Magenta italic text", color="MAGENTA", font_style="ITALIC")
```