PyPigLatin is a module which can convert words or strings of words from English, into Pig Latin
Use the package manager pip to install PyPigLatin.
pip install pypiglatin
import pypiglatin as p
# Example showing translation of a single word
single_word = "Hello"
print(p.translate_word(single_word)
# This would print 'ellohay'
# To trnalsate a larger string, use the translate_string function
larger_string = "Pig Latin is hard to speak"
print(p.translate_string(larger_string))
# This would print 'igpay atinlay isway ardhay otay eakspay'
View the docs Here