MediaWiki  1.33.0
captcha.py File Reference

Go to the source code of this file.

Namespaces

 captcha
 

Functions

def captcha.gen_captcha (text, fontname, fontsize, file_name)
 
def captcha.gen_subdir (basedir, md5hash, levels)
 
def captcha.pick_word (words, blacklist, verbose, nwords, min_length, max_length)
 
def captcha.read_wordlist (filename)
 
def captcha.run_in_thread (object)
 
def captcha.try_pick_word (words, blacklist, verbose, nwords, min_length, max_length)
 
def captcha.wobbly_copy (src, wob, col, scale, ang)
 

Variables

 captcha.action
 
 captcha.args
 
def captcha.blacklist = read_wordlist(opts.blacklist)
 
int captcha.chunks = 1
 
 captcha.count = opts.count
 
list captcha.data = []
 
 captcha.default
 
 captcha.dirs = opts.dirs
 
 captcha.fill = opts.fill
 
 captcha.font = opts.font
 
 captcha.fontsize = opts.font_size
 
 captcha.help
 
 captcha.key = opts.key
 
 captcha.metavar
 
 captcha.nonalpha = re.compile('[^a-z]')
 
 captcha.opts
 
 captcha.output = opts.output
 
 captcha.p = multiprocessing.Pool(threads);
 
 captcha.parser = OptionParser()
 
 captcha.script_dir = os.path.dirname(os.path.realpath(__file__))
 
 captcha.threads = opts.threads
 
 captcha.type
 
 captcha.verbose = opts.verbose
 
 captcha.wordlist = opts.wordlist
 
 captcha.words = None