Files
aitbc/cli/aitbc_cli/__init__.py
aitbc 745f791eda refactor: improve error handling and remove hardcoded credentials
- Changed bare except clauses to specific exception types in web3_utils.py, testing.py, messages.py, and message_storage.py
- Replaced print() calls with logger in testing.py, agent_discovery.py, compliance_agent.py, coordinator.py, trading_agent.py, keys.py, escrow.py, persistent_spending_tracker.py, sync_cli.py, and client.py
- Added logger initialization using get_logger(__name__) in compliance_agent.py, coordinator.py, trading_agent.py, keys.py, escrow.py, persistent_spending_tracker.py, and client.py
- Removed hardcoded secret
2026-05-12 17:01:57 +02:00

32 lines
962 B
Python

"""AITBC CLI package compatibility surface."""
from __future__ import annotations
from importlib import import_module
import sys
__version__ = "0.1.0"
__author__ = "AITBC Team"
__email__ = "team@aitbc.net"
# Provide compatibility aliases for source-tree imports used by modular commands.
if "aitbc_cli.core" not in sys.modules:
sys.modules["aitbc_cli.core"] = import_module("core")
if "aitbc_cli.models" not in sys.modules:
sys.modules["aitbc_cli.models"] = import_module("models")
if "aitbc_cli.config" not in sys.modules:
sys.modules["aitbc_cli.config"] = import_module("config")
__all__ = ["cli", "main"]
def __getattr__(name: str):
"""Lazily expose the modular CLI entrypoints."""
if name not in __all__:
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
module = import_module("cli.core.main")
value = module.cli if name == "cli" else module.main
globals()[name] = value
return value