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
to install the package on your system. - Add
import owo
to the beginning of your script.
Usage
Constants
owo.PREFIXES
Tuple containing default prefixes
owo.SUFFIXES
Tuple containing default suffixes
owo.SUBSTITUTIONS
Dict containing default substitutions
Functions
owo.add_prefix(str, prefixes=owo.PREFIXES)
Appends a random prefix to the beginning and end of the string. Custom prefixes are optional and must be passed as an iterable.
owo.add_suffix(str, suffixes=owo.SUFFIXES)
Appends a random suffix to the beginning and end of the string. Custom suffixes are optional and must be passed as an iterable.
owo.add_affixes(str, prefixes=owo.PREFIXES, suffixes=owo.SUFFIXES)
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.
owo.substitute(str, substitutions=owo.SUBSTITUTIONS)
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.owo(str, prefixes=owo.PREFIXES, suffixes=owo.SUFFIXES, substitutions=owo.SUBSTITUTIONS)
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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de0629239447271827b5f81ee9a7b596b4472e5c3643bb0f96c68289735aae2c |
|
MD5 | dd3508b2918963a55eeadc9caaa7c23c |
|
BLAKE2b-256 | 2f3c89c9b1198239cae6707a3645d71d2f2952c7b1cf38cfe90ee4e5b6f9e6be |