个人常用工具类封装
更新历史
2022-5-9
- git.pull_repo方法增加consistency_check参数,默认启用分支一致性检查
2022-4-24
- windows.py模块更新,集成一些常用方法
2022-4-8
- 增加get_uuid方法
- get_current_time方法支持直接传递格式,支持纳秒级输出
- 修复自定义文件缓存类中setex方法声明与redis中相映方法声明不一致的问题
- 优化文件缓存类位置
- 优化日志
2022-4-7
- 添加timestamp_to_str方法,快速将时间戳转换成指定格式的字符串
- 优化日志
- 优化缓存类,防止没有配置redis时报错
2022-3-26
- 优化压缩函数compress_tgz与compress_zip支持直接压缩文件(原来只支持压缩目录)
2022-3-25
- 优化格式化输出函数format_output中的溯源日志信息
- 增加控制参数,可控制接口请求失败时是否显示整个http报文
2022-3-1
- 优化parse_url_to_dict方法
- 优化部分日志级别及为部分方法添加注释说明
- 添加AES CBC加解密算法
2021-11-17
- 重构
2019-11-07
- 新增生成银联卡卡号方法,可通过支付宝校验
2018-04-20
- 新增to_dict方法,将x-www-form-urlencoded格式字符串转换成dict
2018-02-27
- 新增mysql连接池类MysqlPool;
pip安装
# 此方式安装方法最简便,但可能不是最新的
pip install deng
# 安装最新的版本
pip install git+https://github.com/Deng2016/deng@201801
requirements.txt引用
-e git+git@github.com:Deng2016/deng.git@master#egg=deng
安装应用
python setup.py install
开发模式安装
python setup.py develop
创建egg包
# 生成egg包
python setup.py bdist_egg
# 安装egg包
easy_install deng-0.1-py2.7.egg
创建tar.gz包
# 创建tar.gz包
python setup.py sdist --formats=gztar
# 将tar.gz包安装到别处
pip install deng-0.1.tar.gz
将包发布到pypi
# 先升级打包工具
pip install --upgrade setuptools wheel twine
# 打包
python setup.py sdist bdist_wheel
# 检查
twine check dist/*
# 上传pypi
twine upload dist/*
Metadata
Release files for deng 2025.10.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deng-2025.10.11.1.tar.gz | 101.5 kB | Without provenance | Details for deng-2025.10.11.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deng-2025.10.11.1-py3-none-any.whl | Python 3 | none | any | Details for deng-2025.10.11.1-py3-none-any.whl |
Total release size: 211.1 kB
Release files / deng-2025.10.11.1.tar.gz
| Download URL | deng-2025.10.11.1.tar.gz |
|---|---|
| Size | 101.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d73431b7d53e8d6642ed31574c40ad910b1abedce33ef16462e44599cf24861
|
|
BLAKE2b-256 checksum How to use checksums |
e8f52a72acafcc7a05f3eb49844cde7deaba1b5155c491234b0cd7ae6093d21a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / deng-2025.10.11.1-py3-none-any.whl
| Download URL | deng-2025.10.11.1-py3-none-any.whl |
|---|---|
| Size | 109.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac6bdc99f26555bf1c111269634f3b65680f0c22cdeb96d32b3c6ce3bf1e05e4
|
|
BLAKE2b-256 checksum How to use checksums |
8bd66e65ced1600280845ef71d7984bdf9843cd2246397d87fc13db80098ea01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for deng 2025.10.11.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.