image crop utils 增加下颚裁剪点
Project description
Ecpro区分3.0与4.0版本,同时资源图与详情页页也用的一套裁剪逻辑代码。
为了降低裁剪部分维护与开发难度,故封装了Ecpro工具包
包制作流程
环境:win
python版本: 3.9
自定义包
https://packaging.python.org/tutorials/packaging-projects/#
项目目录结构
ecpro-util/
|-- src/
| |-- ecpro/
| | |-- init.py
| | |-- html_slot_config.py
| | |-- image.py
| | |-- img_crop.py
|--tests/
| |--test.py
|--setup.py
|--LICENSE
|--MANIFEST.IN
|--pyproject.toml
|--READNE.md
打包
python setup.py sdist bdist_wheel
发布到pypi
首先需要在pypi上注册并绑定邮箱才有权限上传
twine upload dist/*
安装
pip install crop-utils==0.0.1 -i https://pypi.python.org/simple/
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
crop_utils-0.0.2.tar.gz
(21.7 kB
view hashes)
Built Distribution
crop_utils-0.0.2-py3-none-any.whl
(21.4 kB
view hashes)
Close
Hashes for crop_utils-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70198ff4c003d5e0dae1760e61c7a34ed06a52dda29bb8bfa563f9e2bc6027c2 |
|
MD5 | 3934d71473373cbc50334a77e358777c |
|
BLAKE2b-256 | 749d46722746c2dcd8144c1e788856a4d749613a349548805550c7c481222f46 |