Skip to main content

A fun package for generating random brainrot content and text transformations

Project description

Build Workflow

Brain Rot Package

A Python package that generates brainrot—random snippets of internet culture, memes, and absurdity. Perfect for adding humor to your day, generating chaotic messages, and embracing the absurdity of Tiktok culture.

Team Members

Installation

You can install brainrot-generator directly from [PyPI](INSERT LINK HERE):

pip install brainrot-generator

Features

Brainrot offers multiple text transformation functions for maximum chaos:

1. brainrot(n)

Generates n random brainrot phrases from a predefined list.

from brainrot import brainrot

# Generate 3 random brainrot phrases
result = brainrot(3)
print(result)

2. get_brain_rot_of(name)

Retrieves a brainrot quote attributed to a specific name.

from brainrot import get_brain_rot_of

# Get a brainrot phrase associated with "FettyWap"
print(get_brain_rot_of("FettyWap"))

3. random_capitalization(phrase)

Randomly capitalizes letters in a phrase.

from brainrot import random_capitalization

text = "brainrot is real"
print(random_capitalization(text))
# Output: "bRaInRoT Is rEaL"

4. rotify(input_string)

Appends " ahh" to any given string.

from brainrot import rotify

text = "skibidi"
print(rotify(text))
# Output: "skibidi ahh"

5. backwards_text(text)

Reverses the text string.

from brainrot import backwards_text

text = "brainrot"
print(backwards_text(text))
# Output: "torniarb"

6. generate_brain_rot(word_counter)

Generates a string with word_counter words of brainrot.

from brainrot import generate_brain_rot

print(generate_brain_rot(10))

Command Line Usage

You can also use brainrot from the command line:

# Install the package
pip install brainrot-generator

python -m brainrot

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 brainrot import brainrot, get_brain_rot_of, random_capitalization, rotify, backwards_text, generate_brain_rot

def demonstrate_brainrot():
    print("1. Random Brainrot:")
    print(brainrot(3))

    print("\n2. Get Brain Rot of 'FettyWap':")
    print(get_brain_rot_of("FettyWap"))

    print("\n3. Random Capitalization:")
    text = "this is brainrot"
    print(random_capitalization(text))

    print("\n4. Rotify:")
    print(rotify("skibidi"))

    print("\n5. Backwards Text:")
    print(backwards_text("brainrot"))

    print("\n6. Generate Brain Rot (10 words):")
    print(generate_brain_rot(10))

if __name__ == "__main__":
    demonstrate_brainrot()

Save this as example.py and run it with python example.py.

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

brainrot_generator-0.1.2.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

brainrot_generator-0.1.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file brainrot_generator-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for brainrot_generator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 91cf8e25fbae548cfa862f0d18aff0e748097a4299737178e31ff2ab891172f6
MD5 b0adc55b8413c357d235fbe169d3b061
BLAKE2b-256 45333d7849d4afafe4ca3f300f9a1986d1c0bcfdef912dd5beec7fd463821971

See more details on using hashes here.

File details

Details for the file brainrot_generator-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for brainrot_generator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 979ebf15463723c542d3c5d2075f1e85871397664c79ad0ead40f31f84132b8a
MD5 773e91b8c315b6b29b2f0627a0502fbd
BLAKE2b-256 20bb49ec14c4461c8cb4ae26b880572d4d803e0fbdf7959bdc35574dd091d91d

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