Personal method encapsulation
Project description
个人常用工具类封装
更新历史
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/*
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
deng-2022.4.24.1.tar.gz
(83.1 kB
view details)
Built Distribution
File details
Details for the file deng-2022.4.24.1.tar.gz
.
File metadata
- Download URL: deng-2022.4.24.1.tar.gz
- Upload date:
- Size: 83.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ffd1692f34cdc3167a75a11f7567e7923ecfe344ca15d754a632623244172ce |
|
MD5 | a7fd099dd020872809a6cf53db2b8723 |
|
BLAKE2b-256 | f5c3e0a4c6b7951f94ca07729441d01ea4630955531fffbaea69bc0a94479acd |
File details
Details for the file deng-2022.4.24.1-py3-none-any.whl
.
File metadata
- Download URL: deng-2022.4.24.1-py3-none-any.whl
- Upload date:
- Size: 90.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd01b54dd6e45333e1411b2df402912d2c0199272819678e5ce7a5844111230f |
|
MD5 | 267d39c130b9f8387863fb7b03a9e37b |
|
BLAKE2b-256 | c44ea4ff9aef3929d7d40dfec680e81816d226baac543e76c92e6a9fd727f760 |