Skip to main content

ecpro 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 ecpro -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

ecpro-0.0.9.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

ecpro-0.0.9-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file ecpro-0.0.9.tar.gz.

File metadata

  • Download URL: ecpro-0.0.9.tar.gz
  • Upload date:
  • Size: 21.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.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for ecpro-0.0.9.tar.gz
Algorithm Hash digest
SHA256 26f1cba65b3717fe8ecff42d0cb74f1fd997948202e61116ea1bef0eed3d1689
MD5 5cb3ec8fd3bee5ac4ed6b5d7ef5d067c
BLAKE2b-256 b1b7441258ad682b4078ca2620f8da73669f6aff3880cc838656bd81d5fb349a

See more details on using hashes here.

File details

Details for the file ecpro-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: ecpro-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 20.9 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.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for ecpro-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8043f27af7b323a0a56fb218f1d81dd0e2870a99d76c9b7540619884ae409ee0
MD5 137a25860d5d73c2b66db04784c420ad
BLAKE2b-256 f7c1035365aaee06f0e17ac9ef68bbd6d8c8bc4a6690d8e7668c48681ccbe344

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