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 = discordify.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

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.3.tar.gz (45.5 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.3-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discordifytext-0.1.3.tar.gz
  • Upload date:
  • Size: 45.5 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.3.tar.gz
Algorithm Hash digest
SHA256 db67162d4cdde9863c47f55919035508ffb979eb89b5372c5f2328f5e7e30cae
MD5 73ca15c46e4c2b4d0287831d4a76cb8e
BLAKE2b-256 5fbf5db6d91c2d007c3cc8b551069aeb834fc968b23aa0e430221c4345e5f589

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discordifytext-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 31.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b9b40d822c98357cc92004fed570938bcd81ada6b09c0f566d05d04ee74d8f6a
MD5 a68bc089849275a79f08d5ecf9663fc1
BLAKE2b-256 b36699191c0795b52ae45a986485a4e65f43e0cc6ff1ef1c334ba0dcb1fa70a4

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