Added more folders and restructured classes inside them.

This commit is contained in:
2026-09-12 11:10:47 +02:00
parent be7a4782e8
commit 2cbb9315bf
152 changed files with 21734 additions and 914 deletions

28
src/ptdiag/__init__.py Normal file
View File

@@ -0,0 +1,28 @@
"""PristonTale EU Linux diagnostic harness and shared binary helpers."""
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from .config import AppConfig, ConfigError, load_config
__all__ = ["AppConfig", "ConfigError", "load_config"]
__version__ = "0.1.0"
def __getattr__(name: str) -> Any:
"""Load diagnostic configuration helpers only when the full harness needs them.
The launcher release retains :mod:`ptdiag.assbin` and :mod:`ptdiag.logs` as
compatibility façades. Deferring the larger diagnostic-only imports keeps the
compact package importable without shipping the investigation harness.
"""
if name in {"AppConfig", "ConfigError", "load_config"}:
from .config import AppConfig, ConfigError, load_config
return {
"AppConfig": AppConfig,
"ConfigError": ConfigError,
"load_config": load_config,
}[name]
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")