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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Creates BaseCaptcha instances on demand, and tests solutions.
CAPTCHAs expire after a given amount of time, given in seconds.
The default is 15 minutes.

src/p/y/PyCAPTCHA-HEAD/http_example.py   PyCAPTCHA(Download)
from Captcha.Visual import Tests
from Captcha import Factory
import BaseHTTPServer, urlparse, sys
def main(port):
    print "Starting server at http://localhost:%d/" % port
    handler = RequestHandler
    handler.captchaFactory = Factory()
    BaseHTTPServer.HTTPServer(('', port), RequestHandler).serve_forever()