Translates normal text into OwO speak. Port from Zuzak's javascript version
Project description
OwO
Yet another owoifier. This specific one is a port of @zuzak's JavaScript OWO into Python, because we needed this to be in even more languages.
Install
- Run the command
pip install text-to-owo
. - Add
import owo
to the beginning of your script.
Usage
add_prefix(str, prefixes=DEFAULT)
Appends a random prefix to the beginning and end of the string. Custom prefixes are optional and must be passed as an iterable.
add_suffix(str, suffixes=DEFAULT)
Appends a random suffix to the beginning and end of the string. Custom suffixes are optional and must be passed as an iterable.
add_affixes(str, prefixes=DEFAULT, suffixes=DEFAULT)
Appends a random prefix and suffix to the beginning and end of the string. Custom prefixes and suffixes are optional and must be passed as iterables.
substitute(str, substitutions=DEFAULT)
Turns the text into owo speak without adding any prefixes or suffixes.
Custom substitutions are optional and must be passed as dictionary in the form {"key":"replacement"}
.
owo(str, prefixes=DEFAULT, suffixes=DEFAULT, substitutions=DEFAULT)
Both substitutes and adds prefixes and suffixes. Optional prefixes, suffixes, and substitutions are the same as in other methods.
For all optional arguments the given iterable/dict will replace the default values, not add to them.
If you pass in variables with the wrong data types I have no idea what will happen so don't do that.
Example
import owo
print(owo.owo("I have no mouth and I must scream"))
# HIIII! I haz nu mouth and I must scweam XDDD
print(owo.substitute("I have no mouth and I must scream"))
# I haz nu mouth and I must scweam
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
Hashes for text_to_owo-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01b5020622aba89dfe4572adbc4a47b8a9284bf1b1777255ac1ac128e2c5f8fe |
|
MD5 | 273b55679f81db01b49e257bd7d4a16d |
|
BLAKE2b-256 | d71e35653f5eade1779a79f8539c880d64bee610d6a855c81783ceb71df9f24d |