modm_data

API Reference

 1# Copyright 2022, Niklas Hauser
 2# SPDX-License-Identifier: MPL-2.0
 3
 4"""
 5# API Reference
 6"""
 7
 8from importlib.metadata import version, PackageNotFoundError
 9
10try:
11    __version__ = version("modm_data")
12except PackageNotFoundError:
13    __version__ = "0.0.1"
14
15
16from . import (
17    cubehal,
18    cubemx,
19    cube2owl,
20    dl,
21    header2svd,
22    html,
23    html2owl,
24    html2svd,
25    owl,
26    pdf,
27    pdf2html,
28    svd,
29    utils,
30)
31
32__all__ = [
33    "cube2owl",
34    "cubehal",
35    "cubemx",
36    "dl",
37    "header2svd",
38    "html",
39    "html2owl",
40    "html2svd",
41    "owl",
42    "pdf",
43    "pdf2html",
44    "svd",
45    "utils",
46]
47
48# Silence warnings about path import order when calling modules directly
49import sys
50
51if not sys.warnoptions:
52    import warnings
53
54    warnings.filterwarnings("ignore", category=RuntimeWarning, module="runpy")