antchain-antdigital-benchtwo 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.
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.1
2
+ Name: antchain_antdigital_benchtwo
3
+ Version: 1.0.3
4
+ Summary: Ant Chain BENCHTWO SDK Library for Python
5
+ Home-page: https://github.com/alipay/antchain-openapi-prod-sdk
6
+ Author: Ant Chain SDK
7
+ Author-email: sdk-team@alibabacloud.com
8
+ License: Apache License 2.0
9
+ Description: UNKNOWN
10
+ Keywords: antchain,benchtwo
11
+ Platform: any
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.6
18
+ Classifier: Programming Language :: Python :: 3.7
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Topic :: Software Development
22
+ Requires-Python: >=3.6
23
+ Description-Content-Type: text/markdown
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.1
2
+ Name: antchain-antdigital-benchtwo
3
+ Version: 1.0.3
4
+ Summary: Ant Chain BENCHTWO SDK Library for Python
5
+ Home-page: https://github.com/alipay/antchain-openapi-prod-sdk
6
+ Author: Ant Chain SDK
7
+ Author-email: sdk-team@alibabacloud.com
8
+ License: Apache License 2.0
9
+ Description: UNKNOWN
10
+ Keywords: antchain,benchtwo
11
+ Platform: any
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.6
18
+ Classifier: Programming Language :: Python :: 3.7
19
+ Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.9
21
+ Classifier: Topic :: Software Development
22
+ Requires-Python: >=3.6
23
+ Description-Content-Type: text/markdown
@@ -0,0 +1,9 @@
1
+ setup.py
2
+ antchain_antdigital_benchtwo.egg-info/PKG-INFO
3
+ antchain_antdigital_benchtwo.egg-info/SOURCES.txt
4
+ antchain_antdigital_benchtwo.egg-info/dependency_links.txt
5
+ antchain_antdigital_benchtwo.egg-info/requires.txt
6
+ antchain_antdigital_benchtwo.egg-info/top_level.txt
7
+ antchain_sdk_benchtwo/__init__.py
8
+ antchain_sdk_benchtwo/client.py
9
+ antchain_sdk_benchtwo/models.py
@@ -0,0 +1,3 @@
1
+ antchain_alipay_util<2.0.0,>=1.0.1
2
+ alibabacloud_tea_util<1.0.0,>=0.3.14
3
+ alibabacloud_rpc_util<1.0.0,>=0.0.4
@@ -0,0 +1 @@
1
+ __version__ = "1.0.3"
@@ -0,0 +1,332 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ import time
4
+
5
+ from Tea.exceptions import TeaException, UnretryableException
6
+ from Tea.request import TeaRequest
7
+ from Tea.core import TeaCore
8
+ from antchain_alipay_util.antchain_utils import AntchainUtils
9
+ from typing import Dict
10
+
11
+ from antchain_sdk_benchtwo import models as benchtwo_models
12
+ from alibabacloud_tea_util.client import Client as UtilClient
13
+ from alibabacloud_tea_util import models as util_models
14
+ from alibabacloud_rpc_util.client import Client as RPCUtilClient
15
+
16
+
17
+ class Client:
18
+ _endpoint: str = None
19
+ _region_id: str = None
20
+ _access_key_id: str = None
21
+ _access_key_secret: str = None
22
+ _protocol: str = None
23
+ _user_agent: str = None
24
+ _read_timeout: int = None
25
+ _connect_timeout: int = None
26
+ _http_proxy: str = None
27
+ _https_proxy: str = None
28
+ _socks_5proxy: str = None
29
+ _socks_5net_work: str = None
30
+ _no_proxy: str = None
31
+ _max_idle_conns: int = None
32
+ _security_token: str = None
33
+ _max_idle_time_millis: int = None
34
+ _keep_alive_duration_millis: int = None
35
+ _max_requests: int = None
36
+ _max_requests_per_host: int = None
37
+
38
+ def __init__(
39
+ self,
40
+ config: benchtwo_models.Config,
41
+ ):
42
+ """
43
+ Init client with Config
44
+ @param config: config contains the necessary information to create a client
45
+ """
46
+ if UtilClient.is_unset(config):
47
+ raise TeaException({
48
+ 'code': 'ParameterMissing',
49
+ 'message': "'config' can not be unset"
50
+ })
51
+ self._access_key_id = config.access_key_id
52
+ self._access_key_secret = config.access_key_secret
53
+ self._security_token = config.security_token
54
+ self._endpoint = config.endpoint
55
+ self._protocol = config.protocol
56
+ self._user_agent = config.user_agent
57
+ self._read_timeout = UtilClient.default_number(config.read_timeout, 20000)
58
+ self._connect_timeout = UtilClient.default_number(config.connect_timeout, 20000)
59
+ self._http_proxy = config.http_proxy
60
+ self._https_proxy = config.https_proxy
61
+ self._no_proxy = config.no_proxy
62
+ self._socks_5proxy = config.socks_5proxy
63
+ self._socks_5net_work = config.socks_5net_work
64
+ self._max_idle_conns = UtilClient.default_number(config.max_idle_conns, 60000)
65
+ self._max_idle_time_millis = UtilClient.default_number(config.max_idle_time_millis, 5)
66
+ self._keep_alive_duration_millis = UtilClient.default_number(config.keep_alive_duration_millis, 5000)
67
+ self._max_requests = UtilClient.default_number(config.max_requests, 100)
68
+ self._max_requests_per_host = UtilClient.default_number(config.max_requests_per_host, 100)
69
+
70
+ def do_request(
71
+ self,
72
+ version: str,
73
+ action: str,
74
+ protocol: str,
75
+ method: str,
76
+ pathname: str,
77
+ request: dict,
78
+ headers: Dict[str, str],
79
+ runtime: util_models.RuntimeOptions,
80
+ ) -> dict:
81
+ """
82
+ Encapsulate the request and invoke the network
83
+ @param action: api name
84
+ @param protocol: http or https
85
+ @param method: e.g. GET
86
+ @param pathname: pathname of every api
87
+ @param request: which contains request params
88
+ @param runtime: which controls some details of call api, such as retry times
89
+ @return: the response
90
+ """
91
+ runtime.validate()
92
+ _runtime = {
93
+ 'timeouted': 'retry',
94
+ 'readTimeout': UtilClient.default_number(runtime.read_timeout, self._read_timeout),
95
+ 'connectTimeout': UtilClient.default_number(runtime.connect_timeout, self._connect_timeout),
96
+ 'httpProxy': UtilClient.default_string(runtime.http_proxy, self._http_proxy),
97
+ 'httpsProxy': UtilClient.default_string(runtime.https_proxy, self._https_proxy),
98
+ 'noProxy': UtilClient.default_string(runtime.no_proxy, self._no_proxy),
99
+ 'maxIdleConns': UtilClient.default_number(runtime.max_idle_conns, self._max_idle_conns),
100
+ 'maxIdleTimeMillis': self._max_idle_time_millis,
101
+ 'keepAliveDuration': self._keep_alive_duration_millis,
102
+ 'maxRequests': self._max_requests,
103
+ 'maxRequestsPerHost': self._max_requests_per_host,
104
+ 'retry': {
105
+ 'retryable': runtime.autoretry,
106
+ 'maxAttempts': UtilClient.default_number(runtime.max_attempts, 3)
107
+ },
108
+ 'backoff': {
109
+ 'policy': UtilClient.default_string(runtime.backoff_policy, 'no'),
110
+ 'period': UtilClient.default_number(runtime.backoff_period, 1)
111
+ },
112
+ 'ignoreSSL': runtime.ignore_ssl,
113
+ # OrderItemInfo
114
+ }
115
+ _last_request = None
116
+ _last_exception = None
117
+ _now = time.time()
118
+ _retry_times = 0
119
+ while TeaCore.allow_retry(_runtime.get('retry'), _retry_times, _now):
120
+ if _retry_times > 0:
121
+ _backoff_time = TeaCore.get_backoff_time(_runtime.get('backoff'), _retry_times)
122
+ if _backoff_time > 0:
123
+ TeaCore.sleep(_backoff_time)
124
+ _retry_times = _retry_times + 1
125
+ try:
126
+ _request = TeaRequest()
127
+ _request.protocol = UtilClient.default_string(self._protocol, protocol)
128
+ _request.method = method
129
+ _request.pathname = pathname
130
+ _request.query = {
131
+ 'method': action,
132
+ 'version': version,
133
+ 'sign_type': 'HmacSHA1',
134
+ 'req_time': AntchainUtils.get_timestamp(),
135
+ 'req_msg_id': AntchainUtils.get_nonce(),
136
+ 'access_key': self._access_key_id,
137
+ 'base_sdk_version': 'TeaSDK-2.0',
138
+ 'sdk_version': '1.0.3',
139
+ '_prod_code': 'BENCHTWO',
140
+ '_prod_channel': 'default'
141
+ }
142
+ if not UtilClient.empty(self._security_token):
143
+ _request.query['security_token'] = self._security_token
144
+ _request.headers = TeaCore.merge({
145
+ 'host': UtilClient.default_string(self._endpoint, 'openapi.antchain.antgroup.com'),
146
+ 'user-agent': UtilClient.get_user_agent(self._user_agent)
147
+ }, headers)
148
+ tmp = UtilClient.anyify_map_value(RPCUtilClient.query(request))
149
+ _request.body = UtilClient.to_form_string(tmp)
150
+ _request.headers['content-type'] = 'application/x-www-form-urlencoded'
151
+ signed_param = TeaCore.merge(_request.query,
152
+ RPCUtilClient.query(request))
153
+ _request.query['sign'] = AntchainUtils.get_signature(signed_param, self._access_key_secret)
154
+ _last_request = _request
155
+ _response = TeaCore.do_action(_request, _runtime)
156
+ raw = UtilClient.read_as_string(_response.body)
157
+ obj = UtilClient.parse_json(raw)
158
+ res = UtilClient.assert_as_map(obj)
159
+ resp = UtilClient.assert_as_map(res.get('response'))
160
+ if AntchainUtils.has_error(raw, self._access_key_secret):
161
+ raise TeaException({
162
+ 'message': resp.get('result_msg'),
163
+ 'data': resp,
164
+ 'code': resp.get('result_code')
165
+ })
166
+ return resp
167
+ except Exception as e:
168
+ if TeaCore.is_retryable(e):
169
+ _last_exception = e
170
+ continue
171
+ raise e
172
+ raise UnretryableException(_last_request, _last_exception)
173
+
174
+ async def do_request_async(
175
+ self,
176
+ version: str,
177
+ action: str,
178
+ protocol: str,
179
+ method: str,
180
+ pathname: str,
181
+ request: dict,
182
+ headers: Dict[str, str],
183
+ runtime: util_models.RuntimeOptions,
184
+ ) -> dict:
185
+ """
186
+ Encapsulate the request and invoke the network
187
+ @param action: api name
188
+ @param protocol: http or https
189
+ @param method: e.g. GET
190
+ @param pathname: pathname of every api
191
+ @param request: which contains request params
192
+ @param runtime: which controls some details of call api, such as retry times
193
+ @return: the response
194
+ """
195
+ runtime.validate()
196
+ _runtime = {
197
+ 'timeouted': 'retry',
198
+ 'readTimeout': UtilClient.default_number(runtime.read_timeout, self._read_timeout),
199
+ 'connectTimeout': UtilClient.default_number(runtime.connect_timeout, self._connect_timeout),
200
+ 'httpProxy': UtilClient.default_string(runtime.http_proxy, self._http_proxy),
201
+ 'httpsProxy': UtilClient.default_string(runtime.https_proxy, self._https_proxy),
202
+ 'noProxy': UtilClient.default_string(runtime.no_proxy, self._no_proxy),
203
+ 'maxIdleConns': UtilClient.default_number(runtime.max_idle_conns, self._max_idle_conns),
204
+ 'maxIdleTimeMillis': self._max_idle_time_millis,
205
+ 'keepAliveDuration': self._keep_alive_duration_millis,
206
+ 'maxRequests': self._max_requests,
207
+ 'maxRequestsPerHost': self._max_requests_per_host,
208
+ 'retry': {
209
+ 'retryable': runtime.autoretry,
210
+ 'maxAttempts': UtilClient.default_number(runtime.max_attempts, 3)
211
+ },
212
+ 'backoff': {
213
+ 'policy': UtilClient.default_string(runtime.backoff_policy, 'no'),
214
+ 'period': UtilClient.default_number(runtime.backoff_period, 1)
215
+ },
216
+ 'ignoreSSL': runtime.ignore_ssl,
217
+ # OrderItemInfo
218
+ }
219
+ _last_request = None
220
+ _last_exception = None
221
+ _now = time.time()
222
+ _retry_times = 0
223
+ while TeaCore.allow_retry(_runtime.get('retry'), _retry_times, _now):
224
+ if _retry_times > 0:
225
+ _backoff_time = TeaCore.get_backoff_time(_runtime.get('backoff'), _retry_times)
226
+ if _backoff_time > 0:
227
+ TeaCore.sleep(_backoff_time)
228
+ _retry_times = _retry_times + 1
229
+ try:
230
+ _request = TeaRequest()
231
+ _request.protocol = UtilClient.default_string(self._protocol, protocol)
232
+ _request.method = method
233
+ _request.pathname = pathname
234
+ _request.query = {
235
+ 'method': action,
236
+ 'version': version,
237
+ 'sign_type': 'HmacSHA1',
238
+ 'req_time': AntchainUtils.get_timestamp(),
239
+ 'req_msg_id': AntchainUtils.get_nonce(),
240
+ 'access_key': self._access_key_id,
241
+ 'base_sdk_version': 'TeaSDK-2.0',
242
+ 'sdk_version': '1.0.3',
243
+ '_prod_code': 'BENCHTWO',
244
+ '_prod_channel': 'default'
245
+ }
246
+ if not UtilClient.empty(self._security_token):
247
+ _request.query['security_token'] = self._security_token
248
+ _request.headers = TeaCore.merge({
249
+ 'host': UtilClient.default_string(self._endpoint, 'openapi.antchain.antgroup.com'),
250
+ 'user-agent': UtilClient.get_user_agent(self._user_agent)
251
+ }, headers)
252
+ tmp = UtilClient.anyify_map_value(RPCUtilClient.query(request))
253
+ _request.body = UtilClient.to_form_string(tmp)
254
+ _request.headers['content-type'] = 'application/x-www-form-urlencoded'
255
+ signed_param = TeaCore.merge(_request.query,
256
+ RPCUtilClient.query(request))
257
+ _request.query['sign'] = AntchainUtils.get_signature(signed_param, self._access_key_secret)
258
+ _last_request = _request
259
+ _response = await TeaCore.async_do_action(_request, _runtime)
260
+ raw = await UtilClient.read_as_string_async(_response.body)
261
+ obj = UtilClient.parse_json(raw)
262
+ res = UtilClient.assert_as_map(obj)
263
+ resp = UtilClient.assert_as_map(res.get('response'))
264
+ if AntchainUtils.has_error(raw, self._access_key_secret):
265
+ raise TeaException({
266
+ 'message': resp.get('result_msg'),
267
+ 'data': resp,
268
+ 'code': resp.get('result_code')
269
+ })
270
+ return resp
271
+ except Exception as e:
272
+ if TeaCore.is_retryable(e):
273
+ _last_exception = e
274
+ continue
275
+ raise e
276
+ raise UnretryableException(_last_request, _last_exception)
277
+
278
+ def test_antchain_demotmt_workbench_create(
279
+ self,
280
+ request: benchtwo_models.TestAntchainDemotmtWorkbenchCreateRequest,
281
+ ) -> benchtwo_models.TestAntchainDemotmtWorkbenchCreateResponse:
282
+ """
283
+ Description: 测试使用
284
+ Summary: 测试使用
285
+ """
286
+ runtime = util_models.RuntimeOptions()
287
+ headers = {}
288
+ return self.test_antchain_demotmt_workbench_create_ex(request, headers, runtime)
289
+
290
+ async def test_antchain_demotmt_workbench_create_async(
291
+ self,
292
+ request: benchtwo_models.TestAntchainDemotmtWorkbenchCreateRequest,
293
+ ) -> benchtwo_models.TestAntchainDemotmtWorkbenchCreateResponse:
294
+ """
295
+ Description: 测试使用
296
+ Summary: 测试使用
297
+ """
298
+ runtime = util_models.RuntimeOptions()
299
+ headers = {}
300
+ return await self.test_antchain_demotmt_workbench_create_ex_async(request, headers, runtime)
301
+
302
+ def test_antchain_demotmt_workbench_create_ex(
303
+ self,
304
+ request: benchtwo_models.TestAntchainDemotmtWorkbenchCreateRequest,
305
+ headers: Dict[str, str],
306
+ runtime: util_models.RuntimeOptions,
307
+ ) -> benchtwo_models.TestAntchainDemotmtWorkbenchCreateResponse:
308
+ """
309
+ Description: 测试使用
310
+ Summary: 测试使用
311
+ """
312
+ UtilClient.validate_model(request)
313
+ return TeaCore.from_map(
314
+ benchtwo_models.TestAntchainDemotmtWorkbenchCreateResponse(),
315
+ self.do_request('1.0', 'antchain.demotmt.workbench.create.test', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
316
+ )
317
+
318
+ async def test_antchain_demotmt_workbench_create_ex_async(
319
+ self,
320
+ request: benchtwo_models.TestAntchainDemotmtWorkbenchCreateRequest,
321
+ headers: Dict[str, str],
322
+ runtime: util_models.RuntimeOptions,
323
+ ) -> benchtwo_models.TestAntchainDemotmtWorkbenchCreateResponse:
324
+ """
325
+ Description: 测试使用
326
+ Summary: 测试使用
327
+ """
328
+ UtilClient.validate_model(request)
329
+ return TeaCore.from_map(
330
+ benchtwo_models.TestAntchainDemotmtWorkbenchCreateResponse(),
331
+ await self.do_request_async('1.0', 'antchain.demotmt.workbench.create.test', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
332
+ )
@@ -0,0 +1,380 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from Tea.model import TeaModel
4
+
5
+
6
+ class Config(TeaModel):
7
+ """
8
+ Model for initing client
9
+ """
10
+ def __init__(
11
+ self,
12
+ access_key_id: str = None,
13
+ access_key_secret: str = None,
14
+ security_token: str = None,
15
+ protocol: str = None,
16
+ read_timeout: int = None,
17
+ connect_timeout: int = None,
18
+ http_proxy: str = None,
19
+ https_proxy: str = None,
20
+ endpoint: str = None,
21
+ no_proxy: str = None,
22
+ max_idle_conns: int = None,
23
+ user_agent: str = None,
24
+ socks_5proxy: str = None,
25
+ socks_5net_work: str = None,
26
+ max_idle_time_millis: int = None,
27
+ keep_alive_duration_millis: int = None,
28
+ max_requests: int = None,
29
+ max_requests_per_host: int = None,
30
+ ):
31
+ # accesskey id
32
+ self.access_key_id = access_key_id
33
+ # accesskey secret
34
+ self.access_key_secret = access_key_secret
35
+ # security token
36
+ self.security_token = security_token
37
+ # http protocol
38
+ self.protocol = protocol
39
+ # read timeout
40
+ self.read_timeout = read_timeout
41
+ # connect timeout
42
+ self.connect_timeout = connect_timeout
43
+ # http proxy
44
+ self.http_proxy = http_proxy
45
+ # https proxy
46
+ self.https_proxy = https_proxy
47
+ # endpoint
48
+ self.endpoint = endpoint
49
+ # proxy white list
50
+ self.no_proxy = no_proxy
51
+ # max idle conns
52
+ self.max_idle_conns = max_idle_conns
53
+ # user agent
54
+ self.user_agent = user_agent
55
+ # socks5 proxy
56
+ self.socks_5proxy = socks_5proxy
57
+ # socks5 network
58
+ self.socks_5net_work = socks_5net_work
59
+ # 长链接最大空闲时长
60
+ self.max_idle_time_millis = max_idle_time_millis
61
+ # 长链接最大连接时长
62
+ self.keep_alive_duration_millis = keep_alive_duration_millis
63
+ # 最大连接数(长链接最大总数)
64
+ self.max_requests = max_requests
65
+ # 每个目标主机的最大连接数(分主机域名的长链接最大总数
66
+ self.max_requests_per_host = max_requests_per_host
67
+
68
+ def validate(self):
69
+ pass
70
+
71
+ def to_map(self):
72
+ _map = super().to_map()
73
+ if _map is not None:
74
+ return _map
75
+
76
+ result = dict()
77
+ if self.access_key_id is not None:
78
+ result['accessKeyId'] = self.access_key_id
79
+ if self.access_key_secret is not None:
80
+ result['accessKeySecret'] = self.access_key_secret
81
+ if self.security_token is not None:
82
+ result['securityToken'] = self.security_token
83
+ if self.protocol is not None:
84
+ result['protocol'] = self.protocol
85
+ if self.read_timeout is not None:
86
+ result['readTimeout'] = self.read_timeout
87
+ if self.connect_timeout is not None:
88
+ result['connectTimeout'] = self.connect_timeout
89
+ if self.http_proxy is not None:
90
+ result['httpProxy'] = self.http_proxy
91
+ if self.https_proxy is not None:
92
+ result['httpsProxy'] = self.https_proxy
93
+ if self.endpoint is not None:
94
+ result['endpoint'] = self.endpoint
95
+ if self.no_proxy is not None:
96
+ result['noProxy'] = self.no_proxy
97
+ if self.max_idle_conns is not None:
98
+ result['maxIdleConns'] = self.max_idle_conns
99
+ if self.user_agent is not None:
100
+ result['userAgent'] = self.user_agent
101
+ if self.socks_5proxy is not None:
102
+ result['socks5Proxy'] = self.socks_5proxy
103
+ if self.socks_5net_work is not None:
104
+ result['socks5NetWork'] = self.socks_5net_work
105
+ if self.max_idle_time_millis is not None:
106
+ result['maxIdleTimeMillis'] = self.max_idle_time_millis
107
+ if self.keep_alive_duration_millis is not None:
108
+ result['keepAliveDurationMillis'] = self.keep_alive_duration_millis
109
+ if self.max_requests is not None:
110
+ result['maxRequests'] = self.max_requests
111
+ if self.max_requests_per_host is not None:
112
+ result['maxRequestsPerHost'] = self.max_requests_per_host
113
+ return result
114
+
115
+ def from_map(self, m: dict = None):
116
+ m = m or dict()
117
+ if m.get('accessKeyId') is not None:
118
+ self.access_key_id = m.get('accessKeyId')
119
+ if m.get('accessKeySecret') is not None:
120
+ self.access_key_secret = m.get('accessKeySecret')
121
+ if m.get('securityToken') is not None:
122
+ self.security_token = m.get('securityToken')
123
+ if m.get('protocol') is not None:
124
+ self.protocol = m.get('protocol')
125
+ if m.get('readTimeout') is not None:
126
+ self.read_timeout = m.get('readTimeout')
127
+ if m.get('connectTimeout') is not None:
128
+ self.connect_timeout = m.get('connectTimeout')
129
+ if m.get('httpProxy') is not None:
130
+ self.http_proxy = m.get('httpProxy')
131
+ if m.get('httpsProxy') is not None:
132
+ self.https_proxy = m.get('httpsProxy')
133
+ if m.get('endpoint') is not None:
134
+ self.endpoint = m.get('endpoint')
135
+ if m.get('noProxy') is not None:
136
+ self.no_proxy = m.get('noProxy')
137
+ if m.get('maxIdleConns') is not None:
138
+ self.max_idle_conns = m.get('maxIdleConns')
139
+ if m.get('userAgent') is not None:
140
+ self.user_agent = m.get('userAgent')
141
+ if m.get('socks5Proxy') is not None:
142
+ self.socks_5proxy = m.get('socks5Proxy')
143
+ if m.get('socks5NetWork') is not None:
144
+ self.socks_5net_work = m.get('socks5NetWork')
145
+ if m.get('maxIdleTimeMillis') is not None:
146
+ self.max_idle_time_millis = m.get('maxIdleTimeMillis')
147
+ if m.get('keepAliveDurationMillis') is not None:
148
+ self.keep_alive_duration_millis = m.get('keepAliveDurationMillis')
149
+ if m.get('maxRequests') is not None:
150
+ self.max_requests = m.get('maxRequests')
151
+ if m.get('maxRequestsPerHost') is not None:
152
+ self.max_requests_per_host = m.get('maxRequestsPerHost')
153
+ return self
154
+
155
+
156
+ class OrderItemInfo(TeaModel):
157
+ def __init__(
158
+ self,
159
+ item_id: str = None,
160
+ quantity: int = None,
161
+ ):
162
+ # 商品ID
163
+ self.item_id = item_id
164
+ # 数量
165
+ self.quantity = quantity
166
+
167
+ def validate(self):
168
+ self.validate_required(self.item_id, 'item_id')
169
+ self.validate_required(self.quantity, 'quantity')
170
+
171
+ def to_map(self):
172
+ _map = super().to_map()
173
+ if _map is not None:
174
+ return _map
175
+
176
+ result = dict()
177
+ if self.item_id is not None:
178
+ result['item_id'] = self.item_id
179
+ if self.quantity is not None:
180
+ result['quantity'] = self.quantity
181
+ return result
182
+
183
+ def from_map(self, m: dict = None):
184
+ m = m or dict()
185
+ if m.get('item_id') is not None:
186
+ self.item_id = m.get('item_id')
187
+ if m.get('quantity') is not None:
188
+ self.quantity = m.get('quantity')
189
+ return self
190
+
191
+
192
+ class Message(TeaModel):
193
+ def __init__(
194
+ self,
195
+ name: str = None,
196
+ age: int = None,
197
+ ):
198
+ # 姓名
199
+ self.name = name
200
+ # 年龄
201
+ self.age = age
202
+
203
+ def validate(self):
204
+ self.validate_required(self.name, 'name')
205
+ self.validate_required(self.age, 'age')
206
+
207
+ def to_map(self):
208
+ _map = super().to_map()
209
+ if _map is not None:
210
+ return _map
211
+
212
+ result = dict()
213
+ if self.name is not None:
214
+ result['name'] = self.name
215
+ if self.age is not None:
216
+ result['age'] = self.age
217
+ return result
218
+
219
+ def from_map(self, m: dict = None):
220
+ m = m or dict()
221
+ if m.get('name') is not None:
222
+ self.name = m.get('name')
223
+ if m.get('age') is not None:
224
+ self.age = m.get('age')
225
+ return self
226
+
227
+
228
+ class PayOrderOpenApiResult(TeaModel):
229
+ def __init__(
230
+ self,
231
+ test: str = None,
232
+ ):
233
+ # 11
234
+ self.test = test
235
+
236
+ def validate(self):
237
+ self.validate_required(self.test, 'test')
238
+
239
+ def to_map(self):
240
+ _map = super().to_map()
241
+ if _map is not None:
242
+ return _map
243
+
244
+ result = dict()
245
+ if self.test is not None:
246
+ result['test'] = self.test
247
+ return result
248
+
249
+ def from_map(self, m: dict = None):
250
+ m = m or dict()
251
+ if m.get('test') is not None:
252
+ self.test = m.get('test')
253
+ return self
254
+
255
+
256
+ class AA(TeaModel):
257
+ def __init__(
258
+ self,
259
+ aa: str = None,
260
+ ):
261
+ # cc
262
+ self.aa = aa
263
+
264
+ def validate(self):
265
+ self.validate_required(self.aa, 'aa')
266
+
267
+ def to_map(self):
268
+ _map = super().to_map()
269
+ if _map is not None:
270
+ return _map
271
+
272
+ result = dict()
273
+ if self.aa is not None:
274
+ result['aa'] = self.aa
275
+ return result
276
+
277
+ def from_map(self, m: dict = None):
278
+ m = m or dict()
279
+ if m.get('aa') is not None:
280
+ self.aa = m.get('aa')
281
+ return self
282
+
283
+
284
+ class TestAntchainDemotmtWorkbenchCreateRequest(TeaModel):
285
+ def __init__(
286
+ self,
287
+ auth_token: str = None,
288
+ product_instance_id: str = None,
289
+ timeout: str = None,
290
+ ):
291
+ # OAuth模式下的授权token
292
+ self.auth_token = auth_token
293
+ self.product_instance_id = product_instance_id
294
+ # 超时
295
+ self.timeout = timeout
296
+
297
+ def validate(self):
298
+ pass
299
+
300
+ def to_map(self):
301
+ _map = super().to_map()
302
+ if _map is not None:
303
+ return _map
304
+
305
+ result = dict()
306
+ if self.auth_token is not None:
307
+ result['auth_token'] = self.auth_token
308
+ if self.product_instance_id is not None:
309
+ result['product_instance_id'] = self.product_instance_id
310
+ if self.timeout is not None:
311
+ result['timeout'] = self.timeout
312
+ return result
313
+
314
+ def from_map(self, m: dict = None):
315
+ m = m or dict()
316
+ if m.get('auth_token') is not None:
317
+ self.auth_token = m.get('auth_token')
318
+ if m.get('product_instance_id') is not None:
319
+ self.product_instance_id = m.get('product_instance_id')
320
+ if m.get('timeout') is not None:
321
+ self.timeout = m.get('timeout')
322
+ return self
323
+
324
+
325
+ class TestAntchainDemotmtWorkbenchCreateResponse(TeaModel):
326
+ def __init__(
327
+ self,
328
+ req_msg_id: str = None,
329
+ result_code: str = None,
330
+ result_msg: str = None,
331
+ stauts: str = None,
332
+ msg: str = None,
333
+ ):
334
+ # 请求唯一ID,用于链路跟踪和问题排查
335
+ self.req_msg_id = req_msg_id
336
+ # 结果码,一般OK表示调用成功
337
+ self.result_code = result_code
338
+ # 异常信息的文本描述
339
+ self.result_msg = result_msg
340
+ # 状态
341
+ self.stauts = stauts
342
+ # 描述
343
+ self.msg = msg
344
+
345
+ def validate(self):
346
+ pass
347
+
348
+ def to_map(self):
349
+ _map = super().to_map()
350
+ if _map is not None:
351
+ return _map
352
+
353
+ result = dict()
354
+ if self.req_msg_id is not None:
355
+ result['req_msg_id'] = self.req_msg_id
356
+ if self.result_code is not None:
357
+ result['result_code'] = self.result_code
358
+ if self.result_msg is not None:
359
+ result['result_msg'] = self.result_msg
360
+ if self.stauts is not None:
361
+ result['stauts'] = self.stauts
362
+ if self.msg is not None:
363
+ result['msg'] = self.msg
364
+ return result
365
+
366
+ def from_map(self, m: dict = None):
367
+ m = m or dict()
368
+ if m.get('req_msg_id') is not None:
369
+ self.req_msg_id = m.get('req_msg_id')
370
+ if m.get('result_code') is not None:
371
+ self.result_code = m.get('result_code')
372
+ if m.get('result_msg') is not None:
373
+ self.result_msg = m.get('result_msg')
374
+ if m.get('stauts') is not None:
375
+ self.stauts = m.get('stauts')
376
+ if m.get('msg') is not None:
377
+ self.msg = m.get('msg')
378
+ return self
379
+
380
+
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,78 @@
1
+ # -*- coding: utf-8 -*-
2
+ """
3
+ Licensed to the Apache Software Foundation (ASF) under one
4
+ or more contributor license agreements. See the NOTICE file
5
+ distributed with this work for additional information
6
+ regarding copyright ownership. The ASF licenses this file
7
+ to you under the Apache License, Version 2.0 (the
8
+ "License"); you may not use this file except in compliance
9
+ with the License. You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing,
14
+ software distributed under the License is distributed on an
15
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
+ KIND, either express or implied. See the License for the
17
+ specific language governing permissions and limitations
18
+ under the License.
19
+ """
20
+
21
+ import os
22
+ from setuptools import setup, find_packages
23
+
24
+ """
25
+ setup module for antchain_benchtwo.
26
+
27
+ Created on 10/09/2026
28
+
29
+ @author: Ant Chain SDK
30
+ """
31
+
32
+ PACKAGE = "antchain_sdk_benchtwo"
33
+ NAME = 'antchain_antdigital_benchtwo' or "alibabacloud-package"
34
+ DESCRIPTION = "Ant Chain BENCHTWO SDK Library for Python"
35
+ AUTHOR = "Ant Chain SDK"
36
+ AUTHOR_EMAIL = "sdk-team@alibabacloud.com"
37
+ URL = "https://github.com/alipay/antchain-openapi-prod-sdk"
38
+ VERSION = __import__(PACKAGE).__version__
39
+ REQUIRES = [
40
+ "antchain_alipay_util>=1.0.1, <2.0.0",
41
+ "alibabacloud_tea_util>=0.3.14, <1.0.0",
42
+ "alibabacloud_rpc_util>=0.0.4, <1.0.0"
43
+ ]
44
+
45
+ LONG_DESCRIPTION = ''
46
+ if os.path.exists('./README.md'):
47
+ with open("README.md", encoding='utf-8') as fp:
48
+ LONG_DESCRIPTION = fp.read()
49
+
50
+ setup(
51
+ name=NAME,
52
+ version=VERSION,
53
+ description=DESCRIPTION,
54
+ long_description=LONG_DESCRIPTION,
55
+ long_description_content_type='text/markdown',
56
+ author=AUTHOR,
57
+ author_email=AUTHOR_EMAIL,
58
+ license="Apache License 2.0",
59
+ url=URL,
60
+ keywords=["antchain","benchtwo"],
61
+ packages=find_packages(exclude=["tests*"]),
62
+ include_package_data=True,
63
+ platforms="any",
64
+ install_requires=REQUIRES,
65
+ python_requires=">=3.6",
66
+ classifiers=(
67
+ "Development Status :: 4 - Beta",
68
+ "Intended Audience :: Developers",
69
+ "License :: OSI Approved :: Apache Software License",
70
+ "Programming Language :: Python",
71
+ "Programming Language :: Python :: 3",
72
+ "Programming Language :: Python :: 3.6",
73
+ 'Programming Language :: Python :: 3.7',
74
+ 'Programming Language :: Python :: 3.8',
75
+ 'Programming Language :: Python :: 3.9',
76
+ "Topic :: Software Development"
77
+ )
78
+ )