1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

chore: 统一 __init__.py 许可头为版权声明并改用相对导入

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-28 01:35:55 +08:00
parent f7167c13f4
commit 910e3e3224
18 changed files with 102 additions and 145 deletions
+1 -10
View File
@@ -7,16 +7,7 @@ This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
from autoscript.ASEngine import ASEngine
__all__ = [
"ASEngine",
"createEngine",
"createMockTargetData",
"createAllVariablesTable",
"createTargetVarDefs",
]
from .ASEngine import ASEngine
_TARGET_VAR_DEFS = [
+6 -3
View File
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
"""
Base module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- MsgBase: Base class for messages.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+6 -3
View File
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
"""
Boot module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- AppInitializer: Application initializer class.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+9 -2
View File
@@ -1,3 +1,10 @@
from gui.ALAutoScriptOrchDialog._dialog import ALAutoScriptOrchDialog
# -*- coding: utf-8 -*-
"""
Copyright (c) 2026 KenanZhu.
All rights reserved.
__all__ = ["ALAutoScriptOrchDialog"]
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
from ._dialog import ALAutoScriptOrchDialog
+6 -16
View File
@@ -1,19 +1,9 @@
# -*- coding: utf-8 -*-
"""
GUI module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- ALMainWindow: Main window class.
- ALAboutDialog: About dialog class.
- ALConfigWidget: Configuration widget class.
- ALSeatFrame: Seat frame class.
- ALSeatMapView: Seat map view class.
- ALSeatMapTable: Seat map table class.
- ALSeatMapSelectDialog: Seat map select dialog class.
- ALTimerTaskAddDialog: Timer task add dialog class.
- ALAutoScriptOrchDialog: AutoScript orchestration dialog class.
- ALTimerTaskHistoryDialog: Timer task history dialog class.
- ALTimerTaskManageWidget: Timer task manage widget class.
- ALUserTreeWidget: User tree widget class.
- ALMainWorkers: Main workers class.
- ALVersionInfo: Version info class.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+7 -1
View File
@@ -1,3 +1,9 @@
# -*- coding: utf-8 -*-
"""
GUI resources module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+6 -8
View File
@@ -1,11 +1,9 @@
# -*- coding: utf-8 -*-
"""
Interfaces module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Defines abstract interfaces (Protocols) and shared type definitions
used across layers to decouple consumers from concrete implementations.
Key components:
- ConfigProvider: Abstract interface for configuration access.
- ConfigType: Enumeration of configuration file types.
- ConfigKey: Type-safe hierarchical key constants for config lookups.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+6 -5
View File
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
"""
Managers module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- ConfigManager: Config manager for managing configuration files.
- LogManager: Log manager for logging.
- WebDriverManager: Web driver manager for managing web drivers.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+6 -3
View File
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
"""
Config managers module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- ConfigManager: Config manager for managing configuration files.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+6 -5
View File
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
"""
Driver managers module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- WebBrowserDetector: Web browser detector class.
- WebDriverDownloader: Web driver downloader class.
- WebDriverManager: Web driver manager class.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+6 -3
View File
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
"""
Log managers module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- LogManager: Log manager for logging.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
+10 -23
View File
@@ -7,26 +7,13 @@ This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
from pages.AutoLib import AutoLib
from pages.LoginPage import LoginPage
from pages.MainShell import MainShell
from pages.ReserveView import ReserveView
from pages.RecordsView import RecordsView
from pages.components.SeatMapDialog import SeatMapDialog
from pages.components.TimeSelectDialog import TimeSelectDialog
from pages.components.ReserveResultDialog import ReserveResultDialog
from pages.components.CheckinResultDialog import CheckinResultDialog
from pages.components.RenewDialog import RenewDialog
__all__ = [
"AutoLib",
"LoginPage",
"MainShell",
"ReserveView",
"RecordsView",
"SeatMapDialog",
"TimeSelectDialog",
"ReserveResultDialog",
"CheckinResultDialog",
"RenewDialog",
]
from .AutoLib import AutoLib
from .LoginPage import LoginPage
from .MainShell import MainShell
from .ReserveView import ReserveView
from .RecordsView import RecordsView
from .components.SeatMapDialog import SeatMapDialog
from .components.TimeSelectDialog import TimeSelectDialog
from .components.ReserveResultDialog import ReserveResultDialog
from .components.CheckinResultDialog import CheckinResultDialog
from .components.RenewDialog import RenewDialog
+5 -13
View File
@@ -7,16 +7,8 @@ This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
from pages.components.SeatMapDialog import SeatMapDialog
from pages.components.TimeSelectDialog import TimeSelectDialog
from pages.components.ReserveResultDialog import ReserveResultDialog
from pages.components.CheckinResultDialog import CheckinResultDialog
from pages.components.RenewDialog import RenewDialog
__all__ = [
"SeatMapDialog",
"TimeSelectDialog",
"ReserveResultDialog",
"CheckinResultDialog",
"RenewDialog",
]
from .SeatMapDialog import SeatMapDialog
from .TimeSelectDialog import TimeSelectDialog
from .ReserveResultDialog import ReserveResultDialog
from .CheckinResultDialog import CheckinResultDialog
from .RenewDialog import RenewDialog
+3 -9
View File
@@ -7,12 +7,6 @@ This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
from pages.flows.ReserveFlow import ReserveFlow
from pages.flows.CheckinFlow import CheckinFlow
from pages.flows.RenewFlow import RenewFlow
__all__ = [
"ReserveFlow",
"CheckinFlow",
"RenewFlow",
]
from .ReserveFlow import ReserveFlow
from .CheckinFlow import CheckinFlow
from .RenewFlow import RenewFlow
+1 -7
View File
@@ -9,11 +9,5 @@ See the LICENSE file for details.
"""
from pages.strategies.TimeSelectMaker import (
minsToTimeStr,
timeStrToMins
timeStrToMins,
)
__all__ = [
"minsToTimeStr",
"timeStrToMins",
]
+3 -9
View File
@@ -7,12 +7,6 @@ This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
from pages.services.CaptchaSolver import CaptchaSolver
from pages.services.ReserveChecker import ReserveChecker
from pages.services.RecordChecker import RecordChecker
__all__ = [
"CaptchaSolver",
"ReserveChecker",
"RecordChecker",
]
from .CaptchaSolver import CaptchaSolver
from .ReserveChecker import ReserveChecker
from .RecordChecker import RecordChecker
+1 -12
View File
@@ -7,7 +7,7 @@ This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""
from pages.strategies.TimeSelectMaker import (
from .TimeSelectMaker import (
TimeSelectMaker,
TimeDecisionMaker,
TimeOptionReader,
@@ -17,14 +17,3 @@ from pages.strategies.TimeSelectMaker import (
TimeSelectionResult,
TimeRangeResult,
)
__all__ = [
"TimeSelectMaker",
"TimeDecisionMaker",
"TimeOptionReader",
"ReserveTimeReader",
"RenewTimeReader",
"TimeOption",
"TimeSelectionResult",
"TimeRangeResult",
]
+6 -5
View File
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
"""
Utils module for the AutoLibrary project.
Copyright (c) 2026 KenanZhu.
All rights reserved.
Here are the classes and modules in this package:
- TimerUtils: Timer utils class for the AutoLibrary project.
- JSONReader: JSON reader class for the AutoLibrary project.
- JSONWriter: JSON writer class for the AutoLibrary project.
This software is provided "as is", without any warranty of any kind.
You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
"""