@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
@@ -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 ._complex_request import ComplexRequest
8
6
  from ._response import Response
9
7
  from ._complex_request import ComplexRequestHeader
@@ -1,14 +1,15 @@
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 tea_python_tests import models as main_models
6
- from darabonba.request import DaraRequest
7
- from darabonba.response import DaraResponse
8
- from Source import models as source_models
9
- from Source.source_client import SourceClient
4
+
10
5
  from typing import BinaryIO, List, Dict, Any
11
6
 
7
+ from darabonba.model import DaraModel
8
+ from darabonba.request import DaraRequest
9
+ from darabonba.response import DaraResponse
10
+ from Source import models as source_models
11
+ from Source.source_client import SourceClient
12
+ from tea_python_tests import models as main_models
12
13
 
13
14
  class ComplexRequest(DaraModel):
14
15
  def __init__(
@@ -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 darabonba.model import DaraModel
5
- from tea_python_tests import models as main_models
6
4
 
5
+ from darabonba.model import DaraModel
6
+ from tea_python_tests import models as main_models
7
7
 
8
8
  class Response(DaraModel):
9
9
  def __init__(
@@ -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
  )
@@ -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
  class Client:
8
6
 
9
7
  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
  )
@@ -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
  class Client:
8
6
 
9
7
  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,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
- import sys
5
- from typing import List
6
4
 
5
+ import sys
6
+
7
+ from typing import List
7
8
 
8
9
  class ExecClient:
9
10
 
@@ -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,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.core import DaraCore
4
+
5
5
  from typing import Dict, List
6
6
 
7
+ from darabonba.core import DaraCore
7
8
 
8
9
  class Client:
9
10
  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
  """
@@ -62,17 +62,19 @@ setup(
62
62
  include_package_data=True,
63
63
  platforms="any",
64
64
  install_requires=REQUIRES,
65
- python_requires=">=3.6",
65
+ python_requires=">=3.7",
66
66
  classifiers=(
67
67
  "Development Status :: 4 - Beta",
68
68
  "Intended Audience :: Developers",
69
69
  "License :: OSI Approved :: Apache Software License",
70
70
  "Programming Language :: Python",
71
71
  "Programming Language :: Python :: 3",
72
- "Programming Language :: Python :: 3.6",
73
72
  "Programming Language :: Python :: 3.7",
74
73
  "Programming Language :: Python :: 3.8",
75
74
  "Programming Language :: Python :: 3.9",
75
+ "Programming Language :: Python :: 3.10",
76
+ "Programming Language :: Python :: 3.11",
77
+ "Programming Language :: Python :: 3.12",
76
78
  "Topic :: Software Development"
77
79
  )
78
80
  )
@@ -1,11 +1,12 @@
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 Local import models as local_models
5
- from Source.source_client import SourceClient
6
- from Source import models as source_models
4
+
7
5
  from typing import List
8
6
 
7
+ from Local import models as local_models
8
+ from Source import models as source_models
9
+ from Source.source_client import SourceClient
9
10
 
10
11
 
11
12
 
@@ -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,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 Source.source_client import SourceClient
5
- from Source import models as source_models
6
- from darabonba.core import DaraCore
7
4
 
5
+ from darabonba.core import DaraCore
6
+ from Source import models as source_models
7
+ from Source.source_client import SourceClient
8
8
 
9
9
 
10
10
 
@@ -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
  )
@@ -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
  class Client:
8
6
 
9
7
  def __init__(self):
@@ -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 ._main_file import MainFileException
8
6
 
9
7
  __all__ = [
@@ -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
- from darabonba.exceptions import DaraException
5
- from tea_python_tests import models as main_models
4
+
6
5
  from typing import Dict
7
6
 
7
+ from darabonba.exceptions import DaraException
8
+ from tea_python_tests import models as main_models
8
9
 
9
10
  class MainFileException(DaraException):
10
11
  def __init__(
@@ -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 ._m import M
8
6
  from ._class import Class
9
7
  from ._model import Model
@@ -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
  class Class(DaraModel):
8
8
  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 darabonba.model import DaraModel
5
- from tea_python_tests import models as main_models
6
4
 
5
+ from darabonba.model import DaraModel
6
+ from tea_python_tests import models as main_models
7
7
 
8
8
  class M(DaraModel):
9
9
  def __init__(
@@ -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 darabonba.model import DaraModel
5
- from tea_python_tests import models as main_models
6
4
 
5
+ from darabonba.model import DaraModel
6
+ from tea_python_tests import models as main_models
7
7
 
8
8
  class MainFileModel(DaraModel):
9
9
  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.model import DaraModel
5
4
 
5
+ from darabonba.model import DaraModel
6
6
 
7
7
  class Model(DaraModel):
8
8
  def __init__(
@@ -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 darabonba.model import DaraModel
5
- from tea_python_tests import models as main_models
6
- from Source.client import Client as SourceClient
7
- from Source import models as source_models
8
- from darabonba.request import DaraRequest
4
+
9
5
  from typing import List, Dict, Any, BinaryIO
10
6
 
7
+ from darabonba.model import DaraModel
8
+ from darabonba.request import DaraRequest
9
+ from Source import models as source_models
10
+ from Source.client import Client as SourceClient
11
+ from tea_python_tests import models as main_models
11
12
 
12
13
  class MyModel(DaraModel):
13
14
  def __init__(
@@ -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
  )
@@ -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
  class Client:
8
6
 
9
7
  def __init__(self):
@@ -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 ._main_file import MainFileException
8
6
 
9
7
  __all__ = [
@@ -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
- from darabonba.exceptions import DaraException
5
- from tea_python_tests import models as main_models
4
+
6
5
  from typing import Dict
7
6
 
7
+ from darabonba.exceptions import DaraException
8
+ from tea_python_tests import models as main_models
8
9
 
9
10
  class MainFileException(DaraException):
10
11
  def __init__(
@@ -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 ._m import M
8
6
  from ._class import Class
9
7
  from ._model import Model
@@ -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
  class Class(DaraModel):
8
8
  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 darabonba.model import DaraModel
5
- from tea_python_tests import models as main_models
6
4
 
5
+ from darabonba.model import DaraModel
6
+ from tea_python_tests import models as main_models
7
7
 
8
8
  class M(DaraModel):
9
9
  def __init__(
@@ -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 darabonba.model import DaraModel
5
- from tea_python_tests import models as main_models
6
4
 
5
+ from darabonba.model import DaraModel
6
+ from tea_python_tests import models as main_models
7
7
 
8
8
  class MainFileModel(DaraModel):
9
9
  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.model import DaraModel
5
4
 
5
+ from darabonba.model import DaraModel
6
6
 
7
7
  class Model(DaraModel):
8
8
  def __init__(
@@ -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 darabonba.model import DaraModel
5
- from tea_python_tests import models as main_models
6
- from Source.client import Client as SourceClient
7
- from Source import models as source_models
8
- from darabonba.request import DaraRequest
4
+
9
5
  from typing import List, Dict, Any, BinaryIO
10
6
 
7
+ from darabonba.model import DaraModel
8
+ from darabonba.request import DaraRequest
9
+ from Source import models as source_models
10
+ from Source.client import Client as SourceClient
11
+ from tea_python_tests import models as main_models
11
12
 
12
13
  class MyModel(DaraModel):
13
14
  def __init__(