一个常用的工具代码包集合
Project description
kevin_toolbox
一个通用的工具代码包集合
环境要求
numpy>=1.19
pytorch>=1.2
安装方法:
pip install kevin-toolbox --no-dependencies
- v 1.0.11(2023-6-11)
- kevin_toolbox.data_flow.file
- 让 kevin_notation 中的 column_dict 方式支持单行写入
- 将原来 computer_science.algorithm.utils 下的 for_dict 和 for_seq 移动到 computer_science.algorithm 下。
- computer_science.algorithm.for_nested_dict_list
- 将原来 utils 下面向 嵌套字典列表 类型数据的算法移动至到 utils.for_nested_dict_list 下,包括:get_hash()、get_value_by_name()、set_value_by_name()、traverse()
- 改进 set_value_by_name(),增加强制赋值模式,相应参数为 b_force
- 改进 traverse() 增加了 b_use_name_as_idx 参数以控制传入 match_cond/converter 中 idx 参数的类型(传入整体的 name 还是父节点的 index 或 key)
- add count_leaf_node_nums(),用于获取嵌套字典列表 var 中所有叶节点的数量。
- add get_leaf_nodes(),用于获取嵌套字典列表 var 中所有叶节点。该函数基于新版的 traverse() 来实现。
- 添加了单元测试
- kevin_toolbox.data_flow.file
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.0.11.tar.gz
(108.7 kB
view hashes)
Built Distribution
Close
Hashes for kevin_toolbox_dev-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d247f188044cd2da66c5139bd9f5080f70d42b674f7f1fd652c28df084ed4b3 |
|
MD5 | 1e1119653a97bcbadcf24d1ac3304c94 |
|
BLAKE2b-256 | e1b6eb83b6f0f0832a062b311c1deff6e7129f32fb6d5b71b993e00d8004cb09 |