@darabonba/python-generator 2.0.8 → 2.0.10
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.
- package/ChangeLog.md +3 -0
- package/lib/builtin.js +12 -3
- package/lib/generator.js +238 -239
- package/lib/helper.js +237 -5
- package/package.json +1 -1
- package/tests/expected/alias/setup.py +17 -13
- package/tests/expected/alias/tea_python_tests/client.py +6 -6
- package/tests/expected/annotation/tea_python_tests/client.py +4 -4
- package/tests/expected/annotation/tea_python_tests/models/__init__.py +0 -2
- package/tests/expected/annotation/tea_python_tests/models/_test.py +1 -1
- package/tests/expected/api/tea_python_tests/client.py +4 -4
- package/tests/expected/builtin/tea_python_tests/client.py +18 -16
- package/tests/expected/comment/tea_python_tests/client.py +6 -5
- package/tests/expected/comment/tea_python_tests/models/__init__.py +0 -2
- package/tests/expected/comment/tea_python_tests/models/_test_1.py +2 -1
- package/tests/expected/comment/tea_python_tests/models/_test_2.py +1 -1
- package/tests/expected/comment/tea_python_tests/models/_test_3.py +1 -1
- package/tests/expected/complex/tea_python_tests/client.py +17 -16
- package/tests/expected/complex/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/expected/complex/tea_python_tests/exceptions/_err_1.py +2 -1
- package/tests/expected/complex/tea_python_tests/exceptions/_err_2.py +1 -1
- package/tests/expected/complex/tea_python_tests/models/__init__.py +0 -2
- package/tests/expected/complex/tea_python_tests/models/_complex_request.py +7 -6
- package/tests/expected/complex/tea_python_tests/models/_response.py +2 -2
- package/tests/expected/const/tea_python_tests/client.py +0 -2
- package/tests/expected/empty/tea_python_tests/client.py +0 -2
- package/tests/expected/exec/tea_python_tests/exec_client.py +3 -2
- package/tests/expected/function/tea_python_tests/client.py +2 -1
- package/tests/expected/import/setup.py +4 -2
- package/tests/expected/import/tea_python_tests/client.py +4 -3
- package/tests/expected/map/tea_python_tests/client.py +3 -3
- package/tests/expected/model/tea_python_tests/client.py +0 -2
- package/tests/expected/model/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/expected/model/tea_python_tests/exceptions/_main_file.py +3 -2
- package/tests/expected/model/tea_python_tests/models/__init__.py +0 -2
- package/tests/expected/model/tea_python_tests/models/_class.py +1 -1
- package/tests/expected/model/tea_python_tests/models/_m.py +2 -2
- package/tests/expected/model/tea_python_tests/models/_main_file.py +2 -2
- package/tests/expected/model/tea_python_tests/models/_model.py +1 -1
- package/tests/expected/model/tea_python_tests/models/_my_model.py +13 -12
- package/tests/expected/modelConfig/tea_python_tests/client.py +0 -2
- package/tests/expected/modelConfig/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/expected/modelConfig/tea_python_tests/exceptions/_main_file.py +3 -2
- package/tests/expected/modelConfig/tea_python_tests/models/__init__.py +0 -2
- package/tests/expected/modelConfig/tea_python_tests/models/_class.py +1 -1
- package/tests/expected/modelConfig/tea_python_tests/models/_m.py +2 -2
- package/tests/expected/modelConfig/tea_python_tests/models/_main_file.py +2 -2
- package/tests/expected/modelConfig/tea_python_tests/models/_model.py +1 -1
- package/tests/expected/modelConfig/tea_python_tests/models/_my_model.py +13 -12
- package/tests/expected/multi/tea_python_tests/api.py +5 -5
- package/tests/expected/multi/tea_python_tests/api_models/__init__.py +0 -2
- package/tests/expected/multi/tea_python_tests/api_models/_test_model_dir_2.py +1 -1
- package/tests/expected/multi/tea_python_tests/client.py +4 -3
- package/tests/expected/multi/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/expected/multi/tea_python_tests/exceptions/_err.py +1 -1
- package/tests/expected/multi/tea_python_tests/lib/util.py +0 -1
- package/tests/expected/multi/tea_python_tests/model/user.py +3 -2
- package/tests/expected/multi/tea_python_tests/model/user_exceptions/__init__.py +0 -2
- package/tests/expected/multi/tea_python_tests/model/user_exceptions/_err.py +1 -1
- package/tests/expected/multi/tea_python_tests/model/user_exceptions/_err_1.py +1 -1
- package/tests/expected/multi/tea_python_tests/model/user_exceptions/_err_2.py +1 -1
- package/tests/expected/multi/tea_python_tests/model/user_models/__init__.py +0 -2
- package/tests/expected/multi/tea_python_tests/model/user_models/_base_info.py +1 -1
- package/tests/expected/multi/tea_python_tests/model/user_models/_info.py +1 -1
- package/tests/expected/multi/tea_python_tests/models/__init__.py +0 -2
- package/tests/expected/multi/tea_python_tests/models/_test_model_dir.py +3 -2
- package/tests/expected/statements/tea_python_tests/client.py +3 -3
- package/tests/expected/super/tea_python_tests/client.py +2 -2
- package/tests/expected/typedef/tea_python_tests/client.py +5 -5
- package/tests/expected/typedef/tea_python_tests/models/__init__.py +0 -2
- package/tests/expected/typedef/tea_python_tests/models/_m.py +3 -3
- package/tests/fixtures/alias/Darafile +5 -4
- package/tests/fixtures/complex/libraries/import.dara +11 -0
- package/tests/fixtures/complex/main.dara +2 -2
- package/tests/main.tests.js +26 -23
- package/tests/output/alias/setup.py +15 -11
- package/tests/output/alias/tea_python_tests/client.py +6 -6
- package/tests/output/annotation/setup.py +6 -4
- package/tests/output/annotation/tea_python_tests/client.py +4 -4
- package/tests/output/annotation/tea_python_tests/models/__init__.py +0 -2
- package/tests/output/annotation/tea_python_tests/models/_test.py +1 -1
- package/tests/output/api/setup.py +6 -4
- package/tests/output/api/tea_python_tests/client.py +4 -4
- package/tests/output/builtin/setup.py +6 -4
- package/tests/output/builtin/tea_python_tests/client.py +18 -16
- package/tests/output/comment/setup.py +6 -4
- package/tests/output/comment/tea_python_tests/client.py +6 -5
- package/tests/output/comment/tea_python_tests/models/__init__.py +0 -2
- package/tests/output/comment/tea_python_tests/models/_test_1.py +2 -1
- package/tests/output/comment/tea_python_tests/models/_test_2.py +1 -1
- package/tests/output/comment/tea_python_tests/models/_test_3.py +1 -1
- package/tests/output/complex/setup.py +6 -4
- package/tests/output/complex/tea_python_tests/client.py +17 -16
- package/tests/output/complex/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/output/complex/tea_python_tests/exceptions/_err_1.py +2 -1
- package/tests/output/complex/tea_python_tests/exceptions/_err_2.py +1 -1
- package/tests/output/complex/tea_python_tests/models/__init__.py +0 -2
- package/tests/output/complex/tea_python_tests/models/_complex_request.py +7 -6
- package/tests/output/complex/tea_python_tests/models/_response.py +2 -2
- package/tests/output/const/setup.py +6 -4
- package/tests/output/const/tea_python_tests/client.py +0 -2
- package/tests/output/empty/setup.py +6 -4
- package/tests/output/empty/tea_python_tests/client.py +0 -2
- package/tests/output/exec/setup.py +6 -4
- package/tests/output/exec/tea_python_tests/exec_client.py +3 -2
- package/tests/output/function/setup.py +6 -4
- package/tests/output/function/tea_python_tests/client.py +2 -1
- package/tests/output/import/setup.py +5 -3
- package/tests/output/import/tea_python_tests/client.py +4 -3
- package/tests/output/map/setup.py +6 -4
- package/tests/output/map/tea_python_tests/client.py +3 -3
- package/tests/output/model/setup.py +6 -4
- package/tests/output/model/tea_python_tests/client.py +0 -2
- package/tests/output/model/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/output/model/tea_python_tests/exceptions/_main_file.py +3 -2
- package/tests/output/model/tea_python_tests/models/__init__.py +0 -2
- package/tests/output/model/tea_python_tests/models/_class.py +1 -1
- package/tests/output/model/tea_python_tests/models/_m.py +2 -2
- package/tests/output/model/tea_python_tests/models/_main_file.py +2 -2
- package/tests/output/model/tea_python_tests/models/_model.py +1 -1
- package/tests/output/model/tea_python_tests/models/_my_model.py +13 -12
- package/tests/output/modelConfig/setup.py +6 -4
- package/tests/output/modelConfig/tea_python_tests/client.py +0 -2
- package/tests/output/modelConfig/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/output/modelConfig/tea_python_tests/exceptions/_main_file.py +3 -2
- package/tests/output/modelConfig/tea_python_tests/models/__init__.py +0 -2
- package/tests/output/modelConfig/tea_python_tests/models/_class.py +1 -1
- package/tests/output/modelConfig/tea_python_tests/models/_m.py +2 -2
- package/tests/output/modelConfig/tea_python_tests/models/_main_file.py +2 -2
- package/tests/output/modelConfig/tea_python_tests/models/_model.py +1 -1
- package/tests/output/modelConfig/tea_python_tests/models/_my_model.py +13 -12
- package/tests/output/multi/setup.py +5 -3
- package/tests/output/multi/tea_python_tests/api.py +5 -5
- package/tests/output/multi/tea_python_tests/api_models/__init__.py +0 -2
- package/tests/output/multi/tea_python_tests/api_models/_test_model_dir_2.py +1 -1
- package/tests/output/multi/tea_python_tests/client.py +4 -3
- package/tests/output/multi/tea_python_tests/exceptions/__init__.py +0 -2
- package/tests/output/multi/tea_python_tests/exceptions/_err.py +1 -1
- package/tests/output/multi/tea_python_tests/lib/util.py +0 -1
- package/tests/output/multi/tea_python_tests/model/user.py +3 -2
- package/tests/output/multi/tea_python_tests/model/user_exceptions/__init__.py +0 -2
- package/tests/output/multi/tea_python_tests/model/user_exceptions/_err.py +1 -1
- package/tests/output/multi/tea_python_tests/model/user_exceptions/_err_1.py +1 -1
- package/tests/output/multi/tea_python_tests/model/user_exceptions/_err_2.py +1 -1
- package/tests/output/multi/tea_python_tests/model/user_models/__init__.py +0 -2
- package/tests/output/multi/tea_python_tests/model/user_models/_base_info.py +1 -1
- package/tests/output/multi/tea_python_tests/model/user_models/_info.py +1 -1
- package/tests/output/multi/tea_python_tests/models/__init__.py +0 -2
- package/tests/output/multi/tea_python_tests/models/_test_model_dir.py +3 -2
- package/tests/output/statements/setup.py +6 -4
- package/tests/output/statements/tea_python_tests/client.py +3 -3
- package/tests/output/super/setup.py +6 -4
- package/tests/output/super/tea_python_tests/client.py +2 -2
- package/tests/output/typedef/setup.py +5 -3
- package/tests/output/typedef/tea_python_tests/client.py +5 -5
- package/tests/output/typedef/tea_python_tests/models/__init__.py +0 -2
- package/tests/output/typedef/tea_python_tests/models/_m.py +3 -3
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from tea_python_tests.model import user_models as user_models
|
|
4
|
+
|
|
6
5
|
from typing import Any
|
|
7
6
|
|
|
7
|
+
from darabonba.model import DaraModel
|
|
8
|
+
from tea_python_tests.model import user_models as user_models
|
|
8
9
|
|
|
9
10
|
class TestModelDIR(DaraModel):
|
|
10
11
|
def __init__(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from darabonba.core import DaraCore
|
|
5
|
-
from darabonba.request import DaraRequest
|
|
6
|
-
from darabonba.exceptions import DaraException
|
|
7
4
|
|
|
5
|
+
from darabonba.core import DaraCore
|
|
6
|
+
from darabonba.exceptions import DaraException
|
|
7
|
+
from darabonba.request import DaraRequest
|
|
8
8
|
|
|
9
9
|
class Client:
|
|
10
10
|
def __init__(self):
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from Source.source_client import SourceClient
|
|
5
|
-
from Source import models as source_models
|
|
6
4
|
|
|
5
|
+
from Source import models as source_models
|
|
6
|
+
from Source.source_client import SourceClient
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from Tea.model import TeaModel
|
|
6
|
-
from Source.source_client import SourceClient
|
|
7
|
-
from tea_python_tests import models as main_models
|
|
8
|
-
from requests import Response
|
|
4
|
+
|
|
9
5
|
from typing import Dict, Any
|
|
10
6
|
|
|
7
|
+
from requests import Request, Response
|
|
8
|
+
from Source.source_client import SourceClient
|
|
9
|
+
from tea_python_tests import models as main_models
|
|
10
|
+
from Tea.model import TeaModel
|
|
11
11
|
|
|
12
12
|
class Client:
|
|
13
13
|
_vid: Request = None
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from darabonba.model import DaraModel
|
|
5
|
-
from requests import Request
|
|
6
|
-
from Tea.model import TeaModel
|
|
7
4
|
|
|
5
|
+
from darabonba.model import DaraModel
|
|
6
|
+
from requests import Request
|
|
7
|
+
from Tea.model import TeaModel
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
"package": "tea_python_tests",
|
|
15
15
|
"clientName": "client",
|
|
16
16
|
"packageInfo": {
|
|
17
|
-
"name": "
|
|
17
|
+
"name": "tea-python-tests",
|
|
18
18
|
"desc": "Generate setup.py",
|
|
19
|
-
"github": "https://github.com/",
|
|
20
|
-
"author": "
|
|
21
|
-
"email": "
|
|
19
|
+
"github": "https://github.com/dara",
|
|
20
|
+
"author": "AlibabaCloud SDK Team",
|
|
21
|
+
"email": "sdkteam@alibabacloud.com",
|
|
22
|
+
"require": ["xxx1>=0.0.1, <1.0.0", "xxx2>=0.0.1, <1.0.0"]
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -5,10 +5,21 @@ type @pathname = string
|
|
|
5
5
|
|
|
6
6
|
init(config: Config);
|
|
7
7
|
model Config = {}
|
|
8
|
+
|
|
8
9
|
function printData(runtime: object, str: string): void {
|
|
9
10
|
return;
|
|
10
11
|
}
|
|
11
12
|
|
|
13
|
+
async function printDataAsync(runtime: object, str: string): void {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@sse(true)
|
|
18
|
+
async function printDataSSE(runtime: object, str: string): void {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
12
23
|
static function judgeStr(a: string): boolean {
|
|
13
24
|
return true;
|
|
14
25
|
}
|
|
@@ -247,7 +247,7 @@ api Complex1(request: ComplexRequest, sourceClient: Source): Source.RuntimeObjec
|
|
|
247
247
|
} else if(Source.judgeStr("test") || false){
|
|
248
248
|
return new Source.RuntimeObject{};
|
|
249
249
|
}
|
|
250
|
-
sourceClient.
|
|
250
|
+
sourceClient.printDataAsync(request, '1');
|
|
251
251
|
hello(request, ["1","2"], null);
|
|
252
252
|
hello(null, null, null);
|
|
253
253
|
return {};
|
|
@@ -262,7 +262,7 @@ api Complex2(request: ComplexRequest, str: [ string ], val: map[string]string):
|
|
|
262
262
|
var config = new Source.Config{};
|
|
263
263
|
var sourceClient = new Source(config);
|
|
264
264
|
var configArray : [Source.Config] = [config];
|
|
265
|
-
sourceClient.
|
|
265
|
+
sourceClient.printDataSSE(request, '1');
|
|
266
266
|
__request.protocol = 'HTTP';
|
|
267
267
|
__request.port = 80;
|
|
268
268
|
__request.method = 'GET';
|
package/tests/main.tests.js
CHANGED
|
@@ -75,7 +75,7 @@ describe('Python Generator', function () {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
it('complex should ok', function () {
|
|
80
80
|
check('complex', 'tea_python_tests',
|
|
81
81
|
{
|
|
@@ -85,7 +85,7 @@ describe('Python Generator', function () {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
|
-
|
|
88
|
+
|
|
89
89
|
it('model should ok', function () {
|
|
90
90
|
check('model', 'tea_python_tests',
|
|
91
91
|
{
|
|
@@ -159,14 +159,19 @@ describe('Python Generator', function () {
|
|
|
159
159
|
package: 'tea_python_tests',
|
|
160
160
|
clientName: 'client',
|
|
161
161
|
packageInfo: {
|
|
162
|
-
name: '
|
|
162
|
+
name: 'tea-python-tests',
|
|
163
163
|
desc: 'Generate setup.py',
|
|
164
|
-
github: 'https://github.com/',
|
|
165
|
-
author: '
|
|
166
|
-
email: '
|
|
164
|
+
github: 'https://github.com/dara',
|
|
165
|
+
author: 'AlibabaCloud SDK Team',
|
|
166
|
+
email: 'sdkteam@alibabacloud.com',
|
|
167
|
+
require: ['xxx>=0.0.1, <1.0.0', 'xxx>=0.0.1, <1.0.0']
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
});
|
|
171
|
+
const expectedContent = fs.readFileSync(path.join(__dirname, 'expected', 'alias', 'setup.py'), 'utf8');
|
|
172
|
+
const acutalContent = fs.readFileSync(path.join(__dirname, 'output', 'alias', 'setup.py'), 'utf8');
|
|
173
|
+
|
|
174
|
+
assert.deepStrictEqual(expectedContent, acutalContent.replace(new RegExp('\\d{2}\\/\\d{2}\\/\\d{4}'), '*'));
|
|
170
175
|
});
|
|
171
176
|
|
|
172
177
|
it('const should ok', function () {
|
|
@@ -188,7 +193,7 @@ describe('Python Generator', function () {
|
|
|
188
193
|
}
|
|
189
194
|
});
|
|
190
195
|
});
|
|
191
|
-
|
|
196
|
+
|
|
192
197
|
it('function should ok', function () {
|
|
193
198
|
check('function', 'tea_python_tests',
|
|
194
199
|
{
|
|
@@ -197,8 +202,8 @@ describe('Python Generator', function () {
|
|
|
197
202
|
clientName: 'client'
|
|
198
203
|
}
|
|
199
204
|
});
|
|
200
|
-
});
|
|
201
|
-
|
|
205
|
+
});
|
|
206
|
+
|
|
202
207
|
it('api should ok', function () {
|
|
203
208
|
check('api', 'tea_python_tests',
|
|
204
209
|
{
|
|
@@ -261,23 +266,21 @@ describe('Python Generator', function () {
|
|
|
261
266
|
|
|
262
267
|
it('empty should ok', function () {
|
|
263
268
|
check('empty', 'tea_python_tests',
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
269
|
+
{
|
|
270
|
+
python: {
|
|
271
|
+
package: 'tea_python_tests',
|
|
272
|
+
clientName: 'client',
|
|
273
|
+
packageInfo: {
|
|
274
|
+
name: 'tea_python_tests',
|
|
275
|
+
desc: 'Generate setup.py',
|
|
276
|
+
github: 'https://github.com/',
|
|
277
|
+
author: 'Alibaba',
|
|
278
|
+
email: 'sdk-team@alibabacloud.com'
|
|
279
|
+
}
|
|
274
280
|
}
|
|
275
|
-
}
|
|
276
|
-
});
|
|
281
|
+
});
|
|
277
282
|
});
|
|
278
283
|
|
|
279
|
-
|
|
280
|
-
|
|
281
284
|
it('super should ok', function () {
|
|
282
285
|
check('super', 'tea_python_tests',
|
|
283
286
|
{
|
|
@@ -22,25 +22,27 @@ import os
|
|
|
22
22
|
from setuptools import setup, find_packages
|
|
23
23
|
|
|
24
24
|
"""
|
|
25
|
-
setup module for
|
|
25
|
+
setup module for tea-python-tests.
|
|
26
26
|
|
|
27
|
-
Created on
|
|
27
|
+
Created on 12/08/2025
|
|
28
28
|
|
|
29
|
-
@author:
|
|
29
|
+
@author: AlibabaCloud SDK Team
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
PACKAGE = "tea_python_tests"
|
|
33
|
-
NAME = "
|
|
34
|
-
DESCRIPTION = ""
|
|
35
|
-
AUTHOR = "
|
|
36
|
-
AUTHOR_EMAIL = "
|
|
37
|
-
URL = "https://github.com/"
|
|
33
|
+
NAME = "tea-python-tests"
|
|
34
|
+
DESCRIPTION = "Generate setup.py"
|
|
35
|
+
AUTHOR = "AlibabaCloud SDK Team"
|
|
36
|
+
AUTHOR_EMAIL = "sdkteam@alibabacloud.com"
|
|
37
|
+
URL = "https://github.com/dara"
|
|
38
38
|
VERSION = __import__(PACKAGE).__version__
|
|
39
39
|
REQUIRES = [
|
|
40
40
|
"darabonba-core>=1.0.0, <2.0.0",
|
|
41
41
|
"source>=0.0.1, <1.0.0",
|
|
42
42
|
"import>=1.1.2, <2.0.0",
|
|
43
|
-
"alibabacloud_tea_util>=0.3.11, <1.0.0"
|
|
43
|
+
"alibabacloud_tea_util>=0.3.11, <1.0.0",
|
|
44
|
+
"xxx1>=0.0.1, <1.0.0",
|
|
45
|
+
"xxx2>=0.0.1, <1.0.0"
|
|
44
46
|
]
|
|
45
47
|
|
|
46
48
|
LONG_DESCRIPTION = ''
|
|
@@ -63,17 +65,19 @@ setup(
|
|
|
63
65
|
include_package_data=True,
|
|
64
66
|
platforms="any",
|
|
65
67
|
install_requires=REQUIRES,
|
|
66
|
-
python_requires=">=3.
|
|
68
|
+
python_requires=">=3.7",
|
|
67
69
|
classifiers=(
|
|
68
70
|
"Development Status :: 4 - Beta",
|
|
69
71
|
"Intended Audience :: Developers",
|
|
70
72
|
"License :: OSI Approved :: Apache Software License",
|
|
71
73
|
"Programming Language :: Python",
|
|
72
74
|
"Programming Language :: Python :: 3",
|
|
73
|
-
"Programming Language :: Python :: 3.6",
|
|
74
75
|
"Programming Language :: Python :: 3.7",
|
|
75
76
|
"Programming Language :: Python :: 3.8",
|
|
76
77
|
"Programming Language :: Python :: 3.9",
|
|
78
|
+
"Programming Language :: Python :: 3.10",
|
|
79
|
+
"Programming Language :: Python :: 3.11",
|
|
80
|
+
"Programming Language :: Python :: 3.12",
|
|
77
81
|
"Topic :: Software Development"
|
|
78
82
|
)
|
|
79
83
|
)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from Import.client import Client as ImportClient
|
|
5
|
-
from Source.client import Client as SourceClient
|
|
6
|
-
from Alias.alias_client import AliasClient
|
|
7
|
-
from alias_source.source_client import SourceClient as AliasSourceSourceClient
|
|
8
|
-
from alias_symbol.client import Client as AliasSymbolClient
|
|
9
|
-
from alias_symbol import models as alias_symbol_models
|
|
10
4
|
|
|
5
|
+
from alias_source.source_client import SourceClient as AliasSourceSourceClient
|
|
6
|
+
from alias_symbol import models as alias_symbol_models
|
|
7
|
+
from alias_symbol.client import Client as AliasSymbolClient
|
|
8
|
+
from Alias.alias_client import AliasClient
|
|
9
|
+
from Import.client import Client as ImportClient
|
|
10
|
+
from Source.client import Client as SourceClient
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
|
|
|
24
24
|
"""
|
|
25
25
|
setup module for tea_python_tests.
|
|
26
26
|
|
|
27
|
-
Created on
|
|
27
|
+
Created on 12/08/2025
|
|
28
28
|
|
|
29
29
|
@author: Alibaba
|
|
30
30
|
"""
|
|
@@ -37,7 +37,7 @@ AUTHOR_EMAIL = "sdk-team@alibabacloud.com"
|
|
|
37
37
|
URL = "https://github.com/"
|
|
38
38
|
VERSION = __import__(PACKAGE).__version__
|
|
39
39
|
REQUIRES = [
|
|
40
|
-
"darabonba-core>=1.0.0, <2.0.0"
|
|
40
|
+
"darabonba-core>=1.0.0, <2.0.0"
|
|
41
41
|
|
|
42
42
|
]
|
|
43
43
|
|
|
@@ -61,17 +61,19 @@ setup(
|
|
|
61
61
|
include_package_data=True,
|
|
62
62
|
platforms="any",
|
|
63
63
|
install_requires=REQUIRES,
|
|
64
|
-
python_requires=">=3.
|
|
64
|
+
python_requires=">=3.7",
|
|
65
65
|
classifiers=(
|
|
66
66
|
"Development Status :: 4 - Beta",
|
|
67
67
|
"Intended Audience :: Developers",
|
|
68
68
|
"License :: OSI Approved :: Apache Software License",
|
|
69
69
|
"Programming Language :: Python",
|
|
70
70
|
"Programming Language :: Python :: 3",
|
|
71
|
-
"Programming Language :: Python :: 3.6",
|
|
72
71
|
"Programming Language :: Python :: 3.7",
|
|
73
72
|
"Programming Language :: Python :: 3.8",
|
|
74
73
|
"Programming Language :: Python :: 3.9",
|
|
74
|
+
"Programming Language :: Python :: 3.10",
|
|
75
|
+
"Programming Language :: Python :: 3.11",
|
|
76
|
+
"Programming Language :: Python :: 3.12",
|
|
75
77
|
"Topic :: Software Development"
|
|
76
78
|
)
|
|
77
79
|
)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from darabonba.core import DaraCore
|
|
5
|
-
from darabonba.exceptions import UnretryableException
|
|
6
|
-
from darabonba.policy.retry import RetryPolicyContext
|
|
7
|
-
from darabonba.request import DaraRequest
|
|
8
4
|
|
|
5
|
+
from darabonba.core import DaraCore
|
|
6
|
+
from darabonba.exceptions import UnretryableException
|
|
7
|
+
from darabonba.policy.retry import RetryPolicyContext
|
|
8
|
+
from darabonba.request import DaraRequest
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
11
|
* @remarks
|
|
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
|
|
|
24
24
|
"""
|
|
25
25
|
setup module for tea_python_tests.
|
|
26
26
|
|
|
27
|
-
Created on
|
|
27
|
+
Created on 12/08/2025
|
|
28
28
|
|
|
29
29
|
@author: Alibaba
|
|
30
30
|
"""
|
|
@@ -37,7 +37,7 @@ AUTHOR_EMAIL = "sdk-team@alibabacloud.com"
|
|
|
37
37
|
URL = "https://github.com/"
|
|
38
38
|
VERSION = __import__(PACKAGE).__version__
|
|
39
39
|
REQUIRES = [
|
|
40
|
-
"darabonba-core>=1.0.0, <2.0.0"
|
|
40
|
+
"darabonba-core>=1.0.0, <2.0.0"
|
|
41
41
|
|
|
42
42
|
]
|
|
43
43
|
|
|
@@ -61,17 +61,19 @@ setup(
|
|
|
61
61
|
include_package_data=True,
|
|
62
62
|
platforms="any",
|
|
63
63
|
install_requires=REQUIRES,
|
|
64
|
-
python_requires=">=3.
|
|
64
|
+
python_requires=">=3.7",
|
|
65
65
|
classifiers=(
|
|
66
66
|
"Development Status :: 4 - Beta",
|
|
67
67
|
"Intended Audience :: Developers",
|
|
68
68
|
"License :: OSI Approved :: Apache Software License",
|
|
69
69
|
"Programming Language :: Python",
|
|
70
70
|
"Programming Language :: Python :: 3",
|
|
71
|
-
"Programming Language :: Python :: 3.6",
|
|
72
71
|
"Programming Language :: Python :: 3.7",
|
|
73
72
|
"Programming Language :: Python :: 3.8",
|
|
74
73
|
"Programming Language :: Python :: 3.9",
|
|
74
|
+
"Programming Language :: Python :: 3.10",
|
|
75
|
+
"Programming Language :: Python :: 3.11",
|
|
76
|
+
"Programming Language :: Python :: 3.12",
|
|
75
77
|
"Topic :: Software Development"
|
|
76
78
|
)
|
|
77
79
|
)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from darabonba.core import DaraCore
|
|
5
|
-
from darabonba.request import DaraRequest
|
|
6
|
-
from darabonba.exceptions import UnretryableException
|
|
7
|
-
from darabonba.policy.retry import RetryPolicyContext
|
|
8
4
|
|
|
5
|
+
from darabonba.core import DaraCore
|
|
6
|
+
from darabonba.exceptions import UnretryableException
|
|
7
|
+
from darabonba.policy.retry import RetryPolicyContext
|
|
8
|
+
from darabonba.request import DaraRequest
|
|
9
9
|
|
|
10
10
|
class Client:
|
|
11
11
|
def __init__(self):
|
|
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
|
|
|
24
24
|
"""
|
|
25
25
|
setup module for tea_python_tests.
|
|
26
26
|
|
|
27
|
-
Created on
|
|
27
|
+
Created on 12/08/2025
|
|
28
28
|
|
|
29
29
|
@author: Alibaba
|
|
30
30
|
"""
|
|
@@ -37,7 +37,7 @@ AUTHOR_EMAIL = "sdk-team@alibabacloud.com"
|
|
|
37
37
|
URL = "https://github.com/"
|
|
38
38
|
VERSION = __import__(PACKAGE).__version__
|
|
39
39
|
REQUIRES = [
|
|
40
|
-
"darabonba-core>=1.0.0, <2.0.0"
|
|
40
|
+
"darabonba-core>=1.0.0, <2.0.0"
|
|
41
41
|
|
|
42
42
|
]
|
|
43
43
|
|
|
@@ -61,17 +61,19 @@ setup(
|
|
|
61
61
|
include_package_data=True,
|
|
62
62
|
platforms="any",
|
|
63
63
|
install_requires=REQUIRES,
|
|
64
|
-
python_requires=">=3.
|
|
64
|
+
python_requires=">=3.7",
|
|
65
65
|
classifiers=(
|
|
66
66
|
"Development Status :: 4 - Beta",
|
|
67
67
|
"Intended Audience :: Developers",
|
|
68
68
|
"License :: OSI Approved :: Apache Software License",
|
|
69
69
|
"Programming Language :: Python",
|
|
70
70
|
"Programming Language :: Python :: 3",
|
|
71
|
-
"Programming Language :: Python :: 3.6",
|
|
72
71
|
"Programming Language :: Python :: 3.7",
|
|
73
72
|
"Programming Language :: Python :: 3.8",
|
|
74
73
|
"Programming Language :: Python :: 3.9",
|
|
74
|
+
"Programming Language :: Python :: 3.10",
|
|
75
|
+
"Programming Language :: Python :: 3.11",
|
|
76
|
+
"Programming Language :: Python :: 3.12",
|
|
75
77
|
"Topic :: Software Development"
|
|
76
78
|
)
|
|
77
79
|
)
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import random
|
|
14
|
-
import math
|
|
15
|
-
from darabonba.utils.stream import Stream as DaraStream
|
|
16
|
-
from darabonba.url import Url as DaraURL
|
|
17
|
-
from darabonba.utils.xml import XML as DaraXML
|
|
18
|
-
import sys
|
|
4
|
+
|
|
5
|
+
import base64
|
|
6
|
+
import json
|
|
7
|
+
import logging
|
|
8
|
+
import math
|
|
9
|
+
import os
|
|
10
|
+
import random
|
|
11
|
+
import sys
|
|
12
|
+
|
|
19
13
|
from typing import List, Any
|
|
20
14
|
|
|
15
|
+
from darabonba.core import DaraCore as DaraCore
|
|
16
|
+
from darabonba.date import Date as DaraDate
|
|
17
|
+
from darabonba.file import File as DaraFile
|
|
18
|
+
from darabonba.url import Url as DaraURL
|
|
19
|
+
from darabonba.utils.bytes import Bytes as DaraBytes
|
|
20
|
+
from darabonba.utils.form import Form as DaraForm
|
|
21
|
+
from darabonba.utils.stream import Stream as DaraStream
|
|
22
|
+
from darabonba.utils.xml import XML as DaraXML
|
|
21
23
|
|
|
22
24
|
class Client:
|
|
23
25
|
|
|
@@ -675,7 +677,7 @@ class Client:
|
|
|
675
677
|
if not DaraCore.is_null(data):
|
|
676
678
|
ws.write(data)
|
|
677
679
|
|
|
678
|
-
|
|
680
|
+
await DaraCore.sleep_async(a)
|
|
679
681
|
default_val = args[0] or args[1]
|
|
680
682
|
if default_val == b:
|
|
681
683
|
return
|
|
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
|
|
|
24
24
|
"""
|
|
25
25
|
setup module for tea_python_tests.
|
|
26
26
|
|
|
27
|
-
Created on
|
|
27
|
+
Created on 12/08/2025
|
|
28
28
|
|
|
29
29
|
@author: Alibaba
|
|
30
30
|
"""
|
|
@@ -37,7 +37,7 @@ AUTHOR_EMAIL = "sdk-team@alibabacloud.com"
|
|
|
37
37
|
URL = "https://github.com/"
|
|
38
38
|
VERSION = __import__(PACKAGE).__version__
|
|
39
39
|
REQUIRES = [
|
|
40
|
-
"darabonba-core>=1.0.0, <2.0.0"
|
|
40
|
+
"darabonba-core>=1.0.0, <2.0.0"
|
|
41
41
|
|
|
42
42
|
]
|
|
43
43
|
|
|
@@ -61,17 +61,19 @@ setup(
|
|
|
61
61
|
include_package_data=True,
|
|
62
62
|
platforms="any",
|
|
63
63
|
install_requires=REQUIRES,
|
|
64
|
-
python_requires=">=3.
|
|
64
|
+
python_requires=">=3.7",
|
|
65
65
|
classifiers=(
|
|
66
66
|
"Development Status :: 4 - Beta",
|
|
67
67
|
"Intended Audience :: Developers",
|
|
68
68
|
"License :: OSI Approved :: Apache Software License",
|
|
69
69
|
"Programming Language :: Python",
|
|
70
70
|
"Programming Language :: Python :: 3",
|
|
71
|
-
"Programming Language :: Python :: 3.6",
|
|
72
71
|
"Programming Language :: Python :: 3.7",
|
|
73
72
|
"Programming Language :: Python :: 3.8",
|
|
74
73
|
"Programming Language :: Python :: 3.9",
|
|
74
|
+
"Programming Language :: Python :: 3.10",
|
|
75
|
+
"Programming Language :: Python :: 3.11",
|
|
76
|
+
"Programming Language :: Python :: 3.12",
|
|
75
77
|
"Topic :: Software Development"
|
|
76
78
|
)
|
|
77
79
|
)
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# This file is auto-generated, don't edit it. Thanks.
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from darabonba.core import DaraCore
|
|
6
|
-
from darabonba.exceptions import UnretryableException
|
|
7
|
-
from darabonba.policy.retry import RetryPolicyContext
|
|
8
|
-
from darabonba.request import DaraRequest
|
|
4
|
+
|
|
9
5
|
from typing import List, Dict, BinaryIO, Any
|
|
10
6
|
|
|
7
|
+
from darabonba.core import DaraCore
|
|
8
|
+
from darabonba.exceptions import UnretryableException
|
|
9
|
+
from darabonba.policy.retry import RetryPolicyContext
|
|
10
|
+
from darabonba.request import DaraRequest
|
|
11
|
+
from tea_python_tests import models as main_models
|
|
11
12
|
|
|
12
13
|
# top comment
|
|
13
14
|
"""
|