一个常用的工具代码包集合
Project description
kevin_toolbox
一个通用的工具代码包集合
环境要求
numpy>=1.19
pytorch>=1.2
安装方法:
pip install kevin-toolbox --no-dependencies
- v 1.0.12(2023-06-13)
-
computer_science.algorithm.registration
- 添加了 Registry 注册器类,它具有以下功能:
- 管理成员,包括添加 add()、获取 get() pop() 成员等
- 支持通过装饰器 register() 来添加成员
- 支持通过 collect_from() 搜索指定的路径,当该路径下的模块被 register() 装饰器包裹时,将自动导入(用于解决python中的模块是惰性的问题)
- 添加了 Registry 注册器类,它具有以下功能:
-
fix bug in kevin_toolbox/developing/design_pattern/singleton/singleton_for_uid.py
- 即使
__new__
函数返回一个已经存在的实例,__init__
还是会被调用的,所以要特别注意__init__
中对变量的赋值,避免对已经存在的实例中的变量重新进行初始化
- 即使
-
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.12.tar.gz
(111.8 kB
view hashes)
Built Distribution
Close
Hashes for kevin_toolbox_dev-1.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7affb15fcc11a1736a8f12a9aac1ff11f4b89159946c1ec1b3a024ad0422ef8 |
|
MD5 | c41e217aade41a6a07feb334eda4e34b |
|
BLAKE2b-256 | 94eb365a6a97e0007df6afbfd2682ed71eeab8c479fcf68acaead3c283dc1098 |