Skip to main content

A fun string manipulation package

Project description

Build and Test

🚀 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/yourgithubusername/uselessString.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:

  1. Fork the repository
  2. Clone your fork
    git clone https://github.com/software-students-spring2025/3-python-package-goodgood.git
    cd uselessString
    
  3. Create a feature branch
    git checkout -b feature-branch-name
    
  4. Make your changes and commit
    git add .
    git commit -m "Added new feature XYZ"
    
  5. Push to your fork and create a pull request
    git push origin feature-branch-name
    
  6. Wait for code review and merge! 🎉

🔍 Running Tests

To ensure the package is working correctly, run:

pytest tests/

📜 License

This project is licensed under the GNU General Public License v3. See the LICENSE file for details.


👥 Contributors


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

uselessstring-1.0.1.tar.gz (42.5 kB view details)

Uploaded Source

Built Distribution

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

uselessstring-1.0.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file uselessstring-1.0.1.tar.gz.

File metadata

  • Download URL: uselessstring-1.0.1.tar.gz
  • Upload date:
  • Size: 42.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for uselessstring-1.0.1.tar.gz
Algorithm Hash digest
SHA256 33228b45e93303c9fc1037b494ab6dc8249e7db87befd0772a77a1efb6705218
MD5 af178f998a77f474ede3b4a60b567cf8
BLAKE2b-256 329dfc2d775d8f8052d1151a07cc5cfb9e2c50b534c9cf0e6cd79e65ccdd7d94

See more details on using hashes here.

File details

Details for the file uselessstring-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: uselessstring-1.0.1-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

Hashes for uselessstring-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf283ea4ede553430700b558a8a51945f3e0d74f813e63c2585973b2a587e99f
MD5 bcaacc731563cab8c1148cabc8b2a235
BLAKE2b-256 08b44abdd81c32280ef1393b4e687f61d2d3439e69fc94ab41b6393248134009

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