Skip to main content

Personal method encapsulation

Project description

个人常用工具类封装

更新历史

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.2.22.1.tar.gz (79.5 kB view details)

Uploaded Source

Built Distribution

deng-2022.2.22.1-py3-none-any.whl (86.8 kB view details)

Uploaded Python 3

File details

Details for the file deng-2022.2.22.1.tar.gz.

File metadata

  • Download URL: deng-2022.2.22.1.tar.gz
  • Upload date:
  • Size: 79.5 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

Hashes for deng-2022.2.22.1.tar.gz
Algorithm Hash digest
SHA256 48733c5eba3d13490561bb5efd0ed7316a9afe1a2ada06d3926d1dbeacecf4b1
MD5 fb3a63a45b6b3c09c1f6925b37137579
BLAKE2b-256 f1184b393d2168f8e97b3e407f914ee25f348eb3aea23e5adfe56d8a3c730382

See more details on using hashes here.

File details

Details for the file deng-2022.2.22.1-py3-none-any.whl.

File metadata

  • Download URL: deng-2022.2.22.1-py3-none-any.whl
  • Upload date:
  • Size: 86.8 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

Hashes for deng-2022.2.22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f932b64b7dd1a864f04d333013cfe6b0bf3e1b296b0f786f3ea5072ff4a69990
MD5 fdeb3693e764843f2696b9a444a447ff
BLAKE2b-256 291acda1cd2f99402650a94e174f38115d33f267c38464abc1fa9bb3dffa1ab7

See more details on using hashes here.

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