"""Universal homelab and fleet inventory collector and deduplicator.""" __version__ = "1.0.0" _yaml_warning_emitted = False def get_yaml_module(): """Return the yaml module if installed, or None while emitting an actionable warning on stderr.""" global _yaml_warning_emitted try: import yaml return yaml except ImportError: import sys if not _yaml_warning_emitted: sys.stderr.write("[WARN] Moduł 'pyyaml' nie jest zainstalowany w środowisku Python. " "Zainstaluj go za pomocą: pip install pyyaml (lub pip install -r requirements.txt)\n") _yaml_warning_emitted = True return None