forked from MichalDanielDobrzanski/DeepLearningPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
22 lines (14 loc) · 700 Bytes
/
Copy path__init__.py
File metadata and controls
22 lines (14 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Modernized training utilities for the "Neural Networks and Deep Learning" course."""
from importlib.metadata import PackageNotFoundError, version
try: # pragma: no cover - best effort for editable installs
__version__ = version("deeplearning-python")
except PackageNotFoundError: # pragma: no cover
__version__ = "0.0.0"
__all__ = ["__version__", "run_notebook_training"]
def __getattr__(name: str): # pragma: no cover - tiny import shim
if name == "run_notebook_training":
from .notebook import run_notebook_training as helper
return helper
raise AttributeError(name)
def __dir__() -> list[str]: # pragma: no cover - trivial
return sorted(__all__)