TxtMagic is a Python package that brings Magicโจ to your text! Transform ordinary text into:
๐จ Colorful masterpieces | ๐ Emoji-powered messages | โ๏ธ Stylized fonts | ๐ฌ Animated wonders
- Basic ANSI colors
- Custom RGB colors (24-bit)
- Rainbow gradients ๐
- Background coloring
- Smart keyword โ emoji replacement
- Sentiment analysis emojis (๐/๐)
- Combine with colors and animations
- Multiple font styles:
- Bold, italic, underline
- Script, fraktur, cursive
- Subscript/superscript and more!
- Blockfonts(Standard, bubble, shadow, minimal, outline)
- 10+ built-in effects:
- Typing simulation
- Glitch effect
- Wave motion
- Neon glow
- 3D text
- And more!
pip install TxtMagicExplore these ready-to-run examples to see TxtMagic in action:
๐กCheck out sample program for more details!
| Feature | TxtMagic | Existing Packages (e.g., colorama, emoji, pyfiglet) |
|---|---|---|
| Colorization | โ Supports basic colors, custom RGB, and rainbow gradients. | โ Most packages (e.g., colorama, termcolor) only support basic ANSI colors. |
| Emoji Replacement | โ Replaces keywords with emojis and integrates with color and font styling. | โ Packages like emoji only focus on emoji replacement. |
| Font Styling | โ Offers a wide range of font styles (e.g., bold, cursive, subscript, etc.). | โ Packages like pyfiglet focus on ASCII art, not Unicode-based font styling. |
| Text Animations | โ 9+ built-in animations (typing, glitch, wave, gradient, neon, etc.). | โNo standard package offers text animations. Requires manual implementation or external libraries like curses. |
| Combination of Features | โ Seamlessly combines color + emojis + fonts + animations. | โ No existing package combines all four features. |
| Ease of Use | โ Simple syntax for all features (e.g., wave_effect("Hello")). | โ Users must combine multiple packages and write custom code for animations. |
| Terminal Compatibility | โ Works in VS Code, PyCharm, modern terminals (Windows Terminal, iTerm2). | |
| Customization | โ Allows custom RGB colors, animations, emoji and unique font styles. | โ Limited customization options in most packages. |
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.
MIT License -See the LICENSE file for details.

