Skip to main content

A package that transforms your sentences into various 'discord lingo', developed with pipenv, built with build using setuptools, uploaded to PyPI using twine, and distributed via pip.

Project description

discordifyText

CI / CD

A Python package that transforms your text into various Discord-inspired chat styles! Perfect for adding personality to your messages or just having fun with text transformation.

Team Members

Installation

You can install discordifyText directly from PyPI:

pip install discordifyText

Features

discordifyText offers six different text transformation functions:

1. Stutterify

Adds a stuttering effect to your text, making it look like you're nervous or excited!

from discordifyText import discordifyText

# Add stuttering effect
text = "Hello, how are you? I am fine, but tired."
stuttered = discordifyText.stutterify(text)
print(stuttered)
# Output: "H-Hello, how are y-you? I-I am fine, but... tired."

2. UwUify

Transforms your text into the cute "UwU" speak popular in some Discord communities.

from discordifyText import discordifyText

# Make text cute and add sparkles
text = "Hello. How are you?"
uwu_text = discordifyText.uwuify(text)
print(uwu_text)
# Output: "✧˖°. hewwo˚。⋆୨୧˚⋆˙⟡ how awe you? ₊˚⊹♡"

3. Leetify

Converts your text into "1337" (leet) speak by replacing letters with numbers.

from discordifyText import discordifyText

# Convert to 1337 speak
text = "Hi, how are you?"
leet_text = discordifyText.leetify(text)
print(leet_text)
# Output: "H1, H0W 4R3 Y0U?"

4. Dummify

Reverses all vowels in your text for a silly transformation.

from discordifyText import discordifyText

# Reverse vowels
text = "Hi, how are you?"
dummy_text = discordifyText.dummify(text)
print(dummy_text)
# Output: "Hu, how era yoi?"

5. Sarcasmify

Transforms text with alternating uppercase and lowercase letters to express sarcasm.

from discordifyText import discordifyText

# Add sarcasm style
text = "Yeah, sure, whatever you say"
sarcasm_text = discordifyText.sarcasmify(text)
print(sarcasm_text)
# Output might be: "YeAh, SuRe, WhAtEvEr YoU sAy 🙄"

6. Piratify

Transforms your text into pirate speak, adding nautical flair and emojis!

from discordifyText import discordifyText

# Convert to pirate speak
text = "Hello my friend"
pirate_text = discordifyText.piratify(text)
print(pirate_text)
# Output: "ahoy me matey! ⚓"

Command Line Usage

discordifyText can also be used directly from the command line:

# Install the package
pip install discordifyText

# Run the CLI
discordifyText

Or

# Install the package
pip install discordifyText

# Run the CLI
python -m discordifyText

Then follow the prompts to select a function and enter your text.

Example Program

Here's a complete example program that demonstrates all functions:

# example.py
from discordifyText import discordifyText

def demonstrate_discordifyText():
    sample_text = "Hello, world! Let's try all these transformations."
    
    print("Original text:")
    print(sample_text)
    print("\n1. Stutterify:")
    print(discordifyText.stutterify(sample_text))
    print("\n2. UwUify:")
    print(discordifyText.uwuify(sample_text))
    print("\n3. Leetify:")
    print(discordifyText.leetify(sample_text))
    print("\n4. Dummify:")
    print(discordifyText.dummify(sample_text))
    print("\n5. Sarcasmify:")
    print(discordifyText.sarcasmify(sample_text))
    print("\n6. Piratify:")
    print(discordifyText.piratify(sample_text))

if __name__ == "__main__":
    demonstrate_discordifyText()

Save this as example.py and run it with python example.py.

Development Setup

If you want to contribute to discordifyText, follow these steps:

Prerequisites

  • Python 3.7 or higher
  • pipenv

Setup steps

  1. Clone the repository:

    git clone https://github.com/software-students-spring2025/3-python-package-minesweepers.git
    cd 3-python-package-minesweepers
    
  2. Set up the virtual environment and install dependencies:

    pipenv install --dev
    pipenv shell
    
  3. Install the package in development mode:

    pipenv install -e .
    

Running tests

We use pytest for testing. To run the tests:

pytest

Building the package

To build the package:

python -m build

This will generate distribution files in the dist/ directory.

Workflow for contributions

  1. Create a new branch for your feature:

    git checkout -b feature/your-feature-name
    
  2. Make your changes and write tests if necessary

  3. Run tests to ensure everything works:

    pytest
    
  4. Commit your changes and push to your branch:

    git add .
    git commit -m "Add your meaningful commit message"
    git push origin feature/your-feature-name
    
  5. Create a Pull Request to the main branch

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

discordifytext-0.1.4.tar.gz (45.6 kB view details)

Uploaded Source

Built Distribution

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

discordifytext-0.1.4-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file discordifytext-0.1.4.tar.gz.

File metadata

  • Download URL: discordifytext-0.1.4.tar.gz
  • Upload date:
  • Size: 45.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for discordifytext-0.1.4.tar.gz
Algorithm Hash digest
SHA256 896d8fba93fcc0a7b68983d93fca4deec648299342fc6b0fc49400ffd7e84738
MD5 13ab1f583d4a843e19ad2711c7836226
BLAKE2b-256 bdabe39bee2ae811ae72b8c75fd7896ad8f4c5f3b49c31491a9794c86a6804c7

See more details on using hashes here.

File details

Details for the file discordifytext-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: discordifytext-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for discordifytext-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 70a60aef8eee7baab03cc0aa0931a903ed4db4de7d491caaf0e9d88f81689a0b
MD5 13681fad2636f2649f7ad2b00120bd5c
BLAKE2b-256 fe7d20a20e416dcea0b8076df58f20ce98186e0c0cb6fca984932712d5e4d2f9

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