Skip to main content

textfx is a Python library for creating dynamic and visually engaging text effects.

Project description

Textfx

PyPI Downloads

Textify is a Python library for creating dynamic and visually engaging text effects. It offers multiple functions to display text with unique animations and styles, perfect for enhancing console-based projects.

Features

  • Typing Effect: Simulates the effect of typing text character by character.
  • Falling Text: Characters "fall" into place, similar to the rain effect from The Matrix.
  • Scramble Effect: Displays random characters that gradually transform into the actual text.
  • Wave Text: Makes the text move in a wave-like pattern.
  • Untyping Effect (New in v0.2): Gradually erases text character by character.
  • Unfalling Text (New in v0.2): The text vanishes in a scattered manner.
  • Unscramble Effect (New in v0.2): The text gradually scrambles into random characters until it disappears.
  • Unwave Text (New in v0.2): The text starts in a wave-like pattern and gradually stabilizes.

Installation

You can install it With:

pip install textfx

or You can clone this repository and use the textfx.py file directly in your project:

git clone https://github.com/iliakarimi/textfx.git

Then, import the required functions in your Python script:

from textfx import typeeffect, falltext, scrameffect, wavetext, untypeeffect, unfalltext, unscrameffect, unwavetext

Usage

Below are examples of how to use each function:

Typing Effect

from textfx import typeeffect
typeeffect("Hello, world!", delay=0.1)

Falling Text

from textfx import falltext
falltext("Falling Text", delay=0.2)

Scramble Effect

from textfx import scrameffect
scrameffect("Scrambled Text", delay=0.1)

Wave Text

from textfx import wavetext
wavetext("Wave Text", delay=0.2)

Untyping Effect (New in v0.2)

from textfx import untypeeffect
untypeeffect("Erasing Text", delay=0.1)

Unfalling Text (New in v0.2)

from textfx import unfalltext
unfalltext("Vanishing Text", delay=0.1)

Unscramble Effect (New in v0.2)

from textfx import unscrameffect
unscrameffect("Glitching Away", delay=0.1)

Unwave Text (New in v0.2)

from textfx import unwavetext
unwavetext("Steadying Waves", delay=0.1)

Dependencies

  • Python 3.x

Contributing

Feel free to fork this repository and submit pull requests. Suggestions for new effects and improvements are always welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.


Enjoy using Textify! Let your text come to life!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textfx-0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textfx-0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file textfx-0.2.tar.gz.

File metadata

  • Download URL: textfx-0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for textfx-0.2.tar.gz
Algorithm Hash digest
SHA256 58f04274e3f32d03cc50348f5562403ddc078589f178e4011ecb586f0ba9687b
MD5 e478e00c566a0d726413713cf780701f
BLAKE2b-256 6291d43eade3ccfd15a12e0aec76e3ed0321465d8b8b45304b55446a1e51f745

See more details on using hashes here.

File details

Details for the file textfx-0.2-py3-none-any.whl.

File metadata

  • Download URL: textfx-0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for textfx-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 29198f8e0421ccc16c4af2c1312debb3ae7a83b2f6f33bd4aa5b8d0707801af4
MD5 a835e621db8d0f35fc52e79fa6acd0a1
BLAKE2b-256 5cbb43b94f88c40d537935d0e6bf331b952a25dc1d80052d2363c666b20b2243

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page