Skip to main content

主体贴边缘不扩边

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==4.3.31 -i https://pypi.python.org/simple/

Project details


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

Uploaded Source

Built Distribution

crop_utils-4.3.31-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file crop_utils-4.3.31.tar.gz.

File metadata

  • Download URL: crop_utils-4.3.31.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.28.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for crop_utils-4.3.31.tar.gz
Algorithm Hash digest
SHA256 1fe225f27dae4f34802f8ab2ecc89c748bb5393bb0e9467d5036a507a5c9d737
MD5 36789a9fe044f124bc3650833af8a7ad
BLAKE2b-256 026d1f6e3093689004a228083f12c4f6b04a4ce41719d0cc59836639e9f801b6

See more details on using hashes here.

File details

Details for the file crop_utils-4.3.31-py3-none-any.whl.

File metadata

  • Download URL: crop_utils-4.3.31-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.28.2 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for crop_utils-4.3.31-py3-none-any.whl
Algorithm Hash digest
SHA256 5321a72aeb12a4a81fb372b3c017cdb63b673b47709bd4b83b944d6271f4e476
MD5 04d9c3d4bb198f047770ac5fd238c606
BLAKE2b-256 d0a34f05130b57dc07ff84250257d1d5cb6e96359393f36ceb837c64bf523ece

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