-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py
More file actions
60 lines (50 loc) · 1.83 KB
/
__init__.py
File metadata and controls
60 lines (50 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- coding: utf-8 -*-
from typing import Tuple, List
# Let users know if they're missing any of our hard dependencies
hard_dependencies: Tuple[str] = ('abc',
'sys',
'os',
'logging',
'threading',
'configparser',
'datetime',
'tempfile',
'gc',
'sqlite3',
'pytest',
'numba',
'pandas',
'pyarrow',
'openpyxl')
missing_dependencies: List[str] = []
for dependency in hard_dependencies:
try:
__import__(dependency)
except ImportError as e:
missing_dependencies.append(f"{dependency}: {e}")
if missing_dependencies:
raise ImportError(
"Unable to import required dependencies:\n" + "\n".join(
missing_dependencies))
# Pending tqdm.dask module release
# from tqdm.tqdm.dask import TqdmCallback as ProgressBar
from reportio.templates import ReportTemplate
from reportio.data import Data
from reportio.templates.simple import SimpleReport
from reportio import logger
from reportio.errors import *
from reportio.future.tqdm.dask import TqdmCallback as ProgressBar
__all__ = ['ProgressBar',
'ReportTemplate',
'Data',
'SimpleReport',
'logging',
'ReportError',
'LogError',
'ConfigError',
'ReportNameError',
'DBConnectionError',
'UnexpectedDbType',
'DatasetNameError',
'EmptyReport']
# TODO: implement email delivery for outlook (and gmail?)