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. You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details. See the LICENSE file for details.
""" """
from autoscript.ASEngine import ASEngine from .ASEngine import ASEngine
__all__ = [
"ASEngine",
"createEngine",
"createMockTargetData",
"createAllVariablesTable",
"createTargetVarDefs",
]
_TARGET_VAR_DEFS = [ _TARGET_VAR_DEFS = [
+7 -4
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: This software is provided "as is", without any warranty of any kind.
- MsgBase: Base class for messages. You may use, modify, and distribute this file under the terms of the MIT License.
""" See the LICENSE file for details.
"""
+7 -4
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: This software is provided "as is", without any warranty of any kind.
- AppInitializer: Application initializer class. 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
+7 -17
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: This software is provided "as is", without any warranty of any kind.
- ALMainWindow: Main window class. You may use, modify, and distribute this file under the terms of the MIT License.
- ALAboutDialog: About dialog class. See the LICENSE file for details.
- 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.
"""
+8 -2
View File
@@ -1,3 +1,9 @@
# -*- coding: utf-8 -*-
"""
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.
""" """
GUI resources module for the AutoLibrary project.
"""
+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 This software is provided "as is", without any warranty of any kind.
used across layers to decouple consumers from concrete implementations. You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details.
Key components:
- ConfigProvider: Abstract interface for configuration access.
- ConfigType: Enumeration of configuration file types.
- ConfigKey: Type-safe hierarchical key constants for config lookups.
""" """
+7 -6
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: This software is provided "as is", without any warranty of any kind.
- ConfigManager: Config manager for managing configuration files. You may use, modify, and distribute this file under the terms of the MIT License.
- LogManager: Log manager for logging. See the LICENSE file for details.
- WebDriverManager: Web driver manager for managing web drivers. """
"""
+7 -4
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: This software is provided "as is", without any warranty of any kind.
- ConfigManager: Config manager for managing configuration files. You may use, modify, and distribute this file under the terms of the MIT License.
""" See the LICENSE file for details.
"""
+7 -6
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: This software is provided "as is", without any warranty of any kind.
- WebBrowserDetector: Web browser detector class. You may use, modify, and distribute this file under the terms of the MIT License.
- WebDriverDownloader: Web driver downloader class. See the LICENSE file for details.
- WebDriverManager: Web driver manager class. """
"""
+7 -4
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: This software is provided "as is", without any warranty of any kind.
- LogManager: Log manager for logging. 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. You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details. See the LICENSE file for details.
""" """
from pages.AutoLib import AutoLib from .AutoLib import AutoLib
from pages.LoginPage import LoginPage from .LoginPage import LoginPage
from pages.MainShell import MainShell from .MainShell import MainShell
from pages.ReserveView import ReserveView from .ReserveView import ReserveView
from pages.RecordsView import RecordsView from .RecordsView import RecordsView
from pages.components.SeatMapDialog import SeatMapDialog from .components.SeatMapDialog import SeatMapDialog
from pages.components.TimeSelectDialog import TimeSelectDialog from .components.TimeSelectDialog import TimeSelectDialog
from pages.components.ReserveResultDialog import ReserveResultDialog from .components.ReserveResultDialog import ReserveResultDialog
from pages.components.CheckinResultDialog import CheckinResultDialog from .components.CheckinResultDialog import CheckinResultDialog
from pages.components.RenewDialog import RenewDialog from .components.RenewDialog import RenewDialog
__all__ = [
"AutoLib",
"LoginPage",
"MainShell",
"ReserveView",
"RecordsView",
"SeatMapDialog",
"TimeSelectDialog",
"ReserveResultDialog",
"CheckinResultDialog",
"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. You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details. See the LICENSE file for details.
""" """
from pages.components.SeatMapDialog import SeatMapDialog from .SeatMapDialog import SeatMapDialog
from pages.components.TimeSelectDialog import TimeSelectDialog from .TimeSelectDialog import TimeSelectDialog
from pages.components.ReserveResultDialog import ReserveResultDialog from .ReserveResultDialog import ReserveResultDialog
from pages.components.CheckinResultDialog import CheckinResultDialog from .CheckinResultDialog import CheckinResultDialog
from pages.components.RenewDialog import RenewDialog from .RenewDialog import RenewDialog
__all__ = [
"SeatMapDialog",
"TimeSelectDialog",
"ReserveResultDialog",
"CheckinResultDialog",
"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. You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details. See the LICENSE file for details.
""" """
from pages.flows.ReserveFlow import ReserveFlow from .ReserveFlow import ReserveFlow
from pages.flows.CheckinFlow import CheckinFlow from .CheckinFlow import CheckinFlow
from pages.flows.RenewFlow import RenewFlow from .RenewFlow import RenewFlow
__all__ = [
"ReserveFlow",
"CheckinFlow",
"RenewFlow",
]
+1 -7
View File
@@ -9,11 +9,5 @@ See the LICENSE file for details.
""" """
from pages.strategies.TimeSelectMaker import ( from pages.strategies.TimeSelectMaker import (
minsToTimeStr, 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. You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details. See the LICENSE file for details.
""" """
from pages.services.CaptchaSolver import CaptchaSolver from .CaptchaSolver import CaptchaSolver
from pages.services.ReserveChecker import ReserveChecker from .ReserveChecker import ReserveChecker
from pages.services.RecordChecker import RecordChecker from .RecordChecker import RecordChecker
__all__ = [
"CaptchaSolver",
"ReserveChecker",
"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. You may use, modify, and distribute this file under the terms of the MIT License.
See the LICENSE file for details. See the LICENSE file for details.
""" """
from pages.strategies.TimeSelectMaker import ( from .TimeSelectMaker import (
TimeSelectMaker, TimeSelectMaker,
TimeDecisionMaker, TimeDecisionMaker,
TimeOptionReader, TimeOptionReader,
@@ -17,14 +17,3 @@ from pages.strategies.TimeSelectMaker import (
TimeSelectionResult, TimeSelectionResult,
TimeRangeResult, 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: This software is provided "as is", without any warranty of any kind.
- TimerUtils: Timer utils class for the AutoLibrary project. You may use, modify, and distribute this file under the terms of the MIT License.
- JSONReader: JSON reader class for the AutoLibrary project. See the LICENSE file for details.
- JSONWriter: JSON writer class for the AutoLibrary project.
""" """