From 4d1f8a771e09090cba85543b70c9e58962d63285 Mon Sep 17 00:00:00 2001 From: zivmaor Date: Sat, 18 Apr 2020 22:06:32 +0300 Subject: [PATCH] Added exported variables to the package's __init__.py --- open_captcha/VERSION | 2 +- open_captcha/__init__.py | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/open_captcha/VERSION b/open_captcha/VERSION index 6e8bf73..17e51c3 100644 --- a/open_captcha/VERSION +++ b/open_captcha/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/open_captcha/__init__.py b/open_captcha/__init__.py index e69de29..add970f 100644 --- a/open_captcha/__init__.py +++ b/open_captcha/__init__.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +import io +import os + +from .common_types import ( + CaptchaError, ConfigurationError, + InputTable, TemplateConfig, + RenderingOptions, ChallengeId, Challenge, ServerContext +) +from .captcha_generator import CaptchaGenerator +from .challenge_templates import ( + UnknownTemplate, BadTemplateParameters, ChallengeTemplate +) + +VERSION_FILE = os.path.join(os.path.dirname(__file__), 'VERSION') +__version__ = io.open(VERSION_FILE, encoding='utf-8').readline().strip()