comparison data_generation/transformations/pycaptcha/Captcha/__init__.py @ 167:1f5937e9e530

More moves - transformations into data_generation, added "deep" folder
author Dumitru Erhan <dumitru.erhan@gmail.com>
date Fri, 26 Feb 2010 14:15:38 -0500
parents pycaptcha/Captcha/__init__.py@4775b4195b4b
children
comparison
equal deleted inserted replaced
166:17ae5a1a4dd1 167:1f5937e9e530
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 ###