Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(0)  |  Derive(5)  |  Import(3)

src/r/e/reddit-HEAD/r2/r2/lib/captcha.py   reddit(Download)
from pylons import g
from Captcha.Base import randomIdentifier
from Captcha.Visual import Text, Backgrounds, Distortions, ImageCaptcha
 
from r2.lib.cache import make_key
 
IDEN_LENGTH = 32
SOL_LENGTH = 6
 
class RandCaptcha(ImageCaptcha):

src/l/e/lesswrong-HEAD/r2/r2/lib/captcha.py   lesswrong(Download)
from r2.config import cache
from Captcha.Base import randomIdentifier
from Captcha.Visual import Text, Backgrounds, Distortions, ImageCaptcha
from pylons import g
 
IDEN_LENGTH = 32
SOL_LENGTH = 6
 
class RandCaptcha(ImageCaptcha):

src/p/y/PyCAPTCHA-HEAD/Captcha/Visual/Tests.py   PyCAPTCHA(Download)
#
 
from Captcha.Visual import Text, Backgrounds, Distortions, ImageCaptcha
from Captcha import Words
import random
 
__all__ = ["PseudoGimpy", "AngryGimpy", "AntiSpam"]
 
 
class PseudoGimpy(ImageCaptcha):
class AngryGimpy(ImageCaptcha):
    """A harder but less visually pleasing CAPTCHA"""
    def getLayers(self):
        word = Words.defaultWordList.pick()
        self.addSolution(word)
class AntiSpam(ImageCaptcha):
    """A fixed-solution CAPTCHA that can be used to hide email addresses or URLs from bots"""
    fontFactory = Text.FontFactory(20, "vera/VeraBd.ttf")
    defaultSize = (512,50)