Skip to content

Commit

Permalink
Added exported variables to the package's __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zivmaor committed Apr 18, 2020
1 parent bf9ccd6 commit 4d1f8a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion open_captcha/VERSION
@@ -1 +1 @@
0.1.0
0.1.1
16 changes: 16 additions & 0 deletions 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()

0 comments on commit 4d1f8a7

Please sign in to comment.