Luci-Code-Tools 2.2.7__tar.gz → 2.2.9__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.
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Luci-Code-Tools
3
- Version: 2.2.7
3
+ Version: 2.2.9
4
4
  Summary: 一个简单的工具库 / A Eazy Tools Module
5
5
  Home-page: https://github.com/Luci-Code-2014
6
6
  Author: Luci_Code
7
7
  Author-email: 3967742419@qq.com
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
10
11
  Requires-Python: >=3.6
11
12
  Description-Content-Type: text/markdown
12
13
  License-File: LICENSE
@@ -20,7 +21,7 @@ Dynamic: license-file
20
21
  Dynamic: requires-python
21
22
  Dynamic: summary
22
23
 
23
- [![PyPI version](https://badge.fury.io/py/Luci_Code_Tools.svg)](https://pypi.org/project/Luci_Code_Tools/)
24
+ [![PyPI version](https://badge.fury.io/py/Luci\_Code_Tools.svg)](https://pypi.org/project/Luci\_Code_Tools/)
24
25
 
25
26
  [![Python Version](https://img.shields.io/badge/Python-3.6+-blue.svg)]()
26
27
 
@@ -50,7 +51,7 @@ Dynamic: summary
50
51
 
51
52
  **带有 *6* 个函数可使用**
52
53
 
53
- # Luci_Code_Tools 🔍
54
+ # Luci\_Code_Tools 🔍
54
55
 
55
56
  **代码花费 *9000+* 字符数**
56
57
 
@@ -76,13 +77,13 @@ Windows 设备信息: Windows 10 22H2
76
77
 
77
78
  # 作者 ヾ(≧▽≦*)o
78
79
 
79
- 作者名字叫: **Luci_Code**
80
+ 作者名字叫: **Luci\_Code**
80
81
 
81
82
  **2014** 年出生 🐱
82
83
 
83
- 此代码的编写者 : Luci_Code
84
+ 此代码的编写者 : Luci\_Code
84
85
 
85
- 此文档的编写者 : Luci_Code
86
+ 此文档的编写者 : Luci\_Code
86
87
 
87
88
  Github 链接: **https://github.com/Luci-Code-2014/**
88
89
 
@@ -92,7 +93,7 @@ Github 链接: **https://github.com/Luci-Code-2014/**
92
93
 
93
94
  项目文件夹 📂:
94
95
 
95
- Luci_code_tools.py | 代码主文件
96
+ Luci\_Code_tools.py | 代码主文件
96
97
 
97
98
  200+ 行数运行的代码文件 🐱
98
99
 
@@ -171,19 +172,19 @@ pip install <包名>==<版本号>
171
172
  # 注: 所有方式的示例函数为 color 函数
172
173
 
173
174
  # 导入
174
- import Luci_code_tools
175
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
175
+ import Luci_Code_tools
176
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
176
177
 
177
178
  # 导入 + as
178
- import Luci_code_tools as lct
179
+ import Luci_Code_tools as lct
179
180
  lct.color("HelloWorld", 32, None, 1, 2)
180
181
 
181
182
  # 引用
182
- from Luci_code_tools import color
183
+ from Luci_Code_tools import color
183
184
  color("HelloWorld", 32, None, 1, 2)
184
185
 
185
186
  # 引用 + as
186
- from Luci_code_tools import color as cl
187
+ from Luci_Code_tools import color as cl
187
188
  cl("HelloWorld", 32, None, 1, 2)
188
189
 
189
190
  ```
@@ -466,15 +467,16 @@ prompt 跟 data 参数是一个意思喵🐱
466
467
  # 制作人员 & 感谢名单 (以贡献程度排名从上到下)
467
468
 
468
469
  | 人员 | 提供 |
470
+ | --- | --- |
469
471
  | DeepSeek | 构建 & 打包 & 上传教程 |
470
472
  | DeepSeek | 提供改进意见 |
471
473
  | DeepSeek | 环境帮助 |
472
- | Luci_Code | 编写 |
473
- | Luci_Code | 打包 |
474
- | Luci_Code | 制作 |
475
- | Luci_Code | 构建 |
476
- | Luci_Code | 上传 |
477
- | Luci_Code | 构思 |
474
+ | Luci\_Code | 编写 |
475
+ | Luci\_Code | 打包 |
476
+ | Luci\_Code | 制作 |
477
+ | Luci\_Code | 构建 |
478
+ | Luci\_Code | 上传 |
479
+ | Luci\_Code | 构思 |
478
480
 
479
481
  ---
480
482
 
@@ -483,7 +485,7 @@ prompt 跟 data 参数是一个意思喵🐱
483
485
  ## 输入输出
484
486
 
485
487
  ```python
486
- from Luci_code_tools import color, safe_input
488
+ from Luci_Code_tools import color, safe_input
487
489
 
488
490
  text = safe_input("请输入文本: ", 32, None, 1)
489
491
  color(f"你输入了 {text}", 32, None, 1, 2)
@@ -492,7 +494,7 @@ color(f"你输入了 {text}", 32, None, 1, 2)
492
494
  ## 计算器
493
495
 
494
496
  ```python
495
- from Luci_code_tools import color, safe_float, safe_input
497
+ from Luci_Code_tools import color, safe_float, safe_input
496
498
  from sys import exit
497
499
 
498
500
  color("=== 计算器 ===", 32, None, 1, 2)
@@ -527,7 +529,7 @@ while True:
527
529
  ## 文件读写
528
530
 
529
531
  ```python
530
- from Luci_code_tools import color
532
+ from Luci_Code_tools import color
531
533
  from os import remove
532
534
  from json import load, dump, JSONDecodeError
533
535
 
@@ -574,7 +576,7 @@ else:
574
576
 
575
577
  **Features *6* functions for use**
576
578
 
577
- # Luci_Code_Tools 🔍
579
+ # Luci\_Code_Tools 🔍
578
580
 
579
581
  **Codebase spans over *9,000* characters**
580
582
 
@@ -600,13 +602,13 @@ Windows device info: Windows 10 22H2
600
602
 
601
603
  # Author ヾ(≧▽≦*)o
602
604
 
603
- Author's name: **Luci_Code**
605
+ Author's name: **Luci\_Code**
604
606
 
605
607
  Born in **2014** 🐱
606
608
 
607
- Code written by: Luci_Code
609
+ Code written by: Luci\_Code
608
610
 
609
- Documentation written by: Luci_Code
611
+ Documentation written by: Luci\_Code
610
612
 
611
613
  GitHub link: **https://github.com/Luci-Code-2014/**
612
614
 
@@ -616,7 +618,7 @@ GitHub link: **https://github.com/Luci-Code-2014/**
616
618
 
617
619
  Project folders/files 📂:
618
620
 
619
- Luci_code_tools.py | Main code file
621
+ Luci\_Code_tools.py | Main code file
620
622
 
621
623
  A script spanning over 200 lines of code 🐱
622
624
 
@@ -692,19 +694,19 @@ pip install <package_name>==<version_number>
692
694
  # Note: The example function used in all cases is the 'color' function
693
695
 
694
696
  # Import
695
- import Luci_code_tools
696
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
697
+ import Luci_Code_tools
698
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
697
699
 
698
700
  # Import + as
699
- import Luci_code_tools as lct
701
+ import Luci_Code_tools as lct
700
702
  lct.color("HelloWorld", 32, None, 1, 2)
701
703
 
702
704
  # Reference
703
- from Luci_code_tools import color
705
+ from Luci_Code_tools import color
704
706
  color("HelloWorld", 32, None, 1, 2)
705
707
 
706
708
  # Reference + as
707
- from Luci_code_tools import color as cl
709
+ from Luci_Code_tools import color as cl
708
710
  cl("HelloWorld", 32, None, 1, 2)
709
711
 
710
712
  ```
@@ -985,12 +987,12 @@ These three parameters are identical to the corresponding ones in `color` and `c
985
987
  | DeepSeek | Build, packaging, and upload tutorial |
986
988
  | DeepSeek | Provided improvement suggestions |
987
989
  | DeepSeek | Environment help |
988
- | Luci_Code | Writing |
989
- | Luci_Code | Packaging |
990
- | Luci_Code | Creation |
991
- | Luci_Code | Building |
992
- | Luci_Code | Uploading |
993
- | Luci_Code | Conceptualization |
990
+ | Luci\_Code | Writing |
991
+ | Luci\_Code | Packaging |
992
+ | Luci\_Code | Creation |
993
+ | Luci\_Code | Building |
994
+ | Luci\_Code | Uploading |
995
+ | Luci\_Code | Conceptualization |
994
996
 
995
997
  ---
996
998
 
@@ -999,7 +1001,7 @@ These three parameters are identical to the corresponding ones in `color` and `c
999
1001
  ## Input and Output
1000
1002
 
1001
1003
  ```python
1002
- from Luci_code_tools import color, safe_input
1004
+ from Luci_Code_tools import color, safe_input
1003
1005
 
1004
1006
  text = safe_input("Please enter text: ", 32, None, 1)
1005
1007
  color(f"You entered {text}", 32, None, 1, 2)
@@ -1008,7 +1010,7 @@ color(f"You entered {text}", 32, None, 1, 2)
1008
1010
  ## Calculator
1009
1011
 
1010
1012
  ```python
1011
- from Luci_code_tools import color, safe_float, safe_input
1013
+ from Luci_Code_tools import color, safe_float, safe_input
1012
1014
  from sys import exit
1013
1015
 
1014
1016
  color("=== Calculator ===", 32, None, 1, 2)
@@ -1043,7 +1045,7 @@ while True:
1043
1045
  ## File Read and Write
1044
1046
 
1045
1047
  ```python
1046
- from Luci_code_tools import color
1048
+ from Luci_Code_tools import color
1047
1049
  from os import remove
1048
1050
  from json import load, dump, JSONDecodeError
1049
1051
 
@@ -4,10 +4,13 @@ from typing import Optional, Union
4
4
  import shutil
5
5
  import os
6
6
 
7
- if os.name == "nt": # 系统名称 = "nt" 为 Windows
8
- os.system("") # 激活 win10 / win7 的终端彩色显示功能, 只是为了兼容 cmd , powershell 这类不支持彩色的终端
7
+ if platform == "win32": # 判断平台
8
+ try:
9
+ os.system("") # 激活 win10 / 某些 win7 的终端彩色显示功能
10
+ except Exception:
11
+ pass # os.system 会报错 😭 (比如 Python 的 exe 可执行程序没有命令也就是不能执行命令,即使命令为空以及嵌入式环境压根没有 Shell)
9
12
 
10
- __version__ = "2.2.7" # 明确版本号
13
+ __version__ = "2.2.9" # 明确版本号
11
14
  __all__ = [
12
15
  'color', 'color_rgb', 'clear_screen',
13
16
  'safe_input', 'safe_int', 'safe_float'
@@ -61,7 +64,7 @@ def color_rgb(data: str, r: int, g: int, b: int, mode: int = 0, line: int = 2) -
61
64
  """ 输出 rgb 字符 """
62
65
  print(_ansi_rgb(data, r, g, b, mode), end="\n" * line)
63
66
 
64
- def color(data: str, text_color: Optional[int] = None, bg_color: Optional[int] = None, mode: int = 0, line: int = 2) -> None: # 🤔
67
+ def color(data: str, text_color: Optional[int] = None, bg_color: Optional[int] = None, mode: int = 0, line: int = 2) -> None: # 😭
65
68
  """ 输出彩色字符到控制台
66
69
 
67
70
  参数:
@@ -154,9 +157,6 @@ def _safe_try_except(prompt, input_type=True, convert_func=None, text_color=None
154
157
  except RuntimeError as e:
155
158
  color(f"Serious runtime error\nError message:\n{e}\n严重的运行时错误\n错误信息,\n{e}", 33, None, 1)
156
159
  exit(1)
157
- except SystemExit:
158
- color("System exit\n系统退出", 33, None, 1)
159
- exit(0)
160
160
  except SystemError:
161
161
  color("System error, please check Python interpreter\n系统错误,请检查 Python 解释器", 33, None, 1)
162
162
  exit(0)
@@ -204,8 +204,7 @@ def _safe_try_except(prompt, input_type=True, convert_func=None, text_color=None
204
204
  continue
205
205
  except Exception as e:
206
206
  color(f"Code error\nError message:\n{e}\n代码错误\n错误信息:\n{e}", 33, None, 1)
207
- continue
208
- # 27 个 except
207
+ exit(1)
209
208
 
210
209
  def safe_input(prompt: str, text_color: Optional[int] = None, bg_color: Optional[int] = None, mode: int = 0) -> str:
211
210
  """ 安全输入 """
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Luci-Code-Tools
3
- Version: 2.2.7
3
+ Version: 2.2.9
4
4
  Summary: 一个简单的工具库 / A Eazy Tools Module
5
5
  Home-page: https://github.com/Luci-Code-2014
6
6
  Author: Luci_Code
7
7
  Author-email: 3967742419@qq.com
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
10
11
  Requires-Python: >=3.6
11
12
  Description-Content-Type: text/markdown
12
13
  License-File: LICENSE
@@ -20,7 +21,7 @@ Dynamic: license-file
20
21
  Dynamic: requires-python
21
22
  Dynamic: summary
22
23
 
23
- [![PyPI version](https://badge.fury.io/py/Luci_Code_Tools.svg)](https://pypi.org/project/Luci_Code_Tools/)
24
+ [![PyPI version](https://badge.fury.io/py/Luci\_Code_Tools.svg)](https://pypi.org/project/Luci\_Code_Tools/)
24
25
 
25
26
  [![Python Version](https://img.shields.io/badge/Python-3.6+-blue.svg)]()
26
27
 
@@ -50,7 +51,7 @@ Dynamic: summary
50
51
 
51
52
  **带有 *6* 个函数可使用**
52
53
 
53
- # Luci_Code_Tools 🔍
54
+ # Luci\_Code_Tools 🔍
54
55
 
55
56
  **代码花费 *9000+* 字符数**
56
57
 
@@ -76,13 +77,13 @@ Windows 设备信息: Windows 10 22H2
76
77
 
77
78
  # 作者 ヾ(≧▽≦*)o
78
79
 
79
- 作者名字叫: **Luci_Code**
80
+ 作者名字叫: **Luci\_Code**
80
81
 
81
82
  **2014** 年出生 🐱
82
83
 
83
- 此代码的编写者 : Luci_Code
84
+ 此代码的编写者 : Luci\_Code
84
85
 
85
- 此文档的编写者 : Luci_Code
86
+ 此文档的编写者 : Luci\_Code
86
87
 
87
88
  Github 链接: **https://github.com/Luci-Code-2014/**
88
89
 
@@ -92,7 +93,7 @@ Github 链接: **https://github.com/Luci-Code-2014/**
92
93
 
93
94
  项目文件夹 📂:
94
95
 
95
- Luci_code_tools.py | 代码主文件
96
+ Luci\_Code_tools.py | 代码主文件
96
97
 
97
98
  200+ 行数运行的代码文件 🐱
98
99
 
@@ -171,19 +172,19 @@ pip install <包名>==<版本号>
171
172
  # 注: 所有方式的示例函数为 color 函数
172
173
 
173
174
  # 导入
174
- import Luci_code_tools
175
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
175
+ import Luci_Code_tools
176
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
176
177
 
177
178
  # 导入 + as
178
- import Luci_code_tools as lct
179
+ import Luci_Code_tools as lct
179
180
  lct.color("HelloWorld", 32, None, 1, 2)
180
181
 
181
182
  # 引用
182
- from Luci_code_tools import color
183
+ from Luci_Code_tools import color
183
184
  color("HelloWorld", 32, None, 1, 2)
184
185
 
185
186
  # 引用 + as
186
- from Luci_code_tools import color as cl
187
+ from Luci_Code_tools import color as cl
187
188
  cl("HelloWorld", 32, None, 1, 2)
188
189
 
189
190
  ```
@@ -466,15 +467,16 @@ prompt 跟 data 参数是一个意思喵🐱
466
467
  # 制作人员 & 感谢名单 (以贡献程度排名从上到下)
467
468
 
468
469
  | 人员 | 提供 |
470
+ | --- | --- |
469
471
  | DeepSeek | 构建 & 打包 & 上传教程 |
470
472
  | DeepSeek | 提供改进意见 |
471
473
  | DeepSeek | 环境帮助 |
472
- | Luci_Code | 编写 |
473
- | Luci_Code | 打包 |
474
- | Luci_Code | 制作 |
475
- | Luci_Code | 构建 |
476
- | Luci_Code | 上传 |
477
- | Luci_Code | 构思 |
474
+ | Luci\_Code | 编写 |
475
+ | Luci\_Code | 打包 |
476
+ | Luci\_Code | 制作 |
477
+ | Luci\_Code | 构建 |
478
+ | Luci\_Code | 上传 |
479
+ | Luci\_Code | 构思 |
478
480
 
479
481
  ---
480
482
 
@@ -483,7 +485,7 @@ prompt 跟 data 参数是一个意思喵🐱
483
485
  ## 输入输出
484
486
 
485
487
  ```python
486
- from Luci_code_tools import color, safe_input
488
+ from Luci_Code_tools import color, safe_input
487
489
 
488
490
  text = safe_input("请输入文本: ", 32, None, 1)
489
491
  color(f"你输入了 {text}", 32, None, 1, 2)
@@ -492,7 +494,7 @@ color(f"你输入了 {text}", 32, None, 1, 2)
492
494
  ## 计算器
493
495
 
494
496
  ```python
495
- from Luci_code_tools import color, safe_float, safe_input
497
+ from Luci_Code_tools import color, safe_float, safe_input
496
498
  from sys import exit
497
499
 
498
500
  color("=== 计算器 ===", 32, None, 1, 2)
@@ -527,7 +529,7 @@ while True:
527
529
  ## 文件读写
528
530
 
529
531
  ```python
530
- from Luci_code_tools import color
532
+ from Luci_Code_tools import color
531
533
  from os import remove
532
534
  from json import load, dump, JSONDecodeError
533
535
 
@@ -574,7 +576,7 @@ else:
574
576
 
575
577
  **Features *6* functions for use**
576
578
 
577
- # Luci_Code_Tools 🔍
579
+ # Luci\_Code_Tools 🔍
578
580
 
579
581
  **Codebase spans over *9,000* characters**
580
582
 
@@ -600,13 +602,13 @@ Windows device info: Windows 10 22H2
600
602
 
601
603
  # Author ヾ(≧▽≦*)o
602
604
 
603
- Author's name: **Luci_Code**
605
+ Author's name: **Luci\_Code**
604
606
 
605
607
  Born in **2014** 🐱
606
608
 
607
- Code written by: Luci_Code
609
+ Code written by: Luci\_Code
608
610
 
609
- Documentation written by: Luci_Code
611
+ Documentation written by: Luci\_Code
610
612
 
611
613
  GitHub link: **https://github.com/Luci-Code-2014/**
612
614
 
@@ -616,7 +618,7 @@ GitHub link: **https://github.com/Luci-Code-2014/**
616
618
 
617
619
  Project folders/files 📂:
618
620
 
619
- Luci_code_tools.py | Main code file
621
+ Luci\_Code_tools.py | Main code file
620
622
 
621
623
  A script spanning over 200 lines of code 🐱
622
624
 
@@ -692,19 +694,19 @@ pip install <package_name>==<version_number>
692
694
  # Note: The example function used in all cases is the 'color' function
693
695
 
694
696
  # Import
695
- import Luci_code_tools
696
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
697
+ import Luci_Code_tools
698
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
697
699
 
698
700
  # Import + as
699
- import Luci_code_tools as lct
701
+ import Luci_Code_tools as lct
700
702
  lct.color("HelloWorld", 32, None, 1, 2)
701
703
 
702
704
  # Reference
703
- from Luci_code_tools import color
705
+ from Luci_Code_tools import color
704
706
  color("HelloWorld", 32, None, 1, 2)
705
707
 
706
708
  # Reference + as
707
- from Luci_code_tools import color as cl
709
+ from Luci_Code_tools import color as cl
708
710
  cl("HelloWorld", 32, None, 1, 2)
709
711
 
710
712
  ```
@@ -985,12 +987,12 @@ These three parameters are identical to the corresponding ones in `color` and `c
985
987
  | DeepSeek | Build, packaging, and upload tutorial |
986
988
  | DeepSeek | Provided improvement suggestions |
987
989
  | DeepSeek | Environment help |
988
- | Luci_Code | Writing |
989
- | Luci_Code | Packaging |
990
- | Luci_Code | Creation |
991
- | Luci_Code | Building |
992
- | Luci_Code | Uploading |
993
- | Luci_Code | Conceptualization |
990
+ | Luci\_Code | Writing |
991
+ | Luci\_Code | Packaging |
992
+ | Luci\_Code | Creation |
993
+ | Luci\_Code | Building |
994
+ | Luci\_Code | Uploading |
995
+ | Luci\_Code | Conceptualization |
994
996
 
995
997
  ---
996
998
 
@@ -999,7 +1001,7 @@ These three parameters are identical to the corresponding ones in `color` and `c
999
1001
  ## Input and Output
1000
1002
 
1001
1003
  ```python
1002
- from Luci_code_tools import color, safe_input
1004
+ from Luci_Code_tools import color, safe_input
1003
1005
 
1004
1006
  text = safe_input("Please enter text: ", 32, None, 1)
1005
1007
  color(f"You entered {text}", 32, None, 1, 2)
@@ -1008,7 +1010,7 @@ color(f"You entered {text}", 32, None, 1, 2)
1008
1010
  ## Calculator
1009
1011
 
1010
1012
  ```python
1011
- from Luci_code_tools import color, safe_float, safe_input
1013
+ from Luci_Code_tools import color, safe_float, safe_input
1012
1014
  from sys import exit
1013
1015
 
1014
1016
  color("=== Calculator ===", 32, None, 1, 2)
@@ -1043,7 +1045,7 @@ while True:
1043
1045
  ## File Read and Write
1044
1046
 
1045
1047
  ```python
1046
- from Luci_code_tools import color
1048
+ from Luci_Code_tools import color
1047
1049
  from os import remove
1048
1050
  from json import load, dump, JSONDecodeError
1049
1051
 
@@ -1,4 +1,4 @@
1
- [![PyPI version](https://badge.fury.io/py/Luci_Code_Tools.svg)](https://pypi.org/project/Luci_Code_Tools/)
1
+ [![PyPI version](https://badge.fury.io/py/Luci\_Code_Tools.svg)](https://pypi.org/project/Luci\_Code_Tools/)
2
2
 
3
3
  [![Python Version](https://img.shields.io/badge/Python-3.6+-blue.svg)]()
4
4
 
@@ -28,7 +28,7 @@
28
28
 
29
29
  **带有 *6* 个函数可使用**
30
30
 
31
- # Luci_Code_Tools 🔍
31
+ # Luci\_Code_Tools 🔍
32
32
 
33
33
  **代码花费 *9000+* 字符数**
34
34
 
@@ -54,13 +54,13 @@ Windows 设备信息: Windows 10 22H2
54
54
 
55
55
  # 作者 ヾ(≧▽≦*)o
56
56
 
57
- 作者名字叫: **Luci_Code**
57
+ 作者名字叫: **Luci\_Code**
58
58
 
59
59
  **2014** 年出生 🐱
60
60
 
61
- 此代码的编写者 : Luci_Code
61
+ 此代码的编写者 : Luci\_Code
62
62
 
63
- 此文档的编写者 : Luci_Code
63
+ 此文档的编写者 : Luci\_Code
64
64
 
65
65
  Github 链接: **https://github.com/Luci-Code-2014/**
66
66
 
@@ -70,7 +70,7 @@ Github 链接: **https://github.com/Luci-Code-2014/**
70
70
 
71
71
  项目文件夹 📂:
72
72
 
73
- Luci_code_tools.py | 代码主文件
73
+ Luci\_Code_tools.py | 代码主文件
74
74
 
75
75
  200+ 行数运行的代码文件 🐱
76
76
 
@@ -149,19 +149,19 @@ pip install <包名>==<版本号>
149
149
  # 注: 所有方式的示例函数为 color 函数
150
150
 
151
151
  # 导入
152
- import Luci_code_tools
153
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
152
+ import Luci_Code_tools
153
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
154
154
 
155
155
  # 导入 + as
156
- import Luci_code_tools as lct
156
+ import Luci_Code_tools as lct
157
157
  lct.color("HelloWorld", 32, None, 1, 2)
158
158
 
159
159
  # 引用
160
- from Luci_code_tools import color
160
+ from Luci_Code_tools import color
161
161
  color("HelloWorld", 32, None, 1, 2)
162
162
 
163
163
  # 引用 + as
164
- from Luci_code_tools import color as cl
164
+ from Luci_Code_tools import color as cl
165
165
  cl("HelloWorld", 32, None, 1, 2)
166
166
 
167
167
  ```
@@ -444,15 +444,16 @@ prompt 跟 data 参数是一个意思喵🐱
444
444
  # 制作人员 & 感谢名单 (以贡献程度排名从上到下)
445
445
 
446
446
  | 人员 | 提供 |
447
+ | --- | --- |
447
448
  | DeepSeek | 构建 & 打包 & 上传教程 |
448
449
  | DeepSeek | 提供改进意见 |
449
450
  | DeepSeek | 环境帮助 |
450
- | Luci_Code | 编写 |
451
- | Luci_Code | 打包 |
452
- | Luci_Code | 制作 |
453
- | Luci_Code | 构建 |
454
- | Luci_Code | 上传 |
455
- | Luci_Code | 构思 |
451
+ | Luci\_Code | 编写 |
452
+ | Luci\_Code | 打包 |
453
+ | Luci\_Code | 制作 |
454
+ | Luci\_Code | 构建 |
455
+ | Luci\_Code | 上传 |
456
+ | Luci\_Code | 构思 |
456
457
 
457
458
  ---
458
459
 
@@ -461,7 +462,7 @@ prompt 跟 data 参数是一个意思喵🐱
461
462
  ## 输入输出
462
463
 
463
464
  ```python
464
- from Luci_code_tools import color, safe_input
465
+ from Luci_Code_tools import color, safe_input
465
466
 
466
467
  text = safe_input("请输入文本: ", 32, None, 1)
467
468
  color(f"你输入了 {text}", 32, None, 1, 2)
@@ -470,7 +471,7 @@ color(f"你输入了 {text}", 32, None, 1, 2)
470
471
  ## 计算器
471
472
 
472
473
  ```python
473
- from Luci_code_tools import color, safe_float, safe_input
474
+ from Luci_Code_tools import color, safe_float, safe_input
474
475
  from sys import exit
475
476
 
476
477
  color("=== 计算器 ===", 32, None, 1, 2)
@@ -505,7 +506,7 @@ while True:
505
506
  ## 文件读写
506
507
 
507
508
  ```python
508
- from Luci_code_tools import color
509
+ from Luci_Code_tools import color
509
510
  from os import remove
510
511
  from json import load, dump, JSONDecodeError
511
512
 
@@ -552,7 +553,7 @@ else:
552
553
 
553
554
  **Features *6* functions for use**
554
555
 
555
- # Luci_Code_Tools 🔍
556
+ # Luci\_Code_Tools 🔍
556
557
 
557
558
  **Codebase spans over *9,000* characters**
558
559
 
@@ -578,13 +579,13 @@ Windows device info: Windows 10 22H2
578
579
 
579
580
  # Author ヾ(≧▽≦*)o
580
581
 
581
- Author's name: **Luci_Code**
582
+ Author's name: **Luci\_Code**
582
583
 
583
584
  Born in **2014** 🐱
584
585
 
585
- Code written by: Luci_Code
586
+ Code written by: Luci\_Code
586
587
 
587
- Documentation written by: Luci_Code
588
+ Documentation written by: Luci\_Code
588
589
 
589
590
  GitHub link: **https://github.com/Luci-Code-2014/**
590
591
 
@@ -594,7 +595,7 @@ GitHub link: **https://github.com/Luci-Code-2014/**
594
595
 
595
596
  Project folders/files 📂:
596
597
 
597
- Luci_code_tools.py | Main code file
598
+ Luci\_Code_tools.py | Main code file
598
599
 
599
600
  A script spanning over 200 lines of code 🐱
600
601
 
@@ -670,19 +671,19 @@ pip install <package_name>==<version_number>
670
671
  # Note: The example function used in all cases is the 'color' function
671
672
 
672
673
  # Import
673
- import Luci_code_tools
674
- Luci_code_tools.color("HelloWorld", 32, None, 1, 2)
674
+ import Luci_Code_tools
675
+ Luci_Code_tools.color("HelloWorld", 32, None, 1, 2)
675
676
 
676
677
  # Import + as
677
- import Luci_code_tools as lct
678
+ import Luci_Code_tools as lct
678
679
  lct.color("HelloWorld", 32, None, 1, 2)
679
680
 
680
681
  # Reference
681
- from Luci_code_tools import color
682
+ from Luci_Code_tools import color
682
683
  color("HelloWorld", 32, None, 1, 2)
683
684
 
684
685
  # Reference + as
685
- from Luci_code_tools import color as cl
686
+ from Luci_Code_tools import color as cl
686
687
  cl("HelloWorld", 32, None, 1, 2)
687
688
 
688
689
  ```
@@ -963,12 +964,12 @@ These three parameters are identical to the corresponding ones in `color` and `c
963
964
  | DeepSeek | Build, packaging, and upload tutorial |
964
965
  | DeepSeek | Provided improvement suggestions |
965
966
  | DeepSeek | Environment help |
966
- | Luci_Code | Writing |
967
- | Luci_Code | Packaging |
968
- | Luci_Code | Creation |
969
- | Luci_Code | Building |
970
- | Luci_Code | Uploading |
971
- | Luci_Code | Conceptualization |
967
+ | Luci\_Code | Writing |
968
+ | Luci\_Code | Packaging |
969
+ | Luci\_Code | Creation |
970
+ | Luci\_Code | Building |
971
+ | Luci\_Code | Uploading |
972
+ | Luci\_Code | Conceptualization |
972
973
 
973
974
  ---
974
975
 
@@ -977,7 +978,7 @@ These three parameters are identical to the corresponding ones in `color` and `c
977
978
  ## Input and Output
978
979
 
979
980
  ```python
980
- from Luci_code_tools import color, safe_input
981
+ from Luci_Code_tools import color, safe_input
981
982
 
982
983
  text = safe_input("Please enter text: ", 32, None, 1)
983
984
  color(f"You entered {text}", 32, None, 1, 2)
@@ -986,7 +987,7 @@ color(f"You entered {text}", 32, None, 1, 2)
986
987
  ## Calculator
987
988
 
988
989
  ```python
989
- from Luci_code_tools import color, safe_float, safe_input
990
+ from Luci_Code_tools import color, safe_float, safe_input
990
991
  from sys import exit
991
992
 
992
993
  color("=== Calculator ===", 32, None, 1, 2)
@@ -1021,7 +1022,7 @@ while True:
1021
1022
  ## File Read and Write
1022
1023
 
1023
1024
  ```python
1024
- from Luci_code_tools import color
1025
+ from Luci_Code_tools import color
1025
1026
  from os import remove
1026
1027
  from json import load, dump, JSONDecodeError
1027
1028
 
@@ -1050,4 +1051,4 @@ else:
1050
1051
  content_2 = data["test2"]
1051
1052
  color(f"Content 1: {content_1}\nContent 2: {content_2}\n\nTest successful!", 32, None, 1, 2)
1052
1053
  remove(FILE_PATH)
1053
- ```
1054
+ ```
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
5
5
 
6
6
  setup(
7
7
  name="Luci-Code-Tools",
8
- version="2.2.7",
8
+ version="2.2.9",
9
9
  author="Luci_Code",
10
10
  author_email="3967742419@qq.com",
11
11
  description="一个简单的工具库 / A Eazy Tools Module",
@@ -16,6 +16,7 @@ setup(
16
16
  classifiers=[
17
17
  "Programming Language :: Python :: 3",
18
18
  "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
19
20
  ],
20
21
  python_requires=">=3.6"
21
- )
22
+ )
File without changes