BS Generator
BS Generator is a lightweight Python package that transforms plain text into fun internet-style output. It currently includes five mutators:
brain_rot_mutator: adds slang-style punctuation replacements and optional intensity effects.emotion_mutator: changes punctuation with emotion modes and keyboard faces like:),:D,uwu, and(¬‿¬).emoji_mutator: injects word-based and color-themed emojis.uwu_mutator: converts plain text into playful uwu-style text with configurable intensity.wingdings: convert text into wingdings symbols
This project has no server, no database, and no required environment variables.
Team
PyPI
Package page: https://pypi.org/project/bs-generator/
Note: If the package has not been published yet, this link may show "Not Found" until release.
Installation
Install locally for development (editable install):
python -m pip install -e .
Or install dev dependencies with Pipenv:
pipenv install --dev
or
pipenv run python
API Usage (Import Into Your Own Code)
1) brain_rot_mutator(text, intensity=1)
Mutates punctuation and slang level in a sentence.
text (str): input sentenceintensity (int): must be1,2, or3
from bs_generator import brain_rot_mutator
print(brain_rot_mutator("The tests are failing again.", intensity=1))
print(brain_rot_mutator("The tests are failing again.", intensity=2))
print(brain_rot_mutator("The tests are failing again.", intensity=3))
2) emoji_mutator(text, color="multicolor")
Adds mapped emojis (for words like hello/ok/yes) and random color-set emojis.
text (str): input sentencecolor (str): one ofmulticolor,red,blue,green,yellow
from bs_generator import emoji_mutator
print(emoji_mutator("hello yes ok", color="multicolor"))
print(emoji_mutator("hello yes ok", color="blue"))
3) emotion_mutator(text, emotion="classic")
Changes punctuation, applies emotion-based exclamation styles, and adds keyboard drawings.
text (str): input sentenceemotion (str): one ofclassic,cute,happy,love,sleepy,shy,sad,funny,smug
from bs_generator.emotion import emotion_mutator
print(emotion_mutator("Wow! Really?", emotion="smug"))
print(emotion_mutator("Wow! Really?", emotion="funny"))
print(emotion_mutator("Wow! Really?", emotion="sleepy"))
4) uwu_mutator(text, intensity=1)
Transforms plain text into playful uwu-style output.
text (str): input sentenceintensity (int): must be1,2, or3
from bs_generator import uwu_mutator
print(uwu_mutator("Hello friend!", intensity=1))
print(uwu_mutator("I love my dog.", intensity=2))
print(uwu_mutator("Nice to see you!", intensity=3))
5) wingdingsify(input, only_alphanumeric=False)
Change input text into wingdings symbols.
input: Your input string.only_alphanumeric: Boolean. When true, will only convert alphanumeric characters into wingdings symbols.
from bs_generator.wingdings import wingdingsify
print(wingdingsify("Hello world!"))
print(wingdingsify("Hello world!", only_alphanumneric=True))
Example Program (Uses All Functions)
Complete runnable example: example.py
Run it:
python example.py
Run Instructions (Any Platform)
All commands below work in Git Bash, macOS/Linux Bash, and Windows CMD/PowerShell.
From the repository root:
python example.py
Interactive Python usage:
python
Then in the Python prompt:
from bs_generator import brain_rot_mutator, emotion_mutator, emoji_mutator, uwu_mutator
brain_rot_mutator("your sentence here", intensity=3)
emotion_mutator("your sentence here!", emotion="cute")
emoji_mutator("your sentence here", color="green")
uwu_mutator("your sentence here", intensity = 2)
wingdingsify("your sentence here", only_alphanumeric=False)
Contributing
Clone and Set Up Environment
git clone https://github.com/swe-students-spring2026/3-package-polar_bear.git
cd 3-package-polar_bear
pipenv install --dev
Run Tests
With Pipenv:
pipenv run pytest tests/ -v
Without Pipenv:
python -m pip install pytest
python -m pytest tests/ -v
Build Package
With Pipenv:
pipenv run python -m build
Without Pipenv:
python -m pip install build
python -m build
Configuration, Environment Variables, and Data
- Environment variables: none required.
- Database: none used.
- Starter/imported data: not required.
- Secret config files (
.envor similar): none required for this project.
Because no secrets are required, there is no env.example file needed for runtime.
Additional Quick Commands
Install For Importing In Another Project
If published on PyPI:
pip install bs-generator
Local editable install from source:
python -m pip install -e .
Minimal Import Example
from bs_generator import brain_rot_mutator, emotion_mutator, emoji_mutator
text = "Hello, can someone review this pull request?"
print(brain_rot_mutator(text, intensity=2))
print(emotion_mutator(text, emotion="smug"))
print(emoji_mutator(text, color="yellow"))
Platform-Specific Run Notes
Git Bash / macOS / Linux:
python example.py
Windows CMD:
python example.py
Windows PowerShell:
python example.py
Requirement Coverage Checklist
- Plain-language description: included at top of this README.
- Latest workflow badge: included at top and linked to GitHub Actions workflow.
- PyPI link: included in the PyPI section.
- Function documentation with code examples: included for every public function.
- Link to complete example program: included as example.py.
- Contributor setup/build/test instructions: included in Contributing section.
- Teammates linked to GitHub: included in Team section.
- Cross-platform run/config instructions: included in Run Instructions and Additional Quick Commands.
- Environment variables and starter data instructions: included in Configuration section.
- Secret files guidance: explicitly documented as not required for this project.
Metadata
Release files for bs-generator-polar-bear 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bs_generator_polar_bear-0.1.0.tar.gz | 18.9 kB | Without provenance | Details for bs_generator_polar_bear-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bs_generator_polar_bear-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bs_generator_polar_bear-0.1.0-py3-none-any.whl |
Total release size: 34.8 kB
Release files / bs_generator_polar_bear-0.1.0.tar.gz
| Download URL | bs_generator_polar_bear-0.1.0.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39c6a3c1087638ae0ad492dff8572ba515a771db9bd938baf869a5e26a8e8f97
|
|
BLAKE2b-256 checksum How to use checksums |
dc21bbf823471ec1db4eea8591adabebae0214bda4d270125eab56edd455aca4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / bs_generator_polar_bear-0.1.0-py3-none-any.whl
| Download URL | bs_generator_polar_bear-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c8ce17e0f1459fde21cd0169a909a3165cee9c5d37068dc4c83c26beacef779
|
|
BLAKE2b-256 checksum How to use checksums |
4eb691e75e1d353d989827ea64bb69319162a725748491dbbb6d17d06b39f613
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for bs-generator-polar-bear 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.