87
|
1 """ Captcha
|
|
2
|
|
3 This is the PyCAPTCHA package, a collection of Python modules
|
|
4 implementing CAPTCHAs: automated tests that humans should pass,
|
|
5 but current computer programs can't. These tests are often
|
|
6 used for security.
|
|
7
|
|
8 See http://www.captcha.net for more information and examples.
|
|
9
|
|
10 This project was started because the CIA project, written in
|
|
11 Python, needed a CAPTCHA to automate its user creation process
|
|
12 safely. All existing implementations the author could find were
|
|
13 written in Java or for the .NET framework, so a simple Python
|
|
14 alternative was needed.
|
|
15 """
|
|
16 #
|
|
17 # PyCAPTCHA Package
|
|
18 # Copyright (C) 2004 Micah Dowty <micah@navi.cx>
|
|
19 #
|
|
20
|
|
21 __version__ = "0.3-pre"
|
|
22
|
|
23
|
|
24 # Check the python version here before we proceed further
|
|
25 requiredPythonVersion = (2,2,1)
|
|
26 def checkVersion():
|
|
27 import sys, string
|
|
28 if sys.version_info < requiredPythonVersion:
|
|
29 raise Exception("%s requires at least Python %s, found %s instead." % (
|
|
30 name,
|
|
31 string.join(map(str, requiredPythonVersion), "."),
|
|
32 string.join(map(str, sys.version_info), ".")))
|
|
33 checkVersion()
|
|
34
|
|
35
|
|
36 # Convenience imports
|
|
37 from Base import *
|
|
38 import File
|
|
39 import Words
|
|
40
|
|
41 ### The End ###
|