@darabonba/python-generator 2.0.9 → 2.0.11

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.
Files changed (157) hide show
  1. package/ChangeLog.md +3 -0
  2. package/lib/builtin.js +12 -3
  3. package/lib/generator.js +234 -235
  4. package/lib/helper.js +230 -5
  5. package/package.json +1 -1
  6. package/tests/expected/alias/setup.py +17 -13
  7. package/tests/expected/alias/tea_python_tests/client.py +6 -6
  8. package/tests/expected/annotation/tea_python_tests/client.py +4 -4
  9. package/tests/expected/annotation/tea_python_tests/models/__init__.py +0 -2
  10. package/tests/expected/annotation/tea_python_tests/models/_test.py +1 -1
  11. package/tests/expected/api/tea_python_tests/client.py +4 -4
  12. package/tests/expected/builtin/tea_python_tests/client.py +18 -16
  13. package/tests/expected/comment/tea_python_tests/client.py +6 -5
  14. package/tests/expected/comment/tea_python_tests/models/__init__.py +0 -2
  15. package/tests/expected/comment/tea_python_tests/models/_test_1.py +2 -1
  16. package/tests/expected/comment/tea_python_tests/models/_test_2.py +1 -1
  17. package/tests/expected/comment/tea_python_tests/models/_test_3.py +1 -1
  18. package/tests/expected/complex/tea_python_tests/client.py +17 -16
  19. package/tests/expected/complex/tea_python_tests/exceptions/__init__.py +0 -2
  20. package/tests/expected/complex/tea_python_tests/exceptions/_err_1.py +2 -1
  21. package/tests/expected/complex/tea_python_tests/exceptions/_err_2.py +1 -1
  22. package/tests/expected/complex/tea_python_tests/models/__init__.py +0 -2
  23. package/tests/expected/complex/tea_python_tests/models/_complex_request.py +7 -6
  24. package/tests/expected/complex/tea_python_tests/models/_response.py +2 -2
  25. package/tests/expected/const/tea_python_tests/client.py +0 -2
  26. package/tests/expected/empty/tea_python_tests/client.py +0 -2
  27. package/tests/expected/exec/tea_python_tests/exec_client.py +3 -2
  28. package/tests/expected/function/tea_python_tests/client.py +2 -1
  29. package/tests/expected/import/setup.py +4 -2
  30. package/tests/expected/import/tea_python_tests/client.py +4 -3
  31. package/tests/expected/map/tea_python_tests/client.py +3 -3
  32. package/tests/expected/model/tea_python_tests/client.py +0 -2
  33. package/tests/expected/model/tea_python_tests/exceptions/__init__.py +0 -2
  34. package/tests/expected/model/tea_python_tests/exceptions/_main_file.py +3 -2
  35. package/tests/expected/model/tea_python_tests/models/__init__.py +0 -2
  36. package/tests/expected/model/tea_python_tests/models/_class.py +1 -1
  37. package/tests/expected/model/tea_python_tests/models/_m.py +2 -2
  38. package/tests/expected/model/tea_python_tests/models/_main_file.py +2 -2
  39. package/tests/expected/model/tea_python_tests/models/_model.py +1 -1
  40. package/tests/expected/model/tea_python_tests/models/_my_model.py +6 -5
  41. package/tests/expected/modelConfig/tea_python_tests/client.py +0 -2
  42. package/tests/expected/modelConfig/tea_python_tests/exceptions/__init__.py +0 -2
  43. package/tests/expected/modelConfig/tea_python_tests/exceptions/_main_file.py +3 -2
  44. package/tests/expected/modelConfig/tea_python_tests/models/__init__.py +0 -2
  45. package/tests/expected/modelConfig/tea_python_tests/models/_class.py +1 -1
  46. package/tests/expected/modelConfig/tea_python_tests/models/_m.py +2 -2
  47. package/tests/expected/modelConfig/tea_python_tests/models/_main_file.py +2 -2
  48. package/tests/expected/modelConfig/tea_python_tests/models/_model.py +1 -1
  49. package/tests/expected/modelConfig/tea_python_tests/models/_my_model.py +6 -5
  50. package/tests/expected/multi/tea_python_tests/api.py +5 -5
  51. package/tests/expected/multi/tea_python_tests/api_models/__init__.py +0 -2
  52. package/tests/expected/multi/tea_python_tests/api_models/_test_model_dir_2.py +1 -1
  53. package/tests/expected/multi/tea_python_tests/client.py +4 -3
  54. package/tests/expected/multi/tea_python_tests/exceptions/__init__.py +0 -2
  55. package/tests/expected/multi/tea_python_tests/exceptions/_err.py +1 -1
  56. package/tests/expected/multi/tea_python_tests/lib/util.py +0 -1
  57. package/tests/expected/multi/tea_python_tests/model/user.py +3 -2
  58. package/tests/expected/multi/tea_python_tests/model/user_exceptions/__init__.py +0 -2
  59. package/tests/expected/multi/tea_python_tests/model/user_exceptions/_err.py +1 -1
  60. package/tests/expected/multi/tea_python_tests/model/user_exceptions/_err_1.py +1 -1
  61. package/tests/expected/multi/tea_python_tests/model/user_exceptions/_err_2.py +1 -1
  62. package/tests/expected/multi/tea_python_tests/model/user_models/__init__.py +0 -2
  63. package/tests/expected/multi/tea_python_tests/model/user_models/_base_info.py +1 -1
  64. package/tests/expected/multi/tea_python_tests/model/user_models/_info.py +1 -1
  65. package/tests/expected/multi/tea_python_tests/models/__init__.py +0 -2
  66. package/tests/expected/multi/tea_python_tests/models/_test_model_dir.py +3 -2
  67. package/tests/expected/statements/tea_python_tests/client.py +3 -3
  68. package/tests/expected/super/tea_python_tests/client.py +2 -2
  69. package/tests/expected/typedef/tea_python_tests/client.py +5 -5
  70. package/tests/expected/typedef/tea_python_tests/models/__init__.py +0 -2
  71. package/tests/expected/typedef/tea_python_tests/models/_m.py +3 -3
  72. package/tests/fixtures/alias/Darafile +5 -4
  73. package/tests/fixtures/complex/libraries/import.dara +11 -0
  74. package/tests/fixtures/complex/main.dara +2 -2
  75. package/tests/main.tests.js +26 -23
  76. package/tests/output/alias/setup.py +15 -11
  77. package/tests/output/alias/tea_python_tests/client.py +6 -6
  78. package/tests/output/annotation/setup.py +6 -4
  79. package/tests/output/annotation/tea_python_tests/client.py +4 -4
  80. package/tests/output/annotation/tea_python_tests/models/__init__.py +0 -2
  81. package/tests/output/annotation/tea_python_tests/models/_test.py +1 -1
  82. package/tests/output/api/setup.py +6 -4
  83. package/tests/output/api/tea_python_tests/client.py +4 -4
  84. package/tests/output/builtin/setup.py +6 -4
  85. package/tests/output/builtin/tea_python_tests/client.py +18 -16
  86. package/tests/output/comment/setup.py +6 -4
  87. package/tests/output/comment/tea_python_tests/client.py +6 -5
  88. package/tests/output/comment/tea_python_tests/models/__init__.py +0 -2
  89. package/tests/output/comment/tea_python_tests/models/_test_1.py +2 -1
  90. package/tests/output/comment/tea_python_tests/models/_test_2.py +1 -1
  91. package/tests/output/comment/tea_python_tests/models/_test_3.py +1 -1
  92. package/tests/output/complex/setup.py +6 -4
  93. package/tests/output/complex/tea_python_tests/client.py +17 -16
  94. package/tests/output/complex/tea_python_tests/exceptions/__init__.py +0 -2
  95. package/tests/output/complex/tea_python_tests/exceptions/_err_1.py +2 -1
  96. package/tests/output/complex/tea_python_tests/exceptions/_err_2.py +1 -1
  97. package/tests/output/complex/tea_python_tests/models/__init__.py +0 -2
  98. package/tests/output/complex/tea_python_tests/models/_complex_request.py +7 -6
  99. package/tests/output/complex/tea_python_tests/models/_response.py +2 -2
  100. package/tests/output/const/setup.py +6 -4
  101. package/tests/output/const/tea_python_tests/client.py +0 -2
  102. package/tests/output/empty/setup.py +6 -4
  103. package/tests/output/empty/tea_python_tests/client.py +0 -2
  104. package/tests/output/exec/setup.py +6 -4
  105. package/tests/output/exec/tea_python_tests/exec_client.py +3 -2
  106. package/tests/output/function/setup.py +6 -4
  107. package/tests/output/function/tea_python_tests/client.py +2 -1
  108. package/tests/output/import/setup.py +5 -3
  109. package/tests/output/import/tea_python_tests/client.py +4 -3
  110. package/tests/output/map/setup.py +6 -4
  111. package/tests/output/map/tea_python_tests/client.py +3 -3
  112. package/tests/output/model/setup.py +6 -4
  113. package/tests/output/model/tea_python_tests/client.py +0 -2
  114. package/tests/output/model/tea_python_tests/exceptions/__init__.py +0 -2
  115. package/tests/output/model/tea_python_tests/exceptions/_main_file.py +3 -2
  116. package/tests/output/model/tea_python_tests/models/__init__.py +0 -2
  117. package/tests/output/model/tea_python_tests/models/_class.py +1 -1
  118. package/tests/output/model/tea_python_tests/models/_m.py +2 -2
  119. package/tests/output/model/tea_python_tests/models/_main_file.py +2 -2
  120. package/tests/output/model/tea_python_tests/models/_model.py +1 -1
  121. package/tests/output/model/tea_python_tests/models/_my_model.py +6 -5
  122. package/tests/output/modelConfig/setup.py +6 -4
  123. package/tests/output/modelConfig/tea_python_tests/client.py +0 -2
  124. package/tests/output/modelConfig/tea_python_tests/exceptions/__init__.py +0 -2
  125. package/tests/output/modelConfig/tea_python_tests/exceptions/_main_file.py +3 -2
  126. package/tests/output/modelConfig/tea_python_tests/models/__init__.py +0 -2
  127. package/tests/output/modelConfig/tea_python_tests/models/_class.py +1 -1
  128. package/tests/output/modelConfig/tea_python_tests/models/_m.py +2 -2
  129. package/tests/output/modelConfig/tea_python_tests/models/_main_file.py +2 -2
  130. package/tests/output/modelConfig/tea_python_tests/models/_model.py +1 -1
  131. package/tests/output/modelConfig/tea_python_tests/models/_my_model.py +6 -5
  132. package/tests/output/multi/setup.py +5 -3
  133. package/tests/output/multi/tea_python_tests/api.py +5 -5
  134. package/tests/output/multi/tea_python_tests/api_models/__init__.py +0 -2
  135. package/tests/output/multi/tea_python_tests/api_models/_test_model_dir_2.py +1 -1
  136. package/tests/output/multi/tea_python_tests/client.py +4 -3
  137. package/tests/output/multi/tea_python_tests/exceptions/__init__.py +0 -2
  138. package/tests/output/multi/tea_python_tests/exceptions/_err.py +1 -1
  139. package/tests/output/multi/tea_python_tests/lib/util.py +0 -1
  140. package/tests/output/multi/tea_python_tests/model/user.py +3 -2
  141. package/tests/output/multi/tea_python_tests/model/user_exceptions/__init__.py +0 -2
  142. package/tests/output/multi/tea_python_tests/model/user_exceptions/_err.py +1 -1
  143. package/tests/output/multi/tea_python_tests/model/user_exceptions/_err_1.py +1 -1
  144. package/tests/output/multi/tea_python_tests/model/user_exceptions/_err_2.py +1 -1
  145. package/tests/output/multi/tea_python_tests/model/user_models/__init__.py +0 -2
  146. package/tests/output/multi/tea_python_tests/model/user_models/_base_info.py +1 -1
  147. package/tests/output/multi/tea_python_tests/model/user_models/_info.py +1 -1
  148. package/tests/output/multi/tea_python_tests/models/__init__.py +0 -2
  149. package/tests/output/multi/tea_python_tests/models/_test_model_dir.py +3 -2
  150. package/tests/output/statements/setup.py +6 -4
  151. package/tests/output/statements/tea_python_tests/client.py +3 -3
  152. package/tests/output/super/setup.py +6 -4
  153. package/tests/output/super/tea_python_tests/client.py +2 -2
  154. package/tests/output/typedef/setup.py +5 -3
  155. package/tests/output/typedef/tea_python_tests/client.py +5 -5
  156. package/tests/output/typedef/tea_python_tests/models/__init__.py +0 -2
  157. package/tests/output/typedef/tea_python_tests/models/_m.py +3 -3
