The variety module

This module contains 2 functions:

sanctify

class pytholic.variety.sanctify(text: str)[source]

It turns a given string into a latin-like version.

The letter “u” is swapped by “v”, normal numbers are swapped by roman numbers, all letters are capitalized.

Parameters

text (str) – The string to be formatted.

Returns

The given string, but with capital letters, v instead of u and roman numbers instead of normal numbers.

Return type

str

Raises
  • TypeError – If a value other than a string is passed as parameter.

  • UnholyWordError – If the string contains the words: satan, demon, baphomet, lucifer, 666 or devil.

  • NumberTooBig – If a number is greater than 9999.

>>> text = "Hello World!, i'm 99 years old, good luck"
>>> text = sanctify(text)
>>> print(text)
HELLO WORLD!, I'M XCIX YEARS OLD, GOOD LVCK

trinity

class pytholic.variety.trinity[source]

Explanation of the doctrine of the Holy Trinity through an interactive little game.