一个常用的工具代码包集合
Project description
kevin_toolbox
一个通用的工具代码包集合
环境要求
numpy>=1.19
pytorch>=1.2
安装方法:
pip install kevin-toolbox --no-dependencies
- 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 方式来捕抓异常
- nested_dict_list
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for kevin_toolbox_dev-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8602fe7412539723d5ed6021dc8d77231e6fdfa3ec2d4efaa26659727da9b3f |
|
MD5 | 192db1056577da753c0e2de82022a9ef |
|
BLAKE2b-256 | eb2dbc48a8b32bff513272e4ae8c393af62a220d636743ffa522e89882ca73b2 |