Skip to main content

Allows the easy implementation of uwuifying words for applications like Discord bots and websites

Project description

uwuipy

An advanced uwuifier for python.

Install

To install just use PyPI pip install uwuipy

Usage

Basic usage for uwuifying user input.

from uwuipy import uwuipy

uwu = uwuipy()
print(uwu.uwuify(input()))

The constructor accepts several optional parameters:

  • seed
  • stutterchance
  • facechance
  • actionchance
  • exclamationchance

the seed sets the rng seed for the random events, and the values for the parameters (range is between 0 and 1.0) control the probability of them occuring.

from uwuipy import uwuipy

uwu = uwuipy(None, 0.3, 0.3, 0.3, 1)
print(uwu.uwuify(input()))

you can use an integer seed (for example the timestamp when a message was posted to give it a unique uwuify)

from datetime import datetime
from uwuipy import uwuipy

message = "Hello this is a message posted in 2017."
seed = datetime(2017, 11, 28, 23, 55, 59, 342380).timestamp()
uwu = uwuipy(seed)
print(uwu.uwuify(message))

as you can see we only use one method uwuify() it accepts a string and returns an uwuified string as per the values set in the contructor.

Contributing and Licence

Feel free contribute to the github repo of the project.

Licenced under MIT

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

uwuipy-0.1.0.tar.gz (3.7 kB view hashes)

Uploaded Source

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