kevin-toolbox-dev


Namekevin-toolbox-dev JSON
Version 1.4.5 PyPI version JSON
download
home_pagehttps://github.com/cantbeblank96/kevin_toolbox
Summary一个常用的工具代码包集合
upload_time2024-12-22 15:40:47
maintainerNone
docs_urlNone
authorkevin hsu
requires_python>=3.6
licenseMIT
keywords mathematics pytorch numpy machine-learning algorithm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.5 (2024-12-22)【bug fix】【new feature】
  - data_flow.file.json_
    - modify write(),支持输入路径使用 ~ 表示家目录。
  - env_info
    - 【new feature】add variable_,该模块主要包含于处理环境变量相关的函数和类。
      - Env_Vars_Parser:解释并替换字符串中${}形式指定的环境变量,支持以下几种方式:
        - "${HOME}"                 家目录
        -  "${SYS:<var_name>}"       其他系统环境变量
        - "${KVT_XXX<ndl_name>}"   读取配置文件 ~/.kvt_cfg/.xxx.json 中的变量(xxx将被自动转为小写)
        - "${/xxx.../xxx.json<ndl_name>}"  读取指定路径下的配置文件 /xxx.../xxx.json 中的变量
      - env_vars_parser:类 Env_Vars_Parser 的默认实例
    - 添加了对应的测试用例。
  - nested_dict_list
    - 【new feature】modify get_value() and set_value() for parsed_name input,在字符串name的基础上,进一步支持使用结构化的(root_node, method_ls, node_ls)形式的name作为输入。
      - 相较于字符串形式的name,结构化的name因不用解释而效率更高,推荐使用。
    - 【new feature】modify serializer.read() and write(),支持通过 nodes_dir 指定节点内容保存在哪个目录下,同时支持在 settings 中为每个处理模式单独指定其使用的 nodes_dir 和 saved_node_name_format。
      - 有了该功能,允许多个ndl文件共享多个节点内容,形式更加自由。
    - 添加了对应的测试用例。



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cantbeblank96/kevin_toolbox",
    "name": "kevin-toolbox-dev",
    "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/96/81/39c010c42bd09a144309327ea907330de5068584923e4a70a4c378326d70/kevin-toolbox-dev-1.4.5.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.5 \uff082024-12-22\uff09\u3010bug fix\u3011\u3010new feature\u3011\n  - data_flow.file.json_\n    - modify write()\uff0c\u652f\u6301\u8f93\u5165\u8def\u5f84\u4f7f\u7528 ~ \u8868\u793a\u5bb6\u76ee\u5f55\u3002\n  - env_info\n    - \u3010new feature\u3011add variable_\uff0c\u8be5\u6a21\u5757\u4e3b\u8981\u5305\u542b\u4e8e\u5904\u7406\u73af\u5883\u53d8\u91cf\u76f8\u5173\u7684\u51fd\u6570\u548c\u7c7b\u3002\n      - Env_Vars_Parser\uff1a\u89e3\u91ca\u5e76\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d${}\u5f62\u5f0f\u6307\u5b9a\u7684\u73af\u5883\u53d8\u91cf\uff0c\u652f\u6301\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\n        - \"${HOME}\"                 \u5bb6\u76ee\u5f55\n        -  \"${SYS:<var_name>}\"       \u5176\u4ed6\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\n        - \"${KVT_XXX<ndl_name>}\"   \u8bfb\u53d6\u914d\u7f6e\u6587\u4ef6 ~/.kvt_cfg/.xxx.json \u4e2d\u7684\u53d8\u91cf\uff08xxx\u5c06\u88ab\u81ea\u52a8\u8f6c\u4e3a\u5c0f\u5199\uff09\n        - \"${/xxx.../xxx.json<ndl_name>}\"  \u8bfb\u53d6\u6307\u5b9a\u8def\u5f84\u4e0b\u7684\u914d\u7f6e\u6587\u4ef6 /xxx.../xxx.json \u4e2d\u7684\u53d8\u91cf\n      - env_vars_parser\uff1a\u7c7b Env_Vars_Parser \u7684\u9ed8\u8ba4\u5b9e\u4f8b\n    - \u6dfb\u52a0\u4e86\u5bf9\u5e94\u7684\u6d4b\u8bd5\u7528\u4f8b\u3002\n  - nested_dict_list\n    - \u3010new feature\u3011modify get_value() and set_value() for parsed_name input\uff0c\u5728\u5b57\u7b26\u4e32name\u7684\u57fa\u7840\u4e0a\uff0c\u8fdb\u4e00\u6b65\u652f\u6301\u4f7f\u7528\u7ed3\u6784\u5316\u7684(root_node, method_ls, node_ls)\u5f62\u5f0f\u7684name\u4f5c\u4e3a\u8f93\u5165\u3002\n      - \u76f8\u8f83\u4e8e\u5b57\u7b26\u4e32\u5f62\u5f0f\u7684name\uff0c\u7ed3\u6784\u5316\u7684name\u56e0\u4e0d\u7528\u89e3\u91ca\u800c\u6548\u7387\u66f4\u9ad8\uff0c\u63a8\u8350\u4f7f\u7528\u3002\n    - \u3010new feature\u3011modify serializer.read() and write()\uff0c\u652f\u6301\u901a\u8fc7 nodes_dir \u6307\u5b9a\u8282\u70b9\u5185\u5bb9\u4fdd\u5b58\u5728\u54ea\u4e2a\u76ee\u5f55\u4e0b\uff0c\u540c\u65f6\u652f\u6301\u5728 settings \u4e2d\u4e3a\u6bcf\u4e2a\u5904\u7406\u6a21\u5f0f\u5355\u72ec\u6307\u5b9a\u5176\u4f7f\u7528\u7684 nodes_dir \u548c saved_node_name_format\u3002\n      - \u6709\u4e86\u8be5\u529f\u80fd\uff0c\u5141\u8bb8\u591a\u4e2andl\u6587\u4ef6\u5171\u4eab\u591a\u4e2a\u8282\u70b9\u5185\u5bb9\uff0c\u5f62\u5f0f\u66f4\u52a0\u81ea\u7531\u3002\n    - \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.5",
    "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": "22e9c1fb0a39df418db3b4a3f32e17bc3c9f80403d05ecfbb84aae366905ecba",
                "md5": "c1cb977a6a2731029abed4a22e2203c0",
                "sha256": "5878bdb8d4e66c3c11a6a3a174943004ec6d0b10c643568937ed160d2bf6c7d2"
            },
            "downloads": -1,
            "filename": "kevin_toolbox_dev-1.4.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c1cb977a6a2731029abed4a22e2203c0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 342372,
            "upload_time": "2024-12-22T15:40:43",
            "upload_time_iso_8601": "2024-12-22T15:40:43.112935Z",
            "url": "https://files.pythonhosted.org/packages/22/e9/c1fb0a39df418db3b4a3f32e17bc3c9f80403d05ecfbb84aae366905ecba/kevin_toolbox_dev-1.4.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "968139c010c42bd09a144309327ea907330de5068584923e4a70a4c378326d70",
                "md5": "1e62d525a133dea4686d6b6c01094bfe",
                "sha256": "40a8e4b15bf5f3c22fd07a99558b48979306f4e36e4702426ab7200bf36c80ec"
            },
            "downloads": -1,
            "filename": "kevin-toolbox-dev-1.4.5.tar.gz",
            "has_sig": false,
            "md5_digest": "1e62d525a133dea4686d6b6c01094bfe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 189273,
            "upload_time": "2024-12-22T15:40:47",
            "upload_time_iso_8601": "2024-12-22T15:40:47.855314Z",
            "url": "https://files.pythonhosted.org/packages/96/81/39c010c42bd09a144309327ea907330de5068584923e4a70a4c378326d70/kevin-toolbox-dev-1.4.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-22 15:40:47",
    "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-dev"
}
        
Elapsed time: 1.19116s