tencentcloud-sdk-python-mps 3.1.13__tar.gz → 3.1.17__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 tencentcloud-sdk-python-mps might be problematic. Click here for more details.
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud/mps/v20190612/models.py +218 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mps-3.1.17/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mps-3.1.13/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud/mps/v20190612/mps_client.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud/mps/v20190612/mps_client_async.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.13 → tencentcloud_sdk_python_mps-3.1.17}/tencentcloud_sdk_python_mps.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.17
|
|
4
4
|
Summary: Tencent Cloud Mps SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.17
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-mps',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.17,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mps SDK for Python',
|
|
@@ -1962,6 +1962,102 @@ class AddBlindWatermarkConfig(AbstractModel):
|
|
|
1962
1962
|
|
|
1963
1963
|
|
|
1964
1964
|
|
|
1965
|
+
class AddOnImageInput(AbstractModel):
|
|
1966
|
+
r"""图片处理编排中使用的输入参数。
|
|
1967
|
+
|
|
1968
|
+
"""
|
|
1969
|
+
|
|
1970
|
+
def __init__(self):
|
|
1971
|
+
r"""
|
|
1972
|
+
:param _Image: 图片路径。
|
|
1973
|
+
:type Image: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
1974
|
+
"""
|
|
1975
|
+
self._Image = None
|
|
1976
|
+
|
|
1977
|
+
@property
|
|
1978
|
+
def Image(self):
|
|
1979
|
+
r"""图片路径。
|
|
1980
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
1981
|
+
"""
|
|
1982
|
+
return self._Image
|
|
1983
|
+
|
|
1984
|
+
@Image.setter
|
|
1985
|
+
def Image(self, Image):
|
|
1986
|
+
self._Image = Image
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
def _deserialize(self, params):
|
|
1990
|
+
if params.get("Image") is not None:
|
|
1991
|
+
self._Image = MediaInputInfo()
|
|
1992
|
+
self._Image._deserialize(params.get("Image"))
|
|
1993
|
+
memeber_set = set(params.keys())
|
|
1994
|
+
for name, value in vars(self).items():
|
|
1995
|
+
property_name = name[1:]
|
|
1996
|
+
if property_name in memeber_set:
|
|
1997
|
+
memeber_set.remove(property_name)
|
|
1998
|
+
if len(memeber_set) > 0:
|
|
1999
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
class AddOnParameter(AbstractModel):
|
|
2004
|
+
r"""图片处理附加输入参数。
|
|
2005
|
+
|
|
2006
|
+
"""
|
|
2007
|
+
|
|
2008
|
+
def __init__(self):
|
|
2009
|
+
r"""
|
|
2010
|
+
:param _ImageSet: 附加图片输入。
|
|
2011
|
+
:type ImageSet: list of AddOnImageInput
|
|
2012
|
+
:param _OutputConfig: 图片处理输出配置。
|
|
2013
|
+
:type OutputConfig: :class:`tencentcloud.mps.v20190612.models.ImageProcessOutputConfig`
|
|
2014
|
+
"""
|
|
2015
|
+
self._ImageSet = None
|
|
2016
|
+
self._OutputConfig = None
|
|
2017
|
+
|
|
2018
|
+
@property
|
|
2019
|
+
def ImageSet(self):
|
|
2020
|
+
r"""附加图片输入。
|
|
2021
|
+
:rtype: list of AddOnImageInput
|
|
2022
|
+
"""
|
|
2023
|
+
return self._ImageSet
|
|
2024
|
+
|
|
2025
|
+
@ImageSet.setter
|
|
2026
|
+
def ImageSet(self, ImageSet):
|
|
2027
|
+
self._ImageSet = ImageSet
|
|
2028
|
+
|
|
2029
|
+
@property
|
|
2030
|
+
def OutputConfig(self):
|
|
2031
|
+
r"""图片处理输出配置。
|
|
2032
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageProcessOutputConfig`
|
|
2033
|
+
"""
|
|
2034
|
+
return self._OutputConfig
|
|
2035
|
+
|
|
2036
|
+
@OutputConfig.setter
|
|
2037
|
+
def OutputConfig(self, OutputConfig):
|
|
2038
|
+
self._OutputConfig = OutputConfig
|
|
2039
|
+
|
|
2040
|
+
|
|
2041
|
+
def _deserialize(self, params):
|
|
2042
|
+
if params.get("ImageSet") is not None:
|
|
2043
|
+
self._ImageSet = []
|
|
2044
|
+
for item in params.get("ImageSet"):
|
|
2045
|
+
obj = AddOnImageInput()
|
|
2046
|
+
obj._deserialize(item)
|
|
2047
|
+
self._ImageSet.append(obj)
|
|
2048
|
+
if params.get("OutputConfig") is not None:
|
|
2049
|
+
self._OutputConfig = ImageProcessOutputConfig()
|
|
2050
|
+
self._OutputConfig._deserialize(params.get("OutputConfig"))
|
|
2051
|
+
memeber_set = set(params.keys())
|
|
2052
|
+
for name, value in vars(self).items():
|
|
2053
|
+
property_name = name[1:]
|
|
2054
|
+
if property_name in memeber_set:
|
|
2055
|
+
memeber_set.remove(property_name)
|
|
2056
|
+
if len(memeber_set) > 0:
|
|
2057
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2058
|
+
|
|
2059
|
+
|
|
2060
|
+
|
|
1965
2061
|
class AddOnSubtitle(AbstractModel):
|
|
1966
2062
|
r"""外挂字幕。
|
|
1967
2063
|
|
|
@@ -41654,6 +41750,88 @@ class ImageEraseLogoConfig(AbstractModel):
|
|
|
41654
41750
|
|
|
41655
41751
|
|
|
41656
41752
|
|
|
41753
|
+
class ImageProcessOutputConfig(AbstractModel):
|
|
41754
|
+
r"""图片处理编排输出配置。
|
|
41755
|
+
|
|
41756
|
+
"""
|
|
41757
|
+
|
|
41758
|
+
def __init__(self):
|
|
41759
|
+
r"""
|
|
41760
|
+
:param _AspectRatio: 输出图片的宽高比。可以配合ImageWidth 和 ImageHeight 使用,规则如下:
|
|
41761
|
+
|
|
41762
|
+
1. 仅指定 AspectRatio 时,根据原图输入进行自适应调整。
|
|
41763
|
+
2. 指定 AspectRatio 和 ImageWidth 时,ImageHeight 由两者计算得出,反亦是如此。
|
|
41764
|
+
3. 当AspectRatio、ImageWidth、ImageHeight 同时指定的时候,优先使用ImageWidth、ImageHeight。
|
|
41765
|
+
|
|
41766
|
+
可取值:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9
|
|
41767
|
+
|
|
41768
|
+
支持该参数 ScheduleId: 30010(扩图)
|
|
41769
|
+
:type AspectRatio: str
|
|
41770
|
+
:param _ImageHeight: 图片输出高度,单位:像素。
|
|
41771
|
+
:type ImageHeight: int
|
|
41772
|
+
:param _ImageWidth: 图片输出宽度,单位:像素。
|
|
41773
|
+
:type ImageWidth: int
|
|
41774
|
+
"""
|
|
41775
|
+
self._AspectRatio = None
|
|
41776
|
+
self._ImageHeight = None
|
|
41777
|
+
self._ImageWidth = None
|
|
41778
|
+
|
|
41779
|
+
@property
|
|
41780
|
+
def AspectRatio(self):
|
|
41781
|
+
r"""输出图片的宽高比。可以配合ImageWidth 和 ImageHeight 使用,规则如下:
|
|
41782
|
+
|
|
41783
|
+
1. 仅指定 AspectRatio 时,根据原图输入进行自适应调整。
|
|
41784
|
+
2. 指定 AspectRatio 和 ImageWidth 时,ImageHeight 由两者计算得出,反亦是如此。
|
|
41785
|
+
3. 当AspectRatio、ImageWidth、ImageHeight 同时指定的时候,优先使用ImageWidth、ImageHeight。
|
|
41786
|
+
|
|
41787
|
+
可取值:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9、21:9
|
|
41788
|
+
|
|
41789
|
+
支持该参数 ScheduleId: 30010(扩图)
|
|
41790
|
+
:rtype: str
|
|
41791
|
+
"""
|
|
41792
|
+
return self._AspectRatio
|
|
41793
|
+
|
|
41794
|
+
@AspectRatio.setter
|
|
41795
|
+
def AspectRatio(self, AspectRatio):
|
|
41796
|
+
self._AspectRatio = AspectRatio
|
|
41797
|
+
|
|
41798
|
+
@property
|
|
41799
|
+
def ImageHeight(self):
|
|
41800
|
+
r"""图片输出高度,单位:像素。
|
|
41801
|
+
:rtype: int
|
|
41802
|
+
"""
|
|
41803
|
+
return self._ImageHeight
|
|
41804
|
+
|
|
41805
|
+
@ImageHeight.setter
|
|
41806
|
+
def ImageHeight(self, ImageHeight):
|
|
41807
|
+
self._ImageHeight = ImageHeight
|
|
41808
|
+
|
|
41809
|
+
@property
|
|
41810
|
+
def ImageWidth(self):
|
|
41811
|
+
r"""图片输出宽度,单位:像素。
|
|
41812
|
+
:rtype: int
|
|
41813
|
+
"""
|
|
41814
|
+
return self._ImageWidth
|
|
41815
|
+
|
|
41816
|
+
@ImageWidth.setter
|
|
41817
|
+
def ImageWidth(self, ImageWidth):
|
|
41818
|
+
self._ImageWidth = ImageWidth
|
|
41819
|
+
|
|
41820
|
+
|
|
41821
|
+
def _deserialize(self, params):
|
|
41822
|
+
self._AspectRatio = params.get("AspectRatio")
|
|
41823
|
+
self._ImageHeight = params.get("ImageHeight")
|
|
41824
|
+
self._ImageWidth = params.get("ImageWidth")
|
|
41825
|
+
memeber_set = set(params.keys())
|
|
41826
|
+
for name, value in vars(self).items():
|
|
41827
|
+
property_name = name[1:]
|
|
41828
|
+
if property_name in memeber_set:
|
|
41829
|
+
memeber_set.remove(property_name)
|
|
41830
|
+
if len(memeber_set) > 0:
|
|
41831
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
41832
|
+
|
|
41833
|
+
|
|
41834
|
+
|
|
41657
41835
|
class ImageProcessTaskOutput(AbstractModel):
|
|
41658
41836
|
r"""图片处理结果信息
|
|
41659
41837
|
|
|
@@ -58483,6 +58661,14 @@ class ProcessImageRequest(AbstractModel):
|
|
|
58483
58661
|
:type ResourceId: str
|
|
58484
58662
|
:param _ImageTask: 图片处理参数。
|
|
58485
58663
|
:type ImageTask: :class:`tencentcloud.mps.v20190612.models.ImageTaskInput`
|
|
58664
|
+
:param _ScheduleId: 图片处理编排场景 ID。
|
|
58665
|
+
|
|
58666
|
+
- 30000:文字水印擦除
|
|
58667
|
+
- 30010:图片扩展
|
|
58668
|
+
- 30100:换装场景
|
|
58669
|
+
:type ScheduleId: int
|
|
58670
|
+
:param _AddOnParameter: 图片处理附加参数。
|
|
58671
|
+
:type AddOnParameter: :class:`tencentcloud.mps.v20190612.models.AddOnParameter`
|
|
58486
58672
|
"""
|
|
58487
58673
|
self._InputInfo = None
|
|
58488
58674
|
self._OutputStorage = None
|
|
@@ -58491,6 +58677,8 @@ class ProcessImageRequest(AbstractModel):
|
|
|
58491
58677
|
self._Definition = None
|
|
58492
58678
|
self._ResourceId = None
|
|
58493
58679
|
self._ImageTask = None
|
|
58680
|
+
self._ScheduleId = None
|
|
58681
|
+
self._AddOnParameter = None
|
|
58494
58682
|
|
|
58495
58683
|
@property
|
|
58496
58684
|
def InputInfo(self):
|
|
@@ -58577,6 +58765,32 @@ class ProcessImageRequest(AbstractModel):
|
|
|
58577
58765
|
def ImageTask(self, ImageTask):
|
|
58578
58766
|
self._ImageTask = ImageTask
|
|
58579
58767
|
|
|
58768
|
+
@property
|
|
58769
|
+
def ScheduleId(self):
|
|
58770
|
+
r"""图片处理编排场景 ID。
|
|
58771
|
+
|
|
58772
|
+
- 30000:文字水印擦除
|
|
58773
|
+
- 30010:图片扩展
|
|
58774
|
+
- 30100:换装场景
|
|
58775
|
+
:rtype: int
|
|
58776
|
+
"""
|
|
58777
|
+
return self._ScheduleId
|
|
58778
|
+
|
|
58779
|
+
@ScheduleId.setter
|
|
58780
|
+
def ScheduleId(self, ScheduleId):
|
|
58781
|
+
self._ScheduleId = ScheduleId
|
|
58782
|
+
|
|
58783
|
+
@property
|
|
58784
|
+
def AddOnParameter(self):
|
|
58785
|
+
r"""图片处理附加参数。
|
|
58786
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AddOnParameter`
|
|
58787
|
+
"""
|
|
58788
|
+
return self._AddOnParameter
|
|
58789
|
+
|
|
58790
|
+
@AddOnParameter.setter
|
|
58791
|
+
def AddOnParameter(self, AddOnParameter):
|
|
58792
|
+
self._AddOnParameter = AddOnParameter
|
|
58793
|
+
|
|
58580
58794
|
|
|
58581
58795
|
def _deserialize(self, params):
|
|
58582
58796
|
if params.get("InputInfo") is not None:
|
|
@@ -58592,6 +58806,10 @@ class ProcessImageRequest(AbstractModel):
|
|
|
58592
58806
|
if params.get("ImageTask") is not None:
|
|
58593
58807
|
self._ImageTask = ImageTaskInput()
|
|
58594
58808
|
self._ImageTask._deserialize(params.get("ImageTask"))
|
|
58809
|
+
self._ScheduleId = params.get("ScheduleId")
|
|
58810
|
+
if params.get("AddOnParameter") is not None:
|
|
58811
|
+
self._AddOnParameter = AddOnParameter()
|
|
58812
|
+
self._AddOnParameter._deserialize(params.get("AddOnParameter"))
|
|
58595
58813
|
memeber_set = set(params.keys())
|
|
58596
58814
|
for name, value in vars(self).items():
|
|
58597
58815
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.17
|
|
4
4
|
Summary: Tencent Cloud Mps SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.17
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.17
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.13
|
|
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
|