1# __init__.py - main module
2# coding: utf-8
3#
4# Copyright (C) 2010-2020 Arthur de Jong
5#
6# This library is free software; you can redistribute it and/or
7# modify it under the terms of the GNU Lesser General Public
8# License as published by the Free Software Foundation; either
9# version 2.1 of the License, or (at your option) any later version.
10#
11# This library is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14# Lesser General Public License for more details.
15#
16# You should have received a copy of the GNU Lesser General Public
17# License along with this library; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19# 02110-1301 USA
20
21"""Parse, validate and reformat standard numbers and codes.
22
23This library offers functions for parsing, validating and reformatting
24standard numbers and codes in various formats.
25
26All modules implement a common interface:
27
28>>> from stdnum import isbn
29>>> isbn.validate('978-9024538270')
30'9789024538270'
31>>> isbn.validate('978-9024538271')
32Traceback (most recent call last):
33    ...
34InvalidChecksum: ...
35
36Apart from the validate() function, many modules provide extra
37parsing, validation, formatting or conversion functions.
38"""
39
40from stdnum.util import get_cc_module
41
42
43__all__ = ('get_cc_module', '__version__')
44
45# the version number of the library
46__version__ = '1.13'
47