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.12(2023-06-13)
    • computer_science.algorithm.registration

      • 添加了 Registry 注册器类,它具有以下功能:
        • 管理成员,包括添加 add()、获取 get() pop() 成员等
        • 支持通过装饰器 register() 来添加成员
        • 支持通过 collect_from() 搜索指定的路径,当该路径下的模块被 register() 装饰器包裹时,将自动导入(用于解决python中的模块是惰性的问题)
    • fix bug in kevin_toolbox/developing/design_pattern/singleton/singleton_for_uid.py

      • 即使__new__函数返回一个已经存在的实例,__init__还是会被调用的,所以要特别注意__init__中对变量的赋值,避免对已经存在的实例中的变量重新进行初始化

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.12.tar.gz (111.8 kB view hashes)

Uploaded Source

Built Distribution

kevin_toolbox_dev-1.0.12-py3-none-any.whl (198.9 kB view hashes)

Uploaded Python 3

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