py-img-processor 1.0.1__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of py-img-processor might be problematic. Click here for more details.
- {py_img_processor-1.0.1/py_img_processor.egg-info → py_img_processor-1.0.3}/PKG-INFO +1 -1
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/__init__.py +1 -1
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/__init__.py +1 -1
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/base.py +2 -8
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/processor.py +1 -1
- {py_img_processor-1.0.1 → py_img_processor-1.0.3/py_img_processor.egg-info}/PKG-INFO +1 -1
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/LICENSE +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/MANIFEST.in +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/README.md +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/enums.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/exceptions.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/main.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/alpha.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/blur.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/circle.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/crop.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/gray.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/merge.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/resize.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/rotate.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/parsers/watermark.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/imgprocessor/utils.py +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/SOURCES.txt +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/dependency_links.txt +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/entry_points.txt +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/not-zip-safe +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/requires.txt +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/top_level.txt +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/setup.cfg +0 -0
- {py_img_processor-1.0.1 → py_img_processor-1.0.3}/setup.py +0 -0
|
@@ -38,7 +38,7 @@ class ProcessParams(object):
|
|
|
38
38
|
actions: typing.Optional[list] = None,
|
|
39
39
|
**kwargs: typing.Any,
|
|
40
40
|
) -> None:
|
|
41
|
-
self.save_parser: ImgSaveParser = ImgSaveParser.init(kwargs, enable_base64=enable_base64)
|
|
41
|
+
self.save_parser: ImgSaveParser = ImgSaveParser.init(kwargs, enable_base64=enable_base64) # type: ignore
|
|
42
42
|
|
|
43
43
|
_actions = []
|
|
44
44
|
for i in actions or []:
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
|
|
3
|
-
try:
|
|
4
|
-
# python3.11只后
|
|
5
|
-
from typing import Self # type: ignore
|
|
6
|
-
except Exception:
|
|
7
|
-
from typing_extensions import Self
|
|
8
|
-
|
|
9
3
|
import re
|
|
10
4
|
|
|
11
5
|
from PIL import Image, ImageOps
|
|
@@ -23,14 +17,14 @@ class BaseParser(object):
|
|
|
23
17
|
pass
|
|
24
18
|
|
|
25
19
|
@classmethod
|
|
26
|
-
def init(cls, data: dict, enable_base64: bool = False) ->
|
|
20
|
+
def init(cls, data: dict, enable_base64: bool = False) -> "BaseParser":
|
|
27
21
|
params = cls.validate_args(enable_base64=enable_base64, **data)
|
|
28
22
|
ins = cls(**params)
|
|
29
23
|
ins.validate()
|
|
30
24
|
return ins
|
|
31
25
|
|
|
32
26
|
@classmethod
|
|
33
|
-
def init_by_str(cls, param_str: str) ->
|
|
27
|
+
def init_by_str(cls, param_str: str) -> "BaseParser":
|
|
34
28
|
data = cls.parse_str(param_str)
|
|
35
29
|
return cls.init(data, enable_base64=True)
|
|
36
30
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{py_img_processor-1.0.1 → py_img_processor-1.0.3}/py_img_processor.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|