A fun string manipulation package
Project description
🚀 uselessString Package
📌 Introduction
uselessString is a Python package that provides fun and useful string manipulation functions. It includes features such as palindromes, word reversal, customized repetitiveness, emotive expressions, and more.
🔗 PyPI Package: uselessString on PyPI
📦 Installation
To install the package from PyPI, run:
pip install uselessString
To upgrade to the latest version:
pip install --upgrade uselessString
To install directly from source (for development):
git clone https://github.com/software-students-spring2025/3-python-package-goodgood.git
cd uselessString
pip install -e .
📖 Documentation
🔹 Functions Overview
| Function | Description | Example Input | Example Output |
|---|---|---|---|
palindrome(s) |
Reverses every character in a given string | "Hello, world!" |
"!dlrow ,olleH" |
reverse(s) |
Reverses the order of words in a string | "Hello, world!" |
"world! Hello," |
echo(s, i) |
Repeats the word s, i times |
("Hi", 3) |
"Hi Hi Hi" |
angry(s) |
Randomly inserts special characters to express anger | "I am upset" |
"I am @%! upset!" |
mocking(s) |
Converts a string into alternating uppercase/lowercase | "hello" |
"HeLLo" |
emoji(s, emotion) |
Adds an emoji corresponding to the given emotion | ("Hello", "happy") |
"Hello 😊" |
random(s) |
Shuffles the characters randomly | "Python" |
"nPyoth" (randomized) |
💡 Usage
Basic Example
from uselessString.palindrome import palindrome
from uselessString.reverse import reverse
from uselessString.echo import echo
from uselessString.mocking import mocking
from uselessString.angry import angry
from uselessString.emoji import emoji
from uselessString.random import randomize
test_string = "Hello, World!"
print(palindrome(test_string)) # "!dlroW ,olleH"
print(reverse(test_string)) # "World! Hello,"
print(echo("Python", 3)) # "Python Python Python"
print(mocking(test_string)) # "HeLLo, WoRLd!"
print(angry(test_string)) # "Hello, %@!World!"
print(emoji(test_string, "happy")) # "Hello, World! 😊"
print(randomize(test_string)) # "oWlr!dHleo, " (randomized)
🛠️ Contributing
We welcome all contributions! Please follow these steps to contribute:
- Fork the repository
- Clone your fork
git clone https://github.com/software-students-spring2025/3-python-package-goodgood.git cd uselessString
- Create a feature branch
git checkout -b feature-branch-name
- Make your changes and commit
git add . git commit -m "Added new feature XYZ"
- Push to your fork and create a pull request
git push origin feature-branch-name
- Wait for code review and merge! 🎉
🔍 Running Tests
To ensure the package is working correctly, run:
pytest
📜 License
This project is licensed under the GNU General Public License v3. See the LICENSE file for details.
👥 Contributors
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 uselessstring-1.0.2.tar.gz.
File metadata
- Download URL: uselessstring-1.0.2.tar.gz
- Upload date:
- Size: 42.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e03190012a984633f6dd176db798fd45ffb0ce8eebc3b6d09879f2b54fbb81c8
|
|
| MD5 |
795aeb36811eae8ca605c4c2b7a8b4ef
|
|
| BLAKE2b-256 |
d9ac3fe808e25c7a0c590488f8e7dd75337e7c9d3f57948f4287c385d0f34d05
|
File details
Details for the file uselessstring-1.0.2-py3-none-any.whl.
File metadata
- Download URL: uselessstring-1.0.2-py3-none-any.whl
- Upload date:
- Size: 27.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cc30ea7a1841bf738ffdcec711033085c98b9a9b40a1ae7fb1eba8dd0601d78
|
|
| MD5 |
cc5736e4b3d22249b9229895b5b7c4f5
|
|
| BLAKE2b-256 |
4c15a414a14f185f9b42ed1ae0b332e9718922cd4038a7a4426048b0343a4510
|