MythTV master
__init__.py
Go to the documentation of this file.
1# Copyright (C) 2013 Johannes Dewender
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU Lesser General Public License as published by
5# the Free Software Foundation, either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU Lesser General Public License for more details.
12#
13# You should have received a copy of the GNU Lesser General Public License
14# along with this program. If not, see <http://www.gnu.org/licenses/>.
15#
16# Please submit bug reports to GitHub:
17# https://github.com/JonnyJD/python-discid/issues
18"""Python binding of Libdiscid
19
20Libdiscid is a library to calculate MusicBrainz Disc IDs.
21This module provides a python-like API for that functionality.
22
23The user is expected to create a :class:`Disc` object
24using :func:`read` or :func:`put` and extract the generated information.
25
26Importing this module will open libdiscid at the same time
27and will raise :exc:`OSError` when libdiscid is not found.
28"""
29
30from discid.disc import read, put, Disc, DiscError, TOCError
31from discid.track import Track
32from discid.libdiscid import get_default_device
34import discid.disc
35
36__version__ = "1.1.0"
37
38
39# these contants are defined here so sphinx can catch the "docstrings"
40
41LIBDISCID_VERSION_STRING = discid.libdiscid.LIBDISCID_VERSION_STRING
42"""The version string of the loaded libdiscid in the form `libdiscid x.y.z`.
43For old versions the string is `libdiscid < 0.4.0`.
44"""
45
46FEATURES = discid.libdiscid.FEATURES
47"""The features libdiscid supports for the platform as a list of strings.
48Some Functions can raise :exc:`NotImplementedError` when a feature
49is not available.
50Some features might not be implemented in this python module,
51see :data:`FEATURES_IMPLEMENTED`.
52"""
53
54FEATURES_IMPLEMENTED = discid.disc.FEATURES_IMPLEMENTED
55"""The features implemented in this python module as a list of strings.
56Some might not be available for your platform, see :data:`FEATURES`.
57"""