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.
Also can be called using owo.c(...)
For all optional arguments the given interable/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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecaa8e2c8174e3b484652d3cef7d6681b65d359e7aaadc557940264642d6167f |
|
MD5 | 593faa5a116feff31f3002c3f38794c9 |
|
BLAKE2b-256 | 57fd0eb3fe991872ac0708d61319d0858b6f2eb09c0d3824c6fd20ee08831362 |