kevin-toolbox-dev 1.4.5__py3-none-any.whl → 1.4.7__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.
Files changed (27) hide show
  1. kevin_toolbox/__init__.py +2 -2
  2. kevin_toolbox/computer_science/algorithm/cache_manager/cache_manager.py +6 -0
  3. kevin_toolbox/computer_science/algorithm/parallel_and_concurrent/__init__.py +1 -0
  4. kevin_toolbox/computer_science/algorithm/parallel_and_concurrent/multi_process_execute.py +109 -0
  5. kevin_toolbox/computer_science/algorithm/parallel_and_concurrent/multi_thread_execute.py +50 -29
  6. kevin_toolbox/computer_science/algorithm/parallel_and_concurrent/utils/__init__.py +15 -0
  7. kevin_toolbox/computer_science/algorithm/parallel_and_concurrent/utils/wrapper_with_timeout_1.py +69 -0
  8. kevin_toolbox/computer_science/algorithm/parallel_and_concurrent/utils/wrapper_with_timeout_2.py +76 -0
  9. kevin_toolbox/computer_science/data_structure/executor.py +2 -2
  10. kevin_toolbox/data_flow/file/excel/__init__.py +1 -0
  11. kevin_toolbox/data_flow/file/excel/write_excel_with_matrix.py +105 -0
  12. kevin_toolbox/data_flow/file/json_/read_json.py +1 -0
  13. kevin_toolbox/data_flow/file/json_/write_json.py +36 -3
  14. kevin_toolbox/env_info/__init__.py +2 -1
  15. kevin_toolbox/env_info/check_validity_and_uninstall.py +41 -21
  16. kevin_toolbox/env_info/check_version_and_update.py +70 -49
  17. kevin_toolbox/env_info/test/test_check_.py +52 -0
  18. kevin_toolbox/nested_dict_list/serializer/backends/_json_.py +2 -2
  19. kevin_toolbox/patches/for_matplotlib/common_charts/plot_lines.py +5 -1
  20. kevin_toolbox/patches/for_os/find_files_in_dir.py +22 -17
  21. kevin_toolbox/patches/for_os/organize/__init__.py +1 -0
  22. kevin_toolbox/patches/for_os/organize/group_files_by_timestamp.py +90 -0
  23. kevin_toolbox_dev-1.4.7.dist-info/METADATA +69 -0
  24. {kevin_toolbox_dev-1.4.5.dist-info → kevin_toolbox_dev-1.4.7.dist-info}/RECORD +26 -17
  25. kevin_toolbox_dev-1.4.5.dist-info/METADATA +0 -73
  26. {kevin_toolbox_dev-1.4.5.dist-info → kevin_toolbox_dev-1.4.7.dist-info}/WHEEL +0 -0
  27. {kevin_toolbox_dev-1.4.5.dist-info → kevin_toolbox_dev-1.4.7.dist-info}/top_level.txt +0 -0
@@ -1,73 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: kevin-toolbox-dev
3
- Version: 1.4.5
4
- Summary: 一个常用的工具代码包集合
5
- Home-page: https://github.com/cantbeblank96/kevin_toolbox
6
- Download-URL: https://github.com/username/your-package/archive/refs/tags/v1.0.0.tar.gz
7
- Author: kevin hsu
8
- Author-email: xukaiming1996@163.com
9
- License: MIT
10
- Keywords: mathematics,pytorch,numpy,machine-learning,algorithm
11
- Platform: UNKNOWN
12
- Classifier: License :: OSI Approved :: MIT License
13
- Classifier: Programming Language :: Python
14
- Classifier: Programming Language :: Python :: 3
15
- Requires-Python: >=3.6
16
- Description-Content-Type: text/markdown
17
- Requires-Dist: torch (>=1.2.0)
18
- Requires-Dist: numpy (>=1.19.0)
19
- Provides-Extra: plot
20
- Requires-Dist: matplotlib (>=3.0) ; extra == 'plot'
21
- Provides-Extra: rest
22
- Requires-Dist: pytest (>=6.2.5) ; extra == 'rest'
23
- Requires-Dist: line-profiler (>=3.5) ; extra == 'rest'
24
-
25
- # kevin_toolbox
26
-
27
- 一个通用的工具代码包集合
28
-
29
-
30
-
31
- 环境要求
32
-
33
- ```shell
34
- numpy>=1.19
35
- pytorch>=1.2
36
- ```
37
-
38
- 安装方法:
39
-
40
- ```shell
41
- pip install kevin-toolbox --no-dependencies
42
- ```
43
-
44
-
45
-
46
- [项目地址 Repo](https://github.com/cantbeblank96/kevin_toolbox)
47
-
48
- [使用指南 User_Guide](./notes/User_Guide.md)
49
-
50
- [免责声明 Disclaimer](./notes/Disclaimer.md)
51
-
52
- [版本更新记录](./notes/Release_Record.md):
53
-
54
- - v 1.4.5 (2024-12-22)【bug fix】【new feature】
55
- - data_flow.file.json_
56
- - modify write(),支持输入路径使用 ~ 表示家目录。
57
- - env_info
58
- - 【new feature】add variable_,该模块主要包含于处理环境变量相关的函数和类。
59
- - Env_Vars_Parser:解释并替换字符串中${}形式指定的环境变量,支持以下几种方式:
60
- - "${HOME}" 家目录
61
- - "${SYS:<var_name>}" 其他系统环境变量
62
- - "${KVT_XXX<ndl_name>}" 读取配置文件 ~/.kvt_cfg/.xxx.json 中的变量(xxx将被自动转为小写)
63
- - "${/xxx.../xxx.json<ndl_name>}" 读取指定路径下的配置文件 /xxx.../xxx.json 中的变量
64
- - env_vars_parser:类 Env_Vars_Parser 的默认实例
65
- - 添加了对应的测试用例。
66
- - nested_dict_list
67
- - 【new feature】modify get_value() and set_value() for parsed_name input,在字符串name的基础上,进一步支持使用结构化的(root_node, method_ls, node_ls)形式的name作为输入。
68
- - 相较于字符串形式的name,结构化的name因不用解释而效率更高,推荐使用。
69
- - 【new feature】modify serializer.read() and write(),支持通过 nodes_dir 指定节点内容保存在哪个目录下,同时支持在 settings 中为每个处理模式单独指定其使用的 nodes_dir 和 saved_node_name_format。
70
- - 有了该功能,允许多个ndl文件共享多个节点内容,形式更加自由。
71
- - 添加了对应的测试用例。
72
-
73
-