Coverage for adaro_rl / __init__.py: 75%
8 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-14 07:50 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-04-14 07:50 +0000
1from importlib import metadata as _metadata
3# Expose only the sub‑packages; let users dive deeper if they need
4# from . import attacks, wrappers, pipelines, zoo, viz
6__all__ = ["attacks", "wrappers", "pipelines", "zoo", "viz"]
7__version__ = _metadata.version("adaro-rl")
10def __getattr__(name: str):
11 """Lazy access to high‑level pipeline helpers."""
12 if name in {"train", "test", "online_attack", "adversarial_train"}:
13 from . import pipelines
14 return getattr(pipelines, name)
15 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")