Socket
Book a DemoInstallSign in
Socket

uselessString

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uselessString

A fun string manipulation package

pipPyPI
Version
1.0.2
Maintainers
1

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/software-students-spring2025/3-python-package-goodgood.git
cd uselessString
pip install -e .

📖 Documentation

🔹 Functions Overview

FunctionDescriptionExample InputExample 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts