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

Uploaded Source

Built Distribution

kevin_toolbox-1.0.11-py3-none-any.whl (194.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kevin-toolbox-1.0.11.tar.gz
Algorithm Hash digest
SHA256 6d650774597dd298e52ecd6bbf96ea8ebd84b5f7856bcaae9ff171eb52830a36
MD5 db774c1164c0adcc98ddb41ff828576c
BLAKE2b-256 a3c8fbe0bc24d78864a1d82ae0d7b212be224076311c974b605be5810b896f4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kevin_toolbox-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 58b8dee17f631817c01357b82fbccfed3cfc58a03d3e3fa863c684dfd69dc41e
MD5 01d7f2b2b5312fb89c81aea5ee040452
BLAKE2b-256 6ae921a7004d342e4bf0724878aa352813afbd83908421e8ab0035e829d1c742

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