# kevin_toolbox
一个通用的工具代码包集合
环境要求
```shell
numpy>=1.19
pytorch>=1.2
```
安装方法:
```shell
pip install kevin-toolbox --no-dependencies
```
[项目地址 Repo](https://github.com/cantbeblank96/kevin_toolbox)
[使用指南 User_Guide](./notes/User_Guide.md)
[免责声明 Disclaimer](./notes/Disclaimer.md)
[版本更新记录](./notes/Release_Record.md):
- v 1.4.7 (2025-02-19)【new feature】【bug fix】【incompatible change】
- data_flow.file
- 【new feature】【incompatible change】modify json_.write(),支持使用参数 output_format 设置更复杂的输出格式。同时废弃原来的sort_keys参数。
- output_format 支持以下输入:
- "pretty_printed": 通过添加大量的空格和换行符来格式化输出,使输出更易读
- "minified": 删除所有空格和换行符,使输出更紧凑
- `<dict/tuple>`: 更加细致的格式设定,比如 `{"indent": 2, ensure_ascii=True}`,如果需要基于已有格式进行微调可以使用以下方式:`("pretty_printed", {"indent": 2, ensure_ascii=True})`
- computer_science.algorithm.parallel_and_concurrent
- 【bug fix】【incompatible change】fix bug in multi_thread_execute(),修正了参数timeout无法对每个任务起效的bug,将参数thread_nums更名为worker_nums。
- 【new feature】add multi_process_execute(),用于多进程执行任务。同样支持timeout设定和进度条显示。
- patches.for_matplotlib.common_charts
- modify plot_lines(),添加了 x_ticklabels_name 参数用于自定义x轴的坐标值
- 以上修改,均已添加了对应的测试用例。
Raw data
{
"_id": null,
"home_page": "https://github.com/cantbeblank96/kevin_toolbox",
"name": "kevin-toolbox",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "mathematics, pytorch, numpy, machine-learning, algorithm",
"author": "kevin hsu",
"author_email": "xukaiming1996@163.com",
"download_url": "https://files.pythonhosted.org/packages/16/b1/d7f92a2ae904d31147aa429ef42429e1bf6de2071e8831b9c4516c87118a/kevin-toolbox-1.4.7.tar.gz",
"platform": null,
"description": "# kevin_toolbox\n\n\u4e00\u4e2a\u901a\u7528\u7684\u5de5\u5177\u4ee3\u7801\u5305\u96c6\u5408\n\n\n\n\u73af\u5883\u8981\u6c42\n\n```shell\nnumpy>=1.19\npytorch>=1.2\n```\n\n\u5b89\u88c5\u65b9\u6cd5\uff1a\n\n```shell\npip install kevin-toolbox --no-dependencies\n```\n\n\n\n[\u9879\u76ee\u5730\u5740 Repo](https://github.com/cantbeblank96/kevin_toolbox)\n\n[\u4f7f\u7528\u6307\u5357 User_Guide](./notes/User_Guide.md)\n\n[\u514d\u8d23\u58f0\u660e Disclaimer](./notes/Disclaimer.md)\n\n[\u7248\u672c\u66f4\u65b0\u8bb0\u5f55](./notes/Release_Record.md)\uff1a\n\n- v 1.4.7 \uff082025-02-19\uff09\u3010new feature\u3011\u3010bug fix\u3011\u3010incompatible change\u3011\n\n - data_flow.file\n - \u3010new feature\u3011\u3010incompatible change\u3011modify json_.write()\uff0c\u652f\u6301\u4f7f\u7528\u53c2\u6570 output_format \u8bbe\u7f6e\u66f4\u590d\u6742\u7684\u8f93\u51fa\u683c\u5f0f\u3002\u540c\u65f6\u5e9f\u5f03\u539f\u6765\u7684sort_keys\u53c2\u6570\u3002\n - output_format \u652f\u6301\u4ee5\u4e0b\u8f93\u5165\uff1a\n - \"pretty_printed\": \u901a\u8fc7\u6dfb\u52a0\u5927\u91cf\u7684\u7a7a\u683c\u548c\u6362\u884c\u7b26\u6765\u683c\u5f0f\u5316\u8f93\u51fa\uff0c\u4f7f\u8f93\u51fa\u66f4\u6613\u8bfb\n - \"minified\": \u5220\u9664\u6240\u6709\u7a7a\u683c\u548c\u6362\u884c\u7b26\uff0c\u4f7f\u8f93\u51fa\u66f4\u7d27\u51d1\n - `<dict/tuple>`\uff1a \u66f4\u52a0\u7ec6\u81f4\u7684\u683c\u5f0f\u8bbe\u5b9a\uff0c\u6bd4\u5982 `{\"indent\": 2, ensure_ascii=True}`\uff0c\u5982\u679c\u9700\u8981\u57fa\u4e8e\u5df2\u6709\u683c\u5f0f\u8fdb\u884c\u5fae\u8c03\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u5f0f:`(\"pretty_printed\", {\"indent\": 2, ensure_ascii=True})`\n - computer_science.algorithm.parallel_and_concurrent\n - \u3010bug fix\u3011\u3010incompatible change\u3011fix bug in multi_thread_execute()\uff0c\u4fee\u6b63\u4e86\u53c2\u6570timeout\u65e0\u6cd5\u5bf9\u6bcf\u4e2a\u4efb\u52a1\u8d77\u6548\u7684bug\uff0c\u5c06\u53c2\u6570thread_nums\u66f4\u540d\u4e3aworker_nums\u3002\n - \u3010new feature\u3011add multi_process_execute()\uff0c\u7528\u4e8e\u591a\u8fdb\u7a0b\u6267\u884c\u4efb\u52a1\u3002\u540c\u6837\u652f\u6301timeout\u8bbe\u5b9a\u548c\u8fdb\u5ea6\u6761\u663e\u793a\u3002\n - patches.for_matplotlib.common_charts\n - modify plot_lines()\uff0c\u6dfb\u52a0\u4e86 x_ticklabels_name \u53c2\u6570\u7528\u4e8e\u81ea\u5b9a\u4e49x\u8f74\u7684\u5750\u6807\u503c\n - \u4ee5\u4e0a\u4fee\u6539\uff0c\u5747\u5df2\u6dfb\u52a0\u4e86\u5bf9\u5e94\u7684\u6d4b\u8bd5\u7528\u4f8b\u3002\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u4e00\u4e2a\u5e38\u7528\u7684\u5de5\u5177\u4ee3\u7801\u5305\u96c6\u5408",
"version": "1.4.7",
"project_urls": {
"Download": "https://github.com/username/your-package/archive/refs/tags/v1.0.0.tar.gz",
"Homepage": "https://github.com/cantbeblank96/kevin_toolbox"
},
"split_keywords": [
"mathematics",
" pytorch",
" numpy",
" machine-learning",
" algorithm"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d329c225139b7dbb1eec356a036cd792d496db51e1ba384d5f61139bfbb8b7ba",
"md5": "be0e6ea030a37453ebb204d806844a71",
"sha256": "0e084d3f143a87d4ee608b43668843835344150665aca74d7cd83f2fb122e3ec"
},
"downloads": -1,
"filename": "kevin_toolbox-1.4.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "be0e6ea030a37453ebb204d806844a71",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 353946,
"upload_time": "2025-02-19T14:02:15",
"upload_time_iso_8601": "2025-02-19T14:02:15.718534Z",
"url": "https://files.pythonhosted.org/packages/d3/29/c225139b7dbb1eec356a036cd792d496db51e1ba384d5f61139bfbb8b7ba/kevin_toolbox-1.4.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "16b1d7f92a2ae904d31147aa429ef42429e1bf6de2071e8831b9c4516c87118a",
"md5": "794506476a1e130d2c2f1e20d7cb08f6",
"sha256": "da79e01073cbd72808e3f919ba66ea7697c5cab1f487ee21283d36563f40cbda"
},
"downloads": -1,
"filename": "kevin-toolbox-1.4.7.tar.gz",
"has_sig": false,
"md5_digest": "794506476a1e130d2c2f1e20d7cb08f6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 194495,
"upload_time": "2025-02-19T14:02:19",
"upload_time_iso_8601": "2025-02-19T14:02:19.500107Z",
"url": "https://files.pythonhosted.org/packages/16/b1/d7f92a2ae904d31147aa429ef42429e1bf6de2071e8831b9c4516c87118a/kevin-toolbox-1.4.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-19 14:02:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cantbeblank96",
"github_project": "kevin_toolbox",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "kevin-toolbox"
}