87 lines
1.8 KiB
Python
87 lines
1.8 KiB
Python
# EU-Utility Core Package
|
|
"""
|
|
EU-Utility Core Package
|
|
=======================
|
|
|
|
This package contains the core functionality for EU-Utility, including:
|
|
- Plugin management and base classes
|
|
- API services (Nexus, HTTP, OCR, etc.)
|
|
- UI components and theming
|
|
- Event system and background tasks
|
|
- Data persistence and settings
|
|
|
|
Quick Start:
|
|
------------
|
|
from core.api import get_api
|
|
from core.event_bus import get_event_bus, LootEvent
|
|
|
|
api = get_api()
|
|
bus = get_event_bus()
|
|
|
|
Architecture:
|
|
-------------
|
|
- **api/**: Three-tier API system (PluginAPI, WidgetAPI, ExternalAPI)
|
|
- **services/**: Core services (OCR, screenshot, audio, etc.)
|
|
- **ui/**: UI components and views
|
|
- **utils/**: Utility modules (styles, security, etc.)
|
|
|
|
See individual modules for detailed documentation.
|
|
"""
|
|
|
|
__version__ = "2.1.0"
|
|
|
|
# Safe imports (no PyQt6 dependency)
|
|
from core.nexus_api import NexusAPI, get_nexus_api
|
|
from core.nexus_api import EntityType, SearchResult, ItemDetails, MarketData
|
|
|
|
from core.log_reader import LogReader, get_log_reader
|
|
|
|
from core.event_bus import (
|
|
get_event_bus,
|
|
EventBus,
|
|
EventCategory,
|
|
BaseEvent,
|
|
SkillGainEvent,
|
|
LootEvent,
|
|
DamageEvent,
|
|
GlobalEvent,
|
|
ChatEvent,
|
|
EconomyEvent,
|
|
SystemEvent,
|
|
)
|
|
|
|
# Version info
|
|
VERSION = __version__
|
|
API_VERSION = "2.2"
|
|
|
|
__all__ = [
|
|
# Version
|
|
'VERSION',
|
|
'API_VERSION',
|
|
|
|
# Nexus API
|
|
'NexusAPI',
|
|
'get_nexus_api',
|
|
'EntityType',
|
|
'SearchResult',
|
|
'ItemDetails',
|
|
'MarketData',
|
|
|
|
# Log Reader
|
|
'LogReader',
|
|
'get_log_reader',
|
|
|
|
# Event Bus
|
|
'get_event_bus',
|
|
'EventBus',
|
|
'EventCategory',
|
|
'BaseEvent',
|
|
'SkillGainEvent',
|
|
'LootEvent',
|
|
'DamageEvent',
|
|
'GlobalEvent',
|
|
'ChatEvent',
|
|
'EconomyEvent',
|
|
'SystemEvent',
|
|
]
|