Debian Codegraph @

flufl/password/__init__.py

raw
1 # Copyright (C) 2004-2014 by Barry A. Warsaw
2 #
3 # This file is part of flufl.password
4 #
5 # flufl.password is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by the
7 # Free Software Foundation, version 3 of the License.
8 #
9 # flufl.password is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 # License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public License
15 # along with flufl.password. If not, see <http://www.gnu.org/licenses/>.
16
17 """Package init."""
18
19 from __future__ import absolute_import, print_function, unicode_literals
20
21 __metaclass__ = type
22 __all__ = [
23 'BadPasswordFormatError',
24 'BadPasswordSchemeError',
25 '__version__',
26 'generate',
27 'lookup',
28 'make_secret',
29 'register',
30 'verify',
31 ]
32
33
34 __version__ = '1.3'
35
36
37 from ._hash import make_secret
38 from ._generate import generate
39 from ._registry import BadPasswordSchemeError, lookup, register
40 from ._utils import BadPasswordFormatError
41 from ._verify import verify
42
43 # Register the built-in schemes by import, but don't expose this in the API.
44 # Users should import specific schemes explicitly.
45 from . import schemes as _schemes