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.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() 来实现。
      • 添加了单元测试

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.0.11.tar.gz (108.7 kB view details)

Uploaded Source

Built Distribution

kevin_toolbox_dev-1.0.11-py3-none-any.whl (194.8 kB view details)

Uploaded Python 3

File details

Details for the file kevin-toolbox-dev-1.0.11.tar.gz.

File metadata

  • Download URL: kevin-toolbox-dev-1.0.11.tar.gz
  • Upload date:
  • Size: 108.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.11

File hashes

Hashes for kevin-toolbox-dev-1.0.11.tar.gz
Algorithm Hash digest
SHA256 f10c433c4b0048a0c4b3e614afcdd4a2b71a0e7a3efb1ec98c73eeea8179dc6c
MD5 e77454b12ad82ae85f5fad02db12cec6
BLAKE2b-256 2c043cb6840addb09570cff020e35ad5b336ed7c3dc5ad4804b1ba3c627fc161

See more details on using hashes here.

File details

Details for the file kevin_toolbox_dev-1.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for kevin_toolbox_dev-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5d247f188044cd2da66c5139bd9f5080f70d42b674f7f1fd652c28df084ed4b3
MD5 1e1119653a97bcbadcf24d1ac3304c94
BLAKE2b-256 e1b6eb83b6f0f0832a062b311c1deff6e7129f32fb6d5b71b993e00d8004cb09

See more details on using hashes here.

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