@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.
- package/ChangeLog.md +3 -0
- package/lib/builtin.js +12 -3
- package/lib/generator.js +234 -235
- package/lib/helper.js +230 -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 +6 -5
- 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 +6 -5
- 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 +6 -5
- 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 +6 -5
- 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,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
|
-
|
|
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.
|
|
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
|
)
|
|
@@ -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
|
)
|
|
@@ -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
|
)
|
|
@@ -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,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
|
-
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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,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 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__(
|
|
@@ -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,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 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.
|
|
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,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 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__(
|
|
@@ -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,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 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__(
|