bce-python-sdk 0.9.22__py3-none-any.whl → 0.9.23__py3-none-any.whl

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.
baidubce/__init__.py CHANGED
@@ -18,7 +18,7 @@ from builtins import bytes
18
18
  from . import protocol
19
19
 
20
20
 
21
- SDK_VERSION = b'0.9.22'
21
+ SDK_VERSION = b'0.9.23'
22
22
  DEFAULT_SERVICE_DOMAIN = b'bcebos.com'
23
23
  URL_PREFIX = b'/v1'
24
24
  DEFAULT_ENCODING = 'UTF-8'
@@ -39,6 +39,32 @@ class VcaClient(BceBaseClient):
39
39
  def __init__(self, config=None):
40
40
  BceBaseClient.__init__(self, config)
41
41
 
42
+ @required(source=(bytes, str))
43
+ def get_image_abstract(self, source):
44
+ """
45
+ Get image abstract analyze result
46
+ :param source: image source
47
+ :type source: string or unicode
48
+ :return: **Http Response**
49
+ """
50
+ return self._send_request(http_methods.GET, b'/v1/abstract',
51
+ params={b'source': source})
52
+
53
+ @required(source=(bytes, str))
54
+ def put_image_abstract(self, source):
55
+ """
56
+ Analyze a image abstract sync.
57
+ :param source: image source
58
+ :type source: string or unicode
59
+ :param preset: analyze preset name
60
+ :type preset: string or unicode
61
+ :return: **Http Response**
62
+ """
63
+ body = {
64
+ 'source': source
65
+ }
66
+ return self._send_request(http_methods.PUT, b'/v1/abstract', body=json.dumps(body))
67
+
42
68
  @required(source=(bytes, str))
43
69
  def put_image(self, source, preset=None):
44
70
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bce-python-sdk
3
- Version: 0.9.22
3
+ Version: 0.9.23
4
4
  Summary: BCE SDK for python
5
5
  Home-page: http://bce.baidu.com
6
6
  Author:
@@ -1,4 +1,4 @@
1
- baidubce/__init__.py,sha256=-G511PkeERafe8LFgxNi1FRaEbxMOlMIywOZ2zDZN4c,813
1
+ baidubce/__init__.py,sha256=BWzUTNSVoR0JLIYRRDFhWMr7lwE8uVWK20N8pJjPLsY,813
2
2
  baidubce/bce_base_client.py,sha256=7gjkRy_YlTTb6TXHYHyZRYMjdVO7FTtHMdwXx8bPgsE,3428
3
3
  baidubce/bce_client_configuration.py,sha256=84xv1Hsi_6ddqZlU8Mde7JQHOl-zWNWX7CObPsorDbQ,3157
4
4
  baidubce/bce_response.py,sha256=V5a3bgRj04cM3Ml3s1OByLyZZSGDUy9PL52JSugmCgM,1655
@@ -155,7 +155,7 @@ baidubce/services/tsdb/tsdb_admin_client.py,sha256=Gs4ltGvtm17jhc02xmVTNLghj6iQc
155
155
  baidubce/services/tsdb/tsdb_client.py,sha256=Meg0mko2E5KgkZCd8vJWH7NAoMGWst3XqlxeiGIYZK4,9337
156
156
  baidubce/services/tsdb/tsdb_handler.py,sha256=N3_4d0n_shI1AqXI7E5vVbieoPH_afFVD479Rxsi5us,1744
157
157
  baidubce/services/vca/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
- baidubce/services/vca/vca_client.py,sha256=5PpG6VJLnrJtDFiYV2kiGYw8YkujyP7AQFlJnmgM0Xw,5624
158
+ baidubce/services/vca/vca_client.py,sha256=9admQNqJQSrbElMYkl_4ZCjZHNgVyEjIqwXV8wtP69w,6493
159
159
  baidubce/services/vcr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
160
160
  baidubce/services/vcr/vcr_client.py,sha256=nOyjO-UIAz8xxoMVTEhaWhmBnRHWfrArynMVmNoJkwY,13004
161
161
  baidubce/services/vpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -168,7 +168,7 @@ baidubce/services/vpc/vpc_client.py,sha256=6HD-TIxmNPujzIVc37Z9OOp_JUOoITUPzTwjm
168
168
  baidubce/services/vpn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
169
169
  baidubce/services/vpn/vpn_client.py,sha256=VGmPmnl7Il_NcbGMAgASmVK_1IF9HQ8PJ-WLij-7Axc,28554
170
170
  baidubce/services/vpn/vpn_model.py,sha256=r9V2At9ll9cZTOryGflS9tH9DlHdeelKYuGXvTNyTgg,3364
171
- bce_python_sdk-0.9.22.dist-info/METADATA,sha256=TMSrUuQncg_KhpzvSeHVZZZJx85EJvMGH5vor4RP39Y,319
172
- bce_python_sdk-0.9.22.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
173
- bce_python_sdk-0.9.22.dist-info/top_level.txt,sha256=Oh6eo_-T_AuEDpIaR54biUUPThxsoQiYMVHLBTaweQs,9
174
- bce_python_sdk-0.9.22.dist-info/RECORD,,
171
+ bce_python_sdk-0.9.23.dist-info/METADATA,sha256=8sK3yLnNVSImeZ3Mx8bugMmJYpYDurBcRDnkKhnE3m4,319
172
+ bce_python_sdk-0.9.23.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
173
+ bce_python_sdk-0.9.23.dist-info/top_level.txt,sha256=Oh6eo_-T_AuEDpIaR54biUUPThxsoQiYMVHLBTaweQs,9
174
+ bce_python_sdk-0.9.23.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5