summaryrefslogtreecommitdiff
path: root/otp2289/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'otp2289/__init__.py')
-rw-r--r--otp2289/__init__.py51
1 files changed, 28 insertions, 23 deletions
diff --git a/otp2289/__init__.py b/otp2289/__init__.py
index 36d1659..608595b 100644
--- a/otp2289/__init__.py
+++ b/otp2289/__init__.py
@@ -1,7 +1,7 @@
1# -*- coding: utf-8 -*- 1# -*- coding: utf-8 -*-
2# SPDX-License-Identifier: BSD-2-Clause-FreeBSD 2# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3# 3#
4# Copyright (c) 2020, Simeon Simeonov 4# Copyright (c) 2020-2022 Simeon Simeonov
5# All rights reserved. 5# All rights reserved.
6# 6#
7# Redistribution and use in source and binary forms, with or without 7# Redistribution and use in source and binary forms, with or without
@@ -24,20 +24,23 @@
24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26"""A pure Python implementation of RFC-2289""" 26"""A pure Python implementation of RFC-2289"""
27from .generator import (OTP_ALGO_MD5, 27from .generator import (
28 OTP_ALGO_SHA1, 28 OTP_ALGO_MD5,
29 OTPChallengeException, 29 OTP_ALGO_SHA1,
30 OTPGenerator, 30 OTPChallengeException,
31 OTPGeneratorException) 31 OTPGenerator,
32from .server import (OTPInvalidResponse, 32 OTPGeneratorException,
33 OTPState, 33)
34 OTPStateException, 34from .server import (
35 OTPStore, 35 OTPInvalidResponse,
36 OTPStoreException) 36 OTPState,
37 37 OTPStateException,
38 OTPStore,
39 OTPStoreException,
40)
38 41
39__author__ = 'Simeon Simeonov' 42__author__ = 'Simeon Simeonov'
40__version__ = '1.0.0' 43__version__ = '1.1.0-beta1'
41__license__ = 'BSD 2-Clause' 44__license__ = 'BSD 2-Clause'
42 45
43 46
@@ -51,13 +54,15 @@ def int_or_str(value):
51 54
52VERSION = tuple(map(int_or_str, __version__.split('.'))) 55VERSION = tuple(map(int_or_str, __version__.split('.')))
53 56
54__all__ = ['OTP_ALGO_MD5', 57__all__ = [
55 'OTP_ALGO_SHA1', 58 'OTP_ALGO_MD5',
56 'OTPChallengeException', 59 'OTP_ALGO_SHA1',
57 'OTPGenerator', 60 'OTPChallengeException',
58 'OTPGeneratorException', 61 'OTPGenerator',
59 'OTPInvalidResponse', 62 'OTPGeneratorException',
60 'OTPState', 63 'OTPInvalidResponse',
61 'OTPStateException', 64 'OTPState',
62 'OTPStore', 65 'OTPStateException',
63 'OTPStoreException'] 66 'OTPStore',
67 'OTPStoreException',
68]