image crop utils 资源图裁剪打分
Project description
为了区分3.0与4.0版本,同时资源图与详情页也共用的一套裁剪逻辑代码。
为了降低裁剪部分维护与开发难度,封装为裁剪工具包
包制作流程
环境: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.15 -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.16.tar.gz
(27.1 kB
view hashes)
Built Distribution
Close
Hashes for crop_utils-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a96e5006638369fbcc48ace5f136dd99c1725476828889ab24da6ac9877640c6 |
|
MD5 | 5c998cc0c6c8565f1d6ddc0c1055ac84 |
|
BLAKE2b-256 | 94cb43b46fbaf0324845a0eaa0da39cae0d4d6480a38769727209c3e01a4ddc3 |