一个常用的工具代码包集合
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-1.0.12.tar.gz
(111.5 kB
view details)
Built Distribution
File details
Details for the file kevin-toolbox-1.0.12.tar.gz
.
File metadata
- Download URL: kevin-toolbox-1.0.12.tar.gz
- Upload date:
- Size: 111.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 593e5952c05996a7f83461ffe7bd1cb0bdfb2b09612379205844016d459c1c40 |
|
MD5 | fbf5c0fa25e5c581d52f1e3b7e6a257e |
|
BLAKE2b-256 | f1ef1ffb9a13eac801488fe7ca8bfce0b4a4802c92852e8d8c1cd16c53c8a0fa |
File details
Details for the file kevin_toolbox-1.0.12-py3-none-any.whl
.
File metadata
- Download URL: kevin_toolbox-1.0.12-py3-none-any.whl
- Upload date:
- Size: 198.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23782968b237f58968f35c0d819d71cca9372df64e3baf8a09a7c326338ca1ff |
|
MD5 | 4d3389eb740324a153b98978b5c759a4 |
|
BLAKE2b-256 | 08c17e06354f44665f34d407c87e9dbeb157c4f3f0f0ebb7ddb0c2f1a915ac8e |