Skip to main content

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

  1. Run the command pip install text-to-owo.
  2. 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 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

text-to-owo-1.1.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

text_to_owo-1.1.3-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page