Skip to main content

A Python library for converting text strings into OwO

Project description

owotext

A Python library for converting text strings into OwO, inspired by Douglas Gardner's work.

Installing

pip install owotext

Usage

You can use owotext in your Python projects like so:

# OwO Impowt da wibwawy ÙωÙ
from owotext import OwO

# Huohhhh. Setup da convewtew ʕʘ‿ʘʔ
uwu = OwO()

# HIIII! Convewt a stwing into OwO speak Huoh.
print(uwu.whatsthis('In the beginning the Universe was created. '
                    'This had made many people very angry and has '
                    'been widely regarded as a bad move.'))

Example output:

Huohhhh. In da beginning da Univewse was cweated. This had made many peopwe vewy angwy and haz been widewy wegawded as a bad move. Huoh.

You can also call owotext from the command line by using the owo command:

owo You know something? I really hate people! They're selfish, ignorant, loud obnoxious pricks, with basically no redeeming qualities whatsoever. I mean really, look at all they've achieved! Genocide, global warming, reality TV, and just a never ending parade of failures and fuck ups! They are, without question, a complete write-off of a species

Example output:

Huohhhh. You knuw something? I weawwy hate peopwe! Theywe sewfish, ignuwant, woud obnuxious pwicks, with basicawwy nu wedeeming quawities whatsoevew. I mean weawwy, wook at aww theyve achieved! Genucide gwobaw wawming weawity TV and just a nevew ending pawade of faiwuwes and fuck ups! They awe without question a compwete wwite-off of a species ( '◟ ')

Customization

OwO() accepts custom lists of prefixes, suffixes and substitutions.

OwO(prefixes, suffixes, substitutions)

Things should be fairly self explanatory here; prefixes and sufffixes should be List objects and substitutions should be a Dict.

Requirements

  • Python 3
  • A lack of self worth

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

owotext-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

owotext-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file owotext-1.0.0.tar.gz.

File metadata

  • Download URL: owotext-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.0

File hashes

Hashes for owotext-1.0.0.tar.gz
Algorithm Hash digest
SHA256 569e9526449bdcbfca9ef1a78c542610bdac17209ebfc4bb150f9e60d3e3f5a0
MD5 b75861516ae469df218ff4ec42baac5a
BLAKE2b-256 199c0ade99c0b9945a2693381d8222bc6a1d44c4594691b5ced8af1f309e9ab2

See more details on using hashes here.

File details

Details for the file owotext-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: owotext-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.0

File hashes

Hashes for owotext-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1a69e54201492660e788ba7103fbbdc72e96bbf98e77163456bf53f987b657b
MD5 38762ff4f6f34cdfb26b625be1c8f376
BLAKE2b-256 1cd81ff806787da271a96734d90e734a40f89d30cf70b83b61e6d0509919f9d9

See more details on using hashes here.

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