mySQLDBCtrlAPI 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl

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.

Potentially problematic release.


This version of mySQLDBCtrlAPI might be problematic. Click here for more details.

@@ -211,6 +211,16 @@ class CLASS_mySQLDBCtrl:
211
211
  return(self.CUF_DB_Eof(Pobj_Query));
212
212
 
213
213
 
214
+ # ----------------------------------------------------------------------
215
+ # 功能: 轉換字串編碼 (big5 -> utf-8)
216
+ # 傳入:
217
+ # 傳回: true: Eof
218
+ # Robj_DataSet: 資料集
219
+ # ----------------------------------------------------------------------
220
+ def CUF_str_utf8(self, Pobj_DataSet):
221
+ return(str(Pobj_DataSet).encode("latin1").decode("big5"));
222
+
223
+
214
224
  # ----------------------------------------------------------------------
215
225
  # 功能: 讀取 BLOB Field
216
226
  # 傳入:
@@ -348,11 +358,11 @@ class CLASS_mySQLDBCtrl:
348
358
  if(__name__ == '__main__'):
349
359
  Gobj_mySQLDBCtrl = CLASS_mySQLDBCtrl();
350
360
  # ------------------------------------------------------------
351
- Gobj_Conn = Gobj_mySQLDBCtrl.CUF_OpenConnection(Pms_DB_HostIP= "mis.gotech.biz",
352
- Pmi_DB_Port = 3300,
353
- Pms_DB_Name = "gotech_mis",
354
- Pms_User = "root",
355
- Pms_Password = "gotechdf8000sys");
361
+ Gobj_Conn = Gobj_mySQLDBCtrl.CUF_OpenConnection(Pms_DB_HostIP= "mis.XXX.biz",
362
+ Pmi_DB_Port = 1234,
363
+ Pms_DB_Name = "goxxxh_mis",
364
+ Pms_User = "xxxx",
365
+ Pms_Password = "****");
356
366
  # ------------------------------------------------------------
357
367
  # [範例1]
358
368
  # ms_SQL = 'SELECT * From tbemployee';
@@ -0,0 +1,40 @@
1
+ Metadata-Version: 2.4
2
+ Name: mySQLDBCtrlAPI
3
+ Version: 0.1.2
4
+ Summary: mySQLDBCtrlAPI Python package
5
+ Author-email: James Lin <tylin123@ms27.hinet.net>
6
+ License: Copyright (c) 2025 James Lin
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
+ #mySQLDBCtrlAPI
34
+
35
+ ## History of version
36
+ Version 0.1.2: 2025/10/09<BR>
37
+ Add string decode method (translage big5 charset -> utf-8)
38
+
39
+ Version 0.1.1: 2025/09/19<BR>
40
+ Fixed some bugs.
@@ -0,0 +1,7 @@
1
+ mySQLDBCtrlAPI/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mySQLDBCtrlAPI/mySQLDBCtrl.py,sha256=uGQndi4tH2PpB0Y4Pkqy0JLPJC0WJUxnCsPKW_6a5vE,20180
3
+ mysqldbctrlapi-0.1.2.dist-info/licenses/LICENSE,sha256=bTN6shImvjBn0VScA1LIqy7LH3B_O6XZieGPnoT4Gxk,1054
4
+ mysqldbctrlapi-0.1.2.dist-info/METADATA,sha256=0LeZDptRx3W3C-YXl1Z-P6vRjT-XfNYtq3ZWjHz8gSI,1721
5
+ mysqldbctrlapi-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ mysqldbctrlapi-0.1.2.dist-info/top_level.txt,sha256=onworg8ic7UQRjmAT-NpGAJFJb4X9hU1rOlYUCD_gng,15
7
+ mysqldbctrlapi-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2025 James Lin
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.
@@ -1,8 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mySQLDBCtrlAPI
3
- Version: 0.1.0
4
- Summary: mySQLDBCtrlAPI Python package
5
- Author-email: James Lin <tylin123@ms27.hinet.net>
6
- Project-URL: Homepage, https://mis.gotech.biz
7
- Description-Content-Type: text/markdown
8
- Requires-Dist: pymysql
@@ -1,6 +0,0 @@
1
- mySQLDBCtrlAPI/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mySQLDBCtrlAPI/mySQLDBCtrl.py,sha256=uNFUZIC3rI-vSXLEeqg-KYM6tO-N7_A25Rz00nRewuc,19806
3
- mysqldbctrlapi-0.1.0.dist-info/METADATA,sha256=eAqVll-V-YM50Azl1fgXwjtMe-MtxMXQt-W9HPy5C80,264
4
- mysqldbctrlapi-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
- mysqldbctrlapi-0.1.0.dist-info/top_level.txt,sha256=onworg8ic7UQRjmAT-NpGAJFJb4X9hU1rOlYUCD_gng,15
6
- mysqldbctrlapi-0.1.0.dist-info/RECORD,,