Skip to main content

一个常用的工具代码包集合

Project description

kevin_toolbox

一个通用的工具代码包集合

环境要求

numpy>=1.19
pytorch>=1.2

安装方法:

pip install kevin-toolbox  --no-dependencies

项目地址 Repo

使用指南 User_Guide

免责声明 Disclaimer

版本更新记录

  • v 1.2.4 (2023-08-14)【new feature】【bug fix】
    • nested_dict_list
      • 【bug fix】fix backend :skip:simple,修复了不支持 None 类型值的问题。
      • 【new feature】modify write(),添加了参数以支持控制对写入过程中正确性与完整性的要求的严格程度,目前支持三种可选值,分别对应枚举类型 Strictness_Level 中的三个取值:
        • "high" / Strictness_Level.COMPLETE 所有节点均有一个或者多个匹配上的 backend, 且第一个匹配上的 backend 就成功写入。
        • "normal" / Strictness_Level.COMPATIBLE 所有节点均有一个或者多个匹配上的 backend, 但是首先匹配到的 backend 写入出错,使用其后再次匹配到的其他 backend 能够成功写入
        • "low" / Strictness_Level.IGNORE_FAILURE 匹配不完整,或者某些节点尝试过所有匹配到 的 backend 之后仍然无法写入
        • 默认值是 "normal"。
        • 添加了对应的测试用例。
      • 【bug fix】fix bug in backend :skip:simple and :json,修复了 writable() 中 cache 不能及时更新的问题。
    • 使用 with pytest.raises(<Error>) 来代替测试用例中的 try else 方式来捕抓异常

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kevin-toolbox-dev-1.2.4.tar.gz (132.9 kB view hashes)

Uploaded Source

Built Distribution

kevin_toolbox_dev-1.2.4-py3-none-any.whl (239.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page