一个常用的工具代码包集合
Project description
kevin_toolbox
一个通用的工具代码包集合
环境要求
numpy>=1.19
pytorch>=1.2
安装方法:
pip install kevin-toolbox --no-dependencies
- v 1.1.4(2023-07-24)【bug fix】
- patches.for_os
- add pack() and unpack() to patches.for_os,用于打包/解压 .tar 文件
- data_flow.file.json_【bug fix】
- fix bug in read(),修复了只对字典调用 converters 进行处理的问题。(converters理应对每个节点都去尝试进行处理)
- fix bug in write(),修复了只对非字典or列表调用 converters 进行处理的问题。(converters理应对每个节点都去尝试进行处理)
- 添加了新的 converter:
- escape_non_str_dict_key:将字典中的所有非字符串的 key 进行转义
- unescape_non_str_dict_key:反转义
- escape_tuple:将 tuple 进行转义
- unescape_tuple:反转义
- 建议对 write() 使用
converters=[escape_non_str_dict_key, escape_tuple]
,对 read() 使用converters=[unescape_non_str_dict_key, unescape_tuple]
,可以通过在 write() 和 read() 中添加参数 b_use_suggested_converter=True 来直接使用建议的配置。
- computer_science.algorithm.registration【bug fix】
- fix bug in Registry.add(),重新调整了从属性中推断 name 的逻辑。
- patches.for_os
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.1.4.tar.gz
(129.1 kB
view hashes)
Built Distribution
Close
Hashes for kevin_toolbox_dev-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 066d89e35057eecd224fc1aca70893c42b4d4304ce59e021c53ea58cb50872d6 |
|
MD5 | 026eaf3b41830002de6d8c2d109b4ec5 |
|
BLAKE2b-256 | 5c3c30770af5b78e11a2919102e4a9dfeba9cf499fe3177377f87de66514eba2 |