Skip to content
Pooja-V4Public

About

A Python package for adding style, emojis, and colors to your text effortlessly! ๐ŸŽจโœจ

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

ย 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โœจ TxtMagic

TxtMagic is a Python package that brings Magicโœจ to your text! Transform ordinary text into:
๐ŸŽจ Colorful masterpieces | ๐Ÿ˜Š Emoji-powered messages | โœ’๏ธ Stylized fonts | ๐ŸŽฌ Animated wonders

๐ŸŒŸ Features

๐ŸŽจ Colorify

  • Basic ANSI colors
  • Custom RGB colors (24-bit)
  • Rainbow gradients ๐ŸŒˆ
  • Background coloring

๐Ÿ˜Š Emojify

  • Smart keyword โ†’ emoji replacement
  • Sentiment analysis emojis (๐Ÿ˜Š/๐Ÿ˜ž)
  • Combine with colors and animations

โœ’๏ธ Fontify

  • Multiple font styles:
    • Bold, italic, underline
    • Script, fraktur, cursive
    • Subscript/superscript and more!
    • Blockfonts(Standard, bubble, shadow, minimal, outline)

๐ŸŽฌ Animations

  • 10+ built-in effects:
    • Typing simulation
    • Glitch effect
    • Wave motion
    • Neon glow
    • 3D text
    • And more!

๐Ÿ“ฆ Installation

pip install TxtMagic

๐Ÿงช Try It Out!

Explore these ready-to-run examples to see TxtMagic in action:

๐Ÿ“‚ Example Code

Logo


๐Ÿ”ฎ Output

Logo

๐Ÿ’กCheck out sample program for more details!

๐Ÿ” Feature Comparison

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). โš ๏ธ Some packages (e.g., rich) have limited support in Jupyter/Spyder.
Customization โœ… Allows custom RGB colors, animations, emoji and unique font styles. โŒ Limited customization options in most packages.

๐Ÿ“œ Version History

Version 0.1.0

  • Font styles bold, italic, cursive, script, fraktur and more.
  • text to emoji
  • text color, Rgb colors, log msg, background color and rainbow gradients
  • Version 0.1.1

  • Emoji with the text
  • analyze sentiment emoji
  • Animations(blinking_text, typing_animation,text_shadow, text_gradient and more)
  • Version 0.1.2

  • Initial release of blockfont() with standard ASCII styles
  • Supported styles: standard, outline, bubble, shadow, minimal
  • Version 0.1.3 & Version 0.1.4

  • integrated with pyfiglet font styles.
  • custom font styles: serif, sans-serif, dotmatrix, standard, outline, bubble, shadow, minimal.
  • Version 0.1.5

  • fix fontify -> blockfont() text wrapping issue for the long text.
  • Long text input now automatically wraps to the next line without breaking ASCII formatting or overflowing the terminal.
  • ๐Ÿค Contributing

    Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request.

    ๐Ÿ“„ License

    MIT License -See the LICENSE file for details.

    About

    A Python package for adding style, emojis, and colors to your text effortlessly! ๐ŸŽจโœจ

    Resources

    Stars

    2 stars

    Watchers

    1 watching

    Forks

    Releases

    Packages

    Used by

    Contributors

    Languages