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
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
-
Clone the repository:
git clone https://github.com/software-students-spring2025/3-python-package-minesweepers.git cd 3-python-package-minesweepers
-
Set up the virtual environment and install dependencies:
pipenv install --dev pipenv shell
-
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
-
Create a new branch for your feature:
git checkout -b feature/your-feature-name
-
Make your changes and write tests if necessary
-
Run tests to ensure everything works:
pytest
-
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
-
Create a Pull Request to the
mainbranch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discordifytext-0.1.5.tar.gz.
File metadata
- Download URL: discordifytext-0.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
832bf68f37873ae29645d25b6b9f9ce50bd8fb37c0d9383101b257123a2f4117
|
|
| MD5 |
5c9dc28ae9070db1b0ea195179833a0a
|
|
| BLAKE2b-256 |
7bb944d208d75a79587829850408265bc03164ef9aae59719e16780cfb41cb93
|
File details
Details for the file discordifytext-0.1.5-py3-none-any.whl.
File metadata
- Download URL: discordifytext-0.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
420f9da9fcb74128fffb6929540e69d4ae36b4f0e7bf5e9be37761a56c7ffab7
|
|
| MD5 |
abe5b3702603d1ce9f772245f5b2ce0f
|
|
| BLAKE2b-256 |
0327519ef2ae80556421ea964727800d2d47c6b3a9f3636aa5588fa751494d80
|