@@ -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.printData(request, '1');
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.printData(request, '1');
265
+ sourceClient.printDataSSE(request, '1');
266
266
  __request.protocol = 'HTTP';
267
267
  __request.port = 80;
268
268
  __request.method = 'GET';
@@ -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: 'tea_python_tests',
162
+ name: 'tea-python-tests',
163
163
  desc: 'Generate setup.py',
164
- github: 'https://github.com/',
165
- author: 'Alibaba',
166
- email: 'sdk-team@alibabacloud.com'
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
- python: {
266
- package: 'tea_python_tests',
267
- clientName: 'client',
268
- packageInfo: {
269
- name: 'tea_python_tests',
270
- desc: 'Generate setup.py',
271
- github: 'https://github.com/',
272
- author: 'Alibaba',
273
- email: 'sdk-team@alibabacloud.com'
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 tea_python_tests.
25
+ setup module for tea-python-tests.
26
26
 
27
- Created on *
27
+ Created on 12/08/2025
28
28
 
29
- @author: Alibaba
29
+ @author: AlibabaCloud SDK Team
30
30
  """
31
31
 
32
32
  PACKAGE = "tea_python_tests"
33
- NAME = "tea_python_tests"
34
- DESCRIPTION = ""
35
- AUTHOR = "Alibaba"
36
- AUTHOR_EMAIL = "sdk-team@alibabacloud.com"
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.6",
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.6",
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
@@ -2,8 +2,6 @@
2
2
  # This file is auto-generated, don't edit it. Thanks.
3
3
  from __future__ import annotations
4
4
 
5
-
6
-
7
5
  from ._test import Test
8
6
 
9
7
  __all__ = [
@@ -1,8 +1,8 @@
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
4
 
5
+ from darabonba.model import DaraModel
6
6
 
7
7
  """
8
8
  * @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.6",
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.6",
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
- import base64
5
- from darabonba.utils.bytes import Bytes as DaraBytes
6
- from darabonba.date import Date as DaraDate
7
- import os
8
- from darabonba.file import File as DaraFile
9
- from darabonba.utils.form import Form as DaraForm
10
- from darabonba.core import DaraCore as DaraCore
11
- import json
12
- import logging
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
- awiat DaraCore.sleep_async(a)
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.6",
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
- from tea_python_tests import models as main_models
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
  """
@@ -2,8 +2,6 @@
2
2
  # This file is auto-generated, don't edit it. Thanks.
3
3
  from __future__ import annotations
4
4
 
5
-
6
-
7
5
  from ._test_1 import Test1
8
6
  from ._test_2 import Test2
9
7
  from ._test_3 import Test3
@@ -1,9 +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
4
+
5
5
  from typing import List
6
6
 
7
+ from darabonba.model import DaraModel
7
8
 
8
9
  # import comment
9
10
 
@@ -1,8 +1,8 @@
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
4
 
5
+ from darabonba.model import DaraModel
6
6
 
7
7
  """
8
8
  * @remarks
@@ -1,8 +1,8 @@
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
4
 
5
+ from darabonba.model import DaraModel
6
6
 
7
7
  """
8
8
  * @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.6",
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,20 +1,21 @@
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
- from darabonba.core import DaraCore
7
- from tea_python_tests import models as main_models
8
- from darabonba.exceptions import UnretryableException
9
- from darabonba.policy.retry import RetryPolicyContext
10
- from darabonba.request import DaraRequest
11
- import logging
12
- from darabonba.response import DaraResponse
13
- from darabonba.exceptions import DaraException
14
- from tea_python_tests import exceptions as main_exceptions
15
- from Source import exceptions as source_exceptions
4
+
5
+ import logging
6
+
16
7
  from typing import List, Dict, Any
17
8
 
9
+ from darabonba.core import DaraCore
10
+ from darabonba.exceptions import DaraException, UnretryableException
11
+ from darabonba.policy.retry import RetryPolicyContext
12
+ from darabonba.request import DaraRequest
13
+ from darabonba.response import DaraResponse
14
+ from Source import exceptions as source_exceptions
15
+ from Source import models as source_models
16
+ from Source.source_client import SourceClient
17
+ from tea_python_tests import exceptions as main_exceptions
18
+ from tea_python_tests import models as main_models
18
19
 
19
20
  class Client(SourceClient):
20
21
  _protocol: str = None
@@ -226,7 +227,7 @@ class Client(SourceClient):
226
227
  return
227
228
  elif SourceClient.judge_str('test') or False:
228
229
  return source_models.RuntimeObject()
229
- source_client.print_data(DaraCore.to_map(request), '1')
230
+ source_client.print_data_async(DaraCore.to_map(request), '1')
230
231
  self.hello(DaraCore.to_map(request), [
231
232
  '1',
232
233
  '2'
@@ -441,7 +442,7 @@ class Client(SourceClient):
441
442
  return
442
443
  elif SourceClient.judge_str('test') or False:
443
444
  return source_models.RuntimeObject()
444
- source_client.print_data(DaraCore.to_map(request), '1')
445
+ await source_client.print_data_async_async(DaraCore.to_map(request), '1')
445
446
  await self.hello_async(DaraCore.to_map(request), [
446
447
  '1',
447
448
  '2'
@@ -476,7 +477,7 @@ class Client(SourceClient):
476
477
  config_array = [
477
478
  config
478
479
  ]
479
- source_client.print_data(DaraCore.to_map(request), '1')
480
+ source_client.print_data_sse(DaraCore.to_map(request), '1')
480
481
  _request.protocol = 'HTTP'
481
482
  _request.port = 80
482
483
  _request.method = 'GET'
@@ -503,7 +504,7 @@ class Client(SourceClient):
503
504
  config_array = [
504
505
  config
505
506
  ]
506
- source_client.print_data(DaraCore.to_map(request), '1')
507
+ source_client.print_data_sse_async(DaraCore.to_map(request), '1')
507
508
  _request.protocol = 'HTTP'
508
509
  _request.port = 80
509
510
  _request.method = 'GET'
@@ -2,8 +2,6 @@
2
2
  # This file is auto-generated, don't edit it. Thanks.
3
3
  from __future__ import annotations
4
4
 
5
-
6
-
7
5
  from ._err_1 import Err1Exception
8
6
  from ._err_2 import Err2Exception
9
7
 
@@ -1,9 +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.exceptions import DaraException
4
+
5
5
  from typing import Dict
6
6
 
7
+ from darabonba.exceptions import DaraException
7
8
 
8
9
  class Err1Exception(DaraException):
9
10
  def __init__(
@@ -1,8 +1,8 @@
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.exceptions import DaraException
5
4
 
5
+ from darabonba.exceptions import DaraException
6
6
 
7
7
  class Err2Exception(DaraException):
8
8
  def __init__(