UtilityLibAPI 1.2512.2901__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- utilitylibapi-1.2512.2901/LICENSE +20 -0
- utilitylibapi-1.2512.2901/MANIFEST.in +3 -0
- utilitylibapi-1.2512.2901/PKG-INFO +79 -0
- utilitylibapi-1.2512.2901/README.md +47 -0
- utilitylibapi-1.2512.2901/pyproject.toml +22 -0
- utilitylibapi-1.2512.2901/setup.cfg +4 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/Archive7zLib.cp310-win_amd64.pyd +0 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/Archive7zLib.pyi +12 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/EnDeCodeCppPyLib.cp310-win_amd64.pyd +0 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/EnDeCodeCppPyLib.pyi +9 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/EnDeCodeLib.cp310-win_amd64.pyd +0 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/EnDeCodeLib.pyi +12 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/ExtWrapper7zLib.cp310-win_amd64.pyd +0 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/ExtWrapper7zLib.pyi +14 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/MailSenderLib.cp310-win_amd64.pyd +0 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/MailSenderLib.pyi +24 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/SessionVARLib.cp310-win_amd64.pyd +0 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/SessionVARLib.pyi +13 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/__init__.py +14 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/out/UtilityLibAPI/Archive7zLib.pyi +12 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/out/UtilityLibAPI/EnDeCodeCppPyLib.pyi +9 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/out/UtilityLibAPI/EnDeCodeLib.pyi +12 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/out/UtilityLibAPI/ExtWrapper7zLib.pyi +14 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/out/UtilityLibAPI/MailSenderLib.pyi +24 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI/out/UtilityLibAPI/SessionVARLib.pyi +13 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI.egg-info/PKG-INFO +79 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI.egg-info/SOURCES.txt +29 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI.egg-info/dependency_links.txt +1 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI.egg-info/requires.txt +1 -0
- utilitylibapi-1.2512.2901/src/UtilityLibAPI.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2025 James Lin **UtilityLibAPI**
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is granted for **personal, educational, or non-commercial use only**.
|
|
6
|
+
You **may NOT**:
|
|
7
|
+
|
|
8
|
+
1. Sell or otherwise commercially exploit this software or any part of it.
|
|
9
|
+
2. Reproduce, distribute, or sublicense this software for commercial purposes.
|
|
10
|
+
3. Modify or create derivative works for commercial purposes without explicit written permission from the copyright holder.
|
|
11
|
+
|
|
12
|
+
You **may**:
|
|
13
|
+
|
|
14
|
+
- Use the software for personal learning, research, or internal company evaluation (non-commercial).
|
|
15
|
+
- Share the software with attribution to the original author, as long as it is not for commercial gain.
|
|
16
|
+
|
|
17
|
+
**Disclaimer:**
|
|
18
|
+
This software is provided "AS IS", without any warranty of any kind, either expressed or implied,
|
|
19
|
+
including but not limited to the warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
20
|
+
In no event shall the author be liable for any claim, damages, or other liability arising from, out of, or in connection with the software or its use.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: UtilityLibAPI
|
|
3
|
+
Version: 1.2512.2901
|
|
4
|
+
Summary: UtilityLibAPI Python package
|
|
5
|
+
Author-email: James Lin <tylin123@ms27.hinet.net>
|
|
6
|
+
License: Copyright (c) 2025 James Lin **UtilityLibAPI**
|
|
7
|
+
|
|
8
|
+
All rights reserved.
|
|
9
|
+
|
|
10
|
+
Permission is granted for **personal, educational, or non-commercial use only**.
|
|
11
|
+
You **may NOT**:
|
|
12
|
+
|
|
13
|
+
1. Sell or otherwise commercially exploit this software or any part of it.
|
|
14
|
+
2. Reproduce, distribute, or sublicense this software for commercial purposes.
|
|
15
|
+
3. Modify or create derivative works for commercial purposes without explicit written permission from the copyright holder.
|
|
16
|
+
|
|
17
|
+
You **may**:
|
|
18
|
+
|
|
19
|
+
- Use the software for personal learning, research, or internal company evaluation (non-commercial).
|
|
20
|
+
- Share the software with attribution to the original author, as long as it is not for commercial gain.
|
|
21
|
+
|
|
22
|
+
**Disclaimer:**
|
|
23
|
+
This software is provided "AS IS", without any warranty of any kind, either expressed or implied,
|
|
24
|
+
including but not limited to the warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
25
|
+
In no event shall the author be liable for any claim, damages, or other liability arising from, out of, or in connection with the software or its use.
|
|
26
|
+
|
|
27
|
+
Project-URL: Homepage, https://mis.gotech.biz
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Requires-Dist: pymysql
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
#UtilityLibAPI Classes
|
|
34
|
+
|
|
35
|
+
## History of version
|
|
36
|
+
Version 1.2512.2901: 2025/12/29<BR>
|
|
37
|
+
MailSenderLib: CUF_Open() of CLASS_MailSender add parameter timeout.
|
|
38
|
+
|
|
39
|
+
Version 1.2512.1001: 2025/12/10<BR>
|
|
40
|
+
1) Improve performace and speed for windows environment.<BR>
|
|
41
|
+
2) Add CLASS_EnDeCodeCppPy class<BR>
|
|
42
|
+
3) Remove CLASS_EnDeCode::CUF_CROSS_EncodeBase64(), CLASS_EnDeCode::CUF_CROSS_DecodeBase64()<BR>
|
|
43
|
+
|
|
44
|
+
Version 1.2512.0801: 2025/12/08<BR>
|
|
45
|
+
Modify CUF_Open() function for multi user accounts.
|
|
46
|
+
|
|
47
|
+
Version 1.2512.0501: 2025/12/05<BR>
|
|
48
|
+
Fixed break down when smtp server not auth or response time out.
|
|
49
|
+
|
|
50
|
+
Version 1.2511.292: 2025/11/29<BR>
|
|
51
|
+
Add Event for send mail when success or failure.
|
|
52
|
+
|
|
53
|
+
Version 1.2511.291: 2025/11/29<BR>
|
|
54
|
+
Fixed MailSenderLib: Attachement file name encode problem.
|
|
55
|
+
Add function for user can modify mail caption of from field.
|
|
56
|
+
|
|
57
|
+
Version 1.2511.282: 2025/11/27<BR>
|
|
58
|
+
Fixed MailSenderLib: Attachement file name encode problem.
|
|
59
|
+
|
|
60
|
+
Version 1.2511.281: 2025/11/27<BR>
|
|
61
|
+
Modified 7zArchiveLib to Archive7zLib --> 7z Archive tools library
|
|
62
|
+
|
|
63
|
+
Version 1.2511.28: 2025/11/27<BR>
|
|
64
|
+
Fixed 7zArchiveLib --> 7z Archive tools library
|
|
65
|
+
|
|
66
|
+
Version 1.2511.27: 2025/11/27<BR>
|
|
67
|
+
Add 7zArchiveLib --> 7z Archive tools library
|
|
68
|
+
|
|
69
|
+
Version 1.2510.22: 2025/10/21<BR>
|
|
70
|
+
Add ExtWrapper7zLib --> 7z Archive tools library
|
|
71
|
+
|
|
72
|
+
Version 1.2510.22: 2025/10/21<BR>
|
|
73
|
+
Add MailSenderLib --> CLASS_MailSender library
|
|
74
|
+
|
|
75
|
+
Version 0.1.1: 2025/10/13<BR>
|
|
76
|
+
Fixed export class path<BR>
|
|
77
|
+
|
|
78
|
+
Version 0.1.0: 2025/10/13<BR>
|
|
79
|
+
Create UtilityLibAPI -- EnDeCodeLib + SessionVARLib<BR>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#UtilityLibAPI Classes
|
|
2
|
+
|
|
3
|
+
## History of version
|
|
4
|
+
Version 1.2512.2901: 2025/12/29<BR>
|
|
5
|
+
MailSenderLib: CUF_Open() of CLASS_MailSender add parameter timeout.
|
|
6
|
+
|
|
7
|
+
Version 1.2512.1001: 2025/12/10<BR>
|
|
8
|
+
1) Improve performace and speed for windows environment.<BR>
|
|
9
|
+
2) Add CLASS_EnDeCodeCppPy class<BR>
|
|
10
|
+
3) Remove CLASS_EnDeCode::CUF_CROSS_EncodeBase64(), CLASS_EnDeCode::CUF_CROSS_DecodeBase64()<BR>
|
|
11
|
+
|
|
12
|
+
Version 1.2512.0801: 2025/12/08<BR>
|
|
13
|
+
Modify CUF_Open() function for multi user accounts.
|
|
14
|
+
|
|
15
|
+
Version 1.2512.0501: 2025/12/05<BR>
|
|
16
|
+
Fixed break down when smtp server not auth or response time out.
|
|
17
|
+
|
|
18
|
+
Version 1.2511.292: 2025/11/29<BR>
|
|
19
|
+
Add Event for send mail when success or failure.
|
|
20
|
+
|
|
21
|
+
Version 1.2511.291: 2025/11/29<BR>
|
|
22
|
+
Fixed MailSenderLib: Attachement file name encode problem.
|
|
23
|
+
Add function for user can modify mail caption of from field.
|
|
24
|
+
|
|
25
|
+
Version 1.2511.282: 2025/11/27<BR>
|
|
26
|
+
Fixed MailSenderLib: Attachement file name encode problem.
|
|
27
|
+
|
|
28
|
+
Version 1.2511.281: 2025/11/27<BR>
|
|
29
|
+
Modified 7zArchiveLib to Archive7zLib --> 7z Archive tools library
|
|
30
|
+
|
|
31
|
+
Version 1.2511.28: 2025/11/27<BR>
|
|
32
|
+
Fixed 7zArchiveLib --> 7z Archive tools library
|
|
33
|
+
|
|
34
|
+
Version 1.2511.27: 2025/11/27<BR>
|
|
35
|
+
Add 7zArchiveLib --> 7z Archive tools library
|
|
36
|
+
|
|
37
|
+
Version 1.2510.22: 2025/10/21<BR>
|
|
38
|
+
Add ExtWrapper7zLib --> 7z Archive tools library
|
|
39
|
+
|
|
40
|
+
Version 1.2510.22: 2025/10/21<BR>
|
|
41
|
+
Add MailSenderLib --> CLASS_MailSender library
|
|
42
|
+
|
|
43
|
+
Version 0.1.1: 2025/10/13<BR>
|
|
44
|
+
Fixed export class path<BR>
|
|
45
|
+
|
|
46
|
+
Version 0.1.0: 2025/10/13<BR>
|
|
47
|
+
Create UtilityLibAPI -- EnDeCodeLib + SessionVARLib<BR>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "UtilityLibAPI"
|
|
7
|
+
version = "1.2512.2901"
|
|
8
|
+
description = "UtilityLibAPI Python package"
|
|
9
|
+
authors = [
|
|
10
|
+
{ name="James Lin", email="tylin123@ms27.hinet.net" }
|
|
11
|
+
]
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
license = { file = "LICENSE" }
|
|
14
|
+
dependencies = [
|
|
15
|
+
"pymysql",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[project.urls]
|
|
19
|
+
Homepage = "https://mis.gotech.biz"
|
|
20
|
+
|
|
21
|
+
[tools.setuptools.packages.find]
|
|
22
|
+
where = ["src"]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_Archive7z:
|
|
4
|
+
on_progress: Incomplete
|
|
5
|
+
seven_zip_path: Incomplete
|
|
6
|
+
def __init__(self) -> None: ...
|
|
7
|
+
def CUF_SET_ProgressEvent(self, func_progress) -> None: ...
|
|
8
|
+
def CUF_CompressFolder(self, Pms_FolderName: str, Pms_File7z: str, Pms_Password: str = None, Pmi_SplitSize_K: int = -1): ...
|
|
9
|
+
def CUF_CompressFile(self, Pms_FileSource: str, Pms_File7z: str, Pms_Password: str = None, Pmi_SplitSize_K: int = -1): ...
|
|
10
|
+
def CUF_Decompress(self, Pms_ArchiveFile, Pms_OutputDir, Pms_Password=None): ...
|
|
11
|
+
|
|
12
|
+
def GE_ProgressEvent(Pmf_Percent) -> None: ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_EnDeCodeCppPy:
|
|
4
|
+
CVmba_CppPyKeys: Incomplete
|
|
5
|
+
def __init__(self, Pmsa_CppPyKeys) -> None: ...
|
|
6
|
+
def CVF_ADV_Encrypt(self, Pms_b64: str) -> str: ...
|
|
7
|
+
def CVF_ADV_Decrypt(self, Pms_Merged: str) -> str: ...
|
|
8
|
+
def CUF_ENCRYPT_B64(self, Pms_Text: str) -> str: ...
|
|
9
|
+
def CUF_DECRYPT_B64(self, Pms_ENC_Text: str) -> str: ...
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_EnDeCodeLib:
|
|
4
|
+
CVmba_CROSS_KEY: Incomplete
|
|
5
|
+
CVms_CROSS_ASC: str
|
|
6
|
+
CVms_CROSS_MAP: str
|
|
7
|
+
def __init__(self) -> None: ...
|
|
8
|
+
def CVF_CROSS_XOR(self, Pmc_SRC_CH): ...
|
|
9
|
+
def CUF_CROSS_SetKey(self, Rmca_KeyCode) -> None: ...
|
|
10
|
+
def CUF_CROSS_GetKey(self): ...
|
|
11
|
+
def CUF_CROSS_EnCode(self, Pms_SRC_Text): ...
|
|
12
|
+
def CUF_CROSS_DeCode(self, Pms_ENC_Text): ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from typing import Callable
|
|
3
|
+
|
|
4
|
+
class CLASS_ExtWrapper7z:
|
|
5
|
+
Pms_7z_path: Incomplete
|
|
6
|
+
tasks: dict[int, dict]
|
|
7
|
+
task_counter: int
|
|
8
|
+
lock: Incomplete
|
|
9
|
+
def __init__(self, Pms_7z_path: str | None = None) -> None: ...
|
|
10
|
+
def CUF_Find7zPath(self) -> str | None: ...
|
|
11
|
+
def CUF_AddTask(self, Pms_Mode: str, Pms_InputPath: str, Pms_OutputPath: str, Pmi_VolumeSizeMB: int = 0, Pms_Password: str = '', Pmf_Callback: Callable[[int, float, str], None] | None = None) -> int: ...
|
|
12
|
+
def CUF_CancelTask(self, Pmi_TaskID: int): ...
|
|
13
|
+
def CUF_GetTotalProgress(self) -> float: ...
|
|
14
|
+
def CUF_GetTaskStatus(self, Pmi_TaskID: int) -> str: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import smtplib
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
from email import encoders as encoders
|
|
4
|
+
from email.mime.base import MIMEBase as MIMEBase
|
|
5
|
+
from email.mime.multipart import MIMEMultipart
|
|
6
|
+
|
|
7
|
+
class CLASS_MailSender:
|
|
8
|
+
CVms_SMTP_Server: Incomplete
|
|
9
|
+
CVmi_Port: Incomplete
|
|
10
|
+
CVms_Account: Incomplete
|
|
11
|
+
CVms_Password: Incomplete
|
|
12
|
+
CVmb_UseSSL: Incomplete
|
|
13
|
+
OnAfterSendSuccess: Callable[[str], None] | None
|
|
14
|
+
OnAfterSendFailure: Callable[[str], None] | None
|
|
15
|
+
CVobj_Server: smtplib.SMTP | None
|
|
16
|
+
def __init__(self, Pms_SMTP_Server: str, Pmi_Port: int, Pms_Account: str, Pms_Password: str, Pmb_UseSSL: bool = True) -> None: ...
|
|
17
|
+
def CUF_Open(self, Pms_Account: str, Pms_PassWD: str, Pmi_TimeOut: int = 10) -> bool: ...
|
|
18
|
+
def CUF_Close(self) -> None: ...
|
|
19
|
+
def CUF_Reconnect(self, Pmi_TimeOut: int = 10) -> bool: ...
|
|
20
|
+
def CUF_CreateMessage(self, Pms_Subject: str, Pms_BodyText: str, Pms_BodyHTML: str | None = None, Pms_From: str | None = None, Pobj_To: list[str] | None = None, Pobj_Cc: list[str] | None = None, Pobj_Bcc: list[str] | None = None, Pobj_Attachments: list[str] | None = None) -> MIMEMultipart: ...
|
|
21
|
+
def CUF_SendMail(self, Pms_Subject: str, Pms_BodyText: str, Pms_BodyHTML: str | None, Pobj_To: list[str], Pms_From: str | None = None, Pobj_Cc: list[str] | None = None, Pobj_Bcc: list[str] | None = None, Pobj_Attachments: list[str] | None = None) -> bool: ...
|
|
22
|
+
|
|
23
|
+
def GE_OnSendSuccess(Pms_Subject: str): ...
|
|
24
|
+
def GE_OnSendFailure(Pms_ErrMsg: str): ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_SessionVAR:
|
|
4
|
+
conn: Incomplete
|
|
5
|
+
cursor: Incomplete
|
|
6
|
+
table_name: str
|
|
7
|
+
def __init__(self) -> None: ...
|
|
8
|
+
def CUF_New_SessionID(self): ...
|
|
9
|
+
def CUF_Create(self, Pms_host: str, Pmi_port: int, Pms_user: str, Pms_password: str, Pms_db: str, Pms_SessionID: str = None, Pms_table_name: str = '_session_table'): ...
|
|
10
|
+
def CUF_SET(self, Pms_SessionID, Pms_VarName, Pms_VarValue) -> None: ...
|
|
11
|
+
def CUF_GET(self, Pms_SessionID, Pms_VarName): ...
|
|
12
|
+
def CUF_Release(self, Pms_param) -> None: ...
|
|
13
|
+
def CUF_Close(self) -> None: ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from .EnDeCodeLib import CLASS_EnDeCodeLib
|
|
2
|
+
from .EnDeCodeCppPyLib import CLASS_EnDeCodeCppPy
|
|
3
|
+
from .SessionVARLib import CLASS_SessionVAR
|
|
4
|
+
from .MailSenderLib import CLASS_MailSender
|
|
5
|
+
from .Archive7zLib import CLASS_Archive7z
|
|
6
|
+
from .ExtWrapper7zLib import CLASS_ExtWrapper7z
|
|
7
|
+
|
|
8
|
+
__all__ = ["CLASS_EnDeCodeLib",
|
|
9
|
+
"CLASS_EnDeCodeCppPy",
|
|
10
|
+
"CLASS_SessionVAR",
|
|
11
|
+
"CLASS_MailSender",
|
|
12
|
+
"CLASS_ExtWrapper7z",
|
|
13
|
+
"CLASS_Archive7z"
|
|
14
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_Archive7z:
|
|
4
|
+
on_progress: Incomplete
|
|
5
|
+
seven_zip_path: Incomplete
|
|
6
|
+
def __init__(self) -> None: ...
|
|
7
|
+
def CUF_SET_ProgressEvent(self, func_progress) -> None: ...
|
|
8
|
+
def CUF_CompressFolder(self, Pms_FolderName: str, Pms_File7z: str, Pms_Password: str = None, Pmi_SplitSize_K: int = -1): ...
|
|
9
|
+
def CUF_CompressFile(self, Pms_FileSource: str, Pms_File7z: str, Pms_Password: str = None, Pmi_SplitSize_K: int = -1): ...
|
|
10
|
+
def CUF_Decompress(self, Pms_ArchiveFile, Pms_OutputDir, Pms_Password=None): ...
|
|
11
|
+
|
|
12
|
+
def GE_ProgressEvent(Pmf_Percent) -> None: ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_EnDeCodeCppPy:
|
|
4
|
+
CVmba_CppPyKeys: Incomplete
|
|
5
|
+
def __init__(self, Pmsa_CppPyKeys) -> None: ...
|
|
6
|
+
def CVF_ADV_Encrypt(self, Pms_b64: str) -> str: ...
|
|
7
|
+
def CVF_ADV_Decrypt(self, Pms_Merged: str) -> str: ...
|
|
8
|
+
def CUF_ENCRYPT_B64(self, Pms_Text: str) -> str: ...
|
|
9
|
+
def CUF_DECRYPT_B64(self, Pms_ENC_Text: str) -> str: ...
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_EnDeCodeLib:
|
|
4
|
+
CVmba_CROSS_KEY: Incomplete
|
|
5
|
+
CVms_CROSS_ASC: str
|
|
6
|
+
CVms_CROSS_MAP: str
|
|
7
|
+
def __init__(self) -> None: ...
|
|
8
|
+
def CVF_CROSS_XOR(self, Pmc_SRC_CH): ...
|
|
9
|
+
def CUF_CROSS_SetKey(self, Rmca_KeyCode) -> None: ...
|
|
10
|
+
def CUF_CROSS_GetKey(self): ...
|
|
11
|
+
def CUF_CROSS_EnCode(self, Pms_SRC_Text): ...
|
|
12
|
+
def CUF_CROSS_DeCode(self, Pms_ENC_Text): ...
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from typing import Callable
|
|
3
|
+
|
|
4
|
+
class CLASS_ExtWrapper7z:
|
|
5
|
+
Pms_7z_path: Incomplete
|
|
6
|
+
tasks: dict[int, dict]
|
|
7
|
+
task_counter: int
|
|
8
|
+
lock: Incomplete
|
|
9
|
+
def __init__(self, Pms_7z_path: str | None = None) -> None: ...
|
|
10
|
+
def CUF_Find7zPath(self) -> str | None: ...
|
|
11
|
+
def CUF_AddTask(self, Pms_Mode: str, Pms_InputPath: str, Pms_OutputPath: str, Pmi_VolumeSizeMB: int = 0, Pms_Password: str = '', Pmf_Callback: Callable[[int, float, str], None] | None = None) -> int: ...
|
|
12
|
+
def CUF_CancelTask(self, Pmi_TaskID: int): ...
|
|
13
|
+
def CUF_GetTotalProgress(self) -> float: ...
|
|
14
|
+
def CUF_GetTaskStatus(self, Pmi_TaskID: int) -> str: ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import smtplib
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
from email import encoders as encoders
|
|
4
|
+
from email.mime.base import MIMEBase as MIMEBase
|
|
5
|
+
from email.mime.multipart import MIMEMultipart
|
|
6
|
+
|
|
7
|
+
class CLASS_MailSender:
|
|
8
|
+
CVms_SMTP_Server: Incomplete
|
|
9
|
+
CVmi_Port: Incomplete
|
|
10
|
+
CVms_Account: Incomplete
|
|
11
|
+
CVms_Password: Incomplete
|
|
12
|
+
CVmb_UseSSL: Incomplete
|
|
13
|
+
OnAfterSendSuccess: Callable[[str], None] | None
|
|
14
|
+
OnAfterSendFailure: Callable[[str], None] | None
|
|
15
|
+
CVobj_Server: smtplib.SMTP | None
|
|
16
|
+
def __init__(self, Pms_SMTP_Server: str, Pmi_Port: int, Pms_Account: str, Pms_Password: str, Pmb_UseSSL: bool = True) -> None: ...
|
|
17
|
+
def CUF_Open(self, Pms_Account: str, Pms_PassWD: str, Pmi_TimeOut: int = 10) -> bool: ...
|
|
18
|
+
def CUF_Close(self) -> None: ...
|
|
19
|
+
def CUF_Reconnect(self, Pmi_TimeOut: int = 10) -> bool: ...
|
|
20
|
+
def CUF_CreateMessage(self, Pms_Subject: str, Pms_BodyText: str, Pms_BodyHTML: str | None = None, Pms_From: str | None = None, Pobj_To: list[str] | None = None, Pobj_Cc: list[str] | None = None, Pobj_Bcc: list[str] | None = None, Pobj_Attachments: list[str] | None = None) -> MIMEMultipart: ...
|
|
21
|
+
def CUF_SendMail(self, Pms_Subject: str, Pms_BodyText: str, Pms_BodyHTML: str | None, Pobj_To: list[str], Pms_From: str | None = None, Pobj_Cc: list[str] | None = None, Pobj_Bcc: list[str] | None = None, Pobj_Attachments: list[str] | None = None) -> bool: ...
|
|
22
|
+
|
|
23
|
+
def GE_OnSendSuccess(Pms_Subject: str): ...
|
|
24
|
+
def GE_OnSendFailure(Pms_ErrMsg: str): ...
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class CLASS_SessionVAR:
|
|
4
|
+
conn: Incomplete
|
|
5
|
+
cursor: Incomplete
|
|
6
|
+
table_name: str
|
|
7
|
+
def __init__(self) -> None: ...
|
|
8
|
+
def CUF_New_SessionID(self): ...
|
|
9
|
+
def CUF_Create(self, Pms_host: str, Pmi_port: int, Pms_user: str, Pms_password: str, Pms_db: str, Pms_SessionID: str = None, Pms_table_name: str = '_session_table'): ...
|
|
10
|
+
def CUF_SET(self, Pms_SessionID, Pms_VarName, Pms_VarValue) -> None: ...
|
|
11
|
+
def CUF_GET(self, Pms_SessionID, Pms_VarName): ...
|
|
12
|
+
def CUF_Release(self, Pms_param) -> None: ...
|
|
13
|
+
def CUF_Close(self) -> None: ...
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: UtilityLibAPI
|
|
3
|
+
Version: 1.2512.2901
|
|
4
|
+
Summary: UtilityLibAPI Python package
|
|
5
|
+
Author-email: James Lin <tylin123@ms27.hinet.net>
|
|
6
|
+
License: Copyright (c) 2025 James Lin **UtilityLibAPI**
|
|
7
|
+
|
|
8
|
+
All rights reserved.
|
|
9
|
+
|
|
10
|
+
Permission is granted for **personal, educational, or non-commercial use only**.
|
|
11
|
+
You **may NOT**:
|
|
12
|
+
|
|
13
|
+
1. Sell or otherwise commercially exploit this software or any part of it.
|
|
14
|
+
2. Reproduce, distribute, or sublicense this software for commercial purposes.
|
|
15
|
+
3. Modify or create derivative works for commercial purposes without explicit written permission from the copyright holder.
|
|
16
|
+
|
|
17
|
+
You **may**:
|
|
18
|
+
|
|
19
|
+
- Use the software for personal learning, research, or internal company evaluation (non-commercial).
|
|
20
|
+
- Share the software with attribution to the original author, as long as it is not for commercial gain.
|
|
21
|
+
|
|
22
|
+
**Disclaimer:**
|
|
23
|
+
This software is provided "AS IS", without any warranty of any kind, either expressed or implied,
|
|
24
|
+
including but not limited to the warranties of merchantability, fitness for a particular purpose, or non-infringement.
|
|
25
|
+
In no event shall the author be liable for any claim, damages, or other liability arising from, out of, or in connection with the software or its use.
|
|
26
|
+
|
|
27
|
+
Project-URL: Homepage, https://mis.gotech.biz
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Requires-Dist: pymysql
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
#UtilityLibAPI Classes
|
|
34
|
+
|
|
35
|
+
## History of version
|
|
36
|
+
Version 1.2512.2901: 2025/12/29<BR>
|
|
37
|
+
MailSenderLib: CUF_Open() of CLASS_MailSender add parameter timeout.
|
|
38
|
+
|
|
39
|
+
Version 1.2512.1001: 2025/12/10<BR>
|
|
40
|
+
1) Improve performace and speed for windows environment.<BR>
|
|
41
|
+
2) Add CLASS_EnDeCodeCppPy class<BR>
|
|
42
|
+
3) Remove CLASS_EnDeCode::CUF_CROSS_EncodeBase64(), CLASS_EnDeCode::CUF_CROSS_DecodeBase64()<BR>
|
|
43
|
+
|
|
44
|
+
Version 1.2512.0801: 2025/12/08<BR>
|
|
45
|
+
Modify CUF_Open() function for multi user accounts.
|
|
46
|
+
|
|
47
|
+
Version 1.2512.0501: 2025/12/05<BR>
|
|
48
|
+
Fixed break down when smtp server not auth or response time out.
|
|
49
|
+
|
|
50
|
+
Version 1.2511.292: 2025/11/29<BR>
|
|
51
|
+
Add Event for send mail when success or failure.
|
|
52
|
+
|
|
53
|
+
Version 1.2511.291: 2025/11/29<BR>
|
|
54
|
+
Fixed MailSenderLib: Attachement file name encode problem.
|
|
55
|
+
Add function for user can modify mail caption of from field.
|
|
56
|
+
|
|
57
|
+
Version 1.2511.282: 2025/11/27<BR>
|
|
58
|
+
Fixed MailSenderLib: Attachement file name encode problem.
|
|
59
|
+
|
|
60
|
+
Version 1.2511.281: 2025/11/27<BR>
|
|
61
|
+
Modified 7zArchiveLib to Archive7zLib --> 7z Archive tools library
|
|
62
|
+
|
|
63
|
+
Version 1.2511.28: 2025/11/27<BR>
|
|
64
|
+
Fixed 7zArchiveLib --> 7z Archive tools library
|
|
65
|
+
|
|
66
|
+
Version 1.2511.27: 2025/11/27<BR>
|
|
67
|
+
Add 7zArchiveLib --> 7z Archive tools library
|
|
68
|
+
|
|
69
|
+
Version 1.2510.22: 2025/10/21<BR>
|
|
70
|
+
Add ExtWrapper7zLib --> 7z Archive tools library
|
|
71
|
+
|
|
72
|
+
Version 1.2510.22: 2025/10/21<BR>
|
|
73
|
+
Add MailSenderLib --> CLASS_MailSender library
|
|
74
|
+
|
|
75
|
+
Version 0.1.1: 2025/10/13<BR>
|
|
76
|
+
Fixed export class path<BR>
|
|
77
|
+
|
|
78
|
+
Version 0.1.0: 2025/10/13<BR>
|
|
79
|
+
Create UtilityLibAPI -- EnDeCodeLib + SessionVARLib<BR>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
setup.cfg
|
|
6
|
+
src/UtilityLibAPI/Archive7zLib.cp310-win_amd64.pyd
|
|
7
|
+
src/UtilityLibAPI/Archive7zLib.pyi
|
|
8
|
+
src/UtilityLibAPI/EnDeCodeCppPyLib.cp310-win_amd64.pyd
|
|
9
|
+
src/UtilityLibAPI/EnDeCodeCppPyLib.pyi
|
|
10
|
+
src/UtilityLibAPI/EnDeCodeLib.cp310-win_amd64.pyd
|
|
11
|
+
src/UtilityLibAPI/EnDeCodeLib.pyi
|
|
12
|
+
src/UtilityLibAPI/ExtWrapper7zLib.cp310-win_amd64.pyd
|
|
13
|
+
src/UtilityLibAPI/ExtWrapper7zLib.pyi
|
|
14
|
+
src/UtilityLibAPI/MailSenderLib.cp310-win_amd64.pyd
|
|
15
|
+
src/UtilityLibAPI/MailSenderLib.pyi
|
|
16
|
+
src/UtilityLibAPI/SessionVARLib.cp310-win_amd64.pyd
|
|
17
|
+
src/UtilityLibAPI/SessionVARLib.pyi
|
|
18
|
+
src/UtilityLibAPI/__init__.py
|
|
19
|
+
src/UtilityLibAPI.egg-info/PKG-INFO
|
|
20
|
+
src/UtilityLibAPI.egg-info/SOURCES.txt
|
|
21
|
+
src/UtilityLibAPI.egg-info/dependency_links.txt
|
|
22
|
+
src/UtilityLibAPI.egg-info/requires.txt
|
|
23
|
+
src/UtilityLibAPI.egg-info/top_level.txt
|
|
24
|
+
src/UtilityLibAPI/out/UtilityLibAPI/Archive7zLib.pyi
|
|
25
|
+
src/UtilityLibAPI/out/UtilityLibAPI/EnDeCodeCppPyLib.pyi
|
|
26
|
+
src/UtilityLibAPI/out/UtilityLibAPI/EnDeCodeLib.pyi
|
|
27
|
+
src/UtilityLibAPI/out/UtilityLibAPI/ExtWrapper7zLib.pyi
|
|
28
|
+
src/UtilityLibAPI/out/UtilityLibAPI/MailSenderLib.pyi
|
|
29
|
+
src/UtilityLibAPI/out/UtilityLibAPI/SessionVARLib.pyi
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pymysql
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
UtilityLibAPI
|