robotframework-openapitools 0.4.0__py3-none-any.whl → 1.0.0b1__py3-none-any.whl

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 (60) hide show
  1. OpenApiDriver/__init__.py +44 -41
  2. OpenApiDriver/openapi_executors.py +40 -39
  3. OpenApiDriver/openapi_reader.py +115 -116
  4. OpenApiDriver/openapidriver.libspec +71 -61
  5. OpenApiDriver/openapidriver.py +25 -19
  6. OpenApiLibCore/__init__.py +13 -11
  7. OpenApiLibCore/annotations.py +3 -0
  8. OpenApiLibCore/data_generation/__init__.py +12 -0
  9. OpenApiLibCore/data_generation/body_data_generation.py +269 -0
  10. OpenApiLibCore/data_generation/data_generation_core.py +240 -0
  11. OpenApiLibCore/data_invalidation.py +281 -0
  12. OpenApiLibCore/dto_base.py +29 -35
  13. OpenApiLibCore/dto_utils.py +97 -85
  14. OpenApiLibCore/oas_cache.py +14 -13
  15. OpenApiLibCore/openapi_libcore.libspec +350 -193
  16. OpenApiLibCore/openapi_libcore.py +392 -1698
  17. OpenApiLibCore/parameter_utils.py +89 -0
  18. OpenApiLibCore/path_functions.py +215 -0
  19. OpenApiLibCore/path_invalidation.py +44 -0
  20. OpenApiLibCore/protocols.py +30 -0
  21. OpenApiLibCore/request_data.py +275 -0
  22. OpenApiLibCore/resource_relations.py +54 -0
  23. OpenApiLibCore/validation.py +497 -0
  24. OpenApiLibCore/value_utils.py +528 -481
  25. openapi_libgen/__init__.py +46 -0
  26. openapi_libgen/command_line.py +87 -0
  27. openapi_libgen/parsing_utils.py +26 -0
  28. openapi_libgen/spec_parser.py +212 -0
  29. openapi_libgen/templates/__init__.jinja +3 -0
  30. openapi_libgen/templates/library.jinja +30 -0
  31. robotframework_openapitools-1.0.0b1.dist-info/METADATA +237 -0
  32. robotframework_openapitools-1.0.0b1.dist-info/RECORD +37 -0
  33. {robotframework_openapitools-0.4.0.dist-info → robotframework_openapitools-1.0.0b1.dist-info}/WHEEL +1 -1
  34. robotframework_openapitools-1.0.0b1.dist-info/entry_points.txt +3 -0
  35. roboswag/__init__.py +0 -9
  36. roboswag/__main__.py +0 -3
  37. roboswag/auth.py +0 -44
  38. roboswag/cli.py +0 -80
  39. roboswag/core.py +0 -85
  40. roboswag/generate/__init__.py +0 -1
  41. roboswag/generate/generate.py +0 -121
  42. roboswag/generate/models/__init__.py +0 -0
  43. roboswag/generate/models/api.py +0 -219
  44. roboswag/generate/models/definition.py +0 -28
  45. roboswag/generate/models/endpoint.py +0 -68
  46. roboswag/generate/models/parameter.py +0 -25
  47. roboswag/generate/models/response.py +0 -8
  48. roboswag/generate/models/tag.py +0 -16
  49. roboswag/generate/models/utils.py +0 -60
  50. roboswag/generate/templates/api_init.jinja +0 -15
  51. roboswag/generate/templates/models.jinja +0 -7
  52. roboswag/generate/templates/paths.jinja +0 -68
  53. roboswag/logger.py +0 -33
  54. roboswag/validate/__init__.py +0 -6
  55. roboswag/validate/core.py +0 -3
  56. roboswag/validate/schema.py +0 -21
  57. roboswag/validate/text_response.py +0 -14
  58. robotframework_openapitools-0.4.0.dist-info/METADATA +0 -42
  59. robotframework_openapitools-0.4.0.dist-info/RECORD +0 -41
  60. {robotframework_openapitools-0.4.0.dist-info → robotframework_openapitools-1.0.0b1.dist-info}/LICENSE +0 -0
@@ -0,0 +1,46 @@
1
+ from pathlib import Path
2
+ from typing import Any
3
+
4
+ from jinja2 import Environment, FileSystemLoader
5
+
6
+ from openapi_libgen.spec_parser import get_keyword_data
7
+
8
+ HERE = Path(__file__).parent.resolve()
9
+ INIT_TEMPLATE_PATH = HERE / "templates/__init__.jinja"
10
+ LIBRARY_TEMPLATE_PATH = HERE / "templates/library.jinja"
11
+
12
+
13
+ def generate(
14
+ openapi_spec: dict[str, Any],
15
+ output_folder: Path,
16
+ library_name: str,
17
+ module_name: str,
18
+ ) -> str:
19
+ keyword_data = get_keyword_data(openapi_spec=openapi_spec)
20
+
21
+ library_folder = output_folder / library_name
22
+ library_folder.mkdir(parents=True, exist_ok=True)
23
+
24
+ environment = Environment(loader=FileSystemLoader(f"{HERE}/templates/"))
25
+
26
+ init_template = environment.get_template("__init__.jinja")
27
+ init_path = library_folder / "__init__.py"
28
+ init_content = init_template.render(
29
+ library_name=library_name,
30
+ module_name=module_name,
31
+ )
32
+ with open(init_path, mode="w", encoding="utf-8") as init_file:
33
+ init_file.write(init_content)
34
+ print(f"{init_path} created")
35
+
36
+ library_template = environment.get_template("library.jinja")
37
+ module_path = library_folder / f"{module_name}.py"
38
+ library_content = library_template.render(
39
+ library_name=library_name,
40
+ keywords=keyword_data,
41
+ )
42
+ with open(module_path, mode="w", encoding="utf-8") as library_file:
43
+ library_file.write(library_content)
44
+ print(f"{module_path} created")
45
+
46
+ return f"Generating {library_name} at {output_folder.resolve().as_posix()}/{module_name}"
@@ -0,0 +1,87 @@
1
+ import argparse
2
+ from pathlib import Path
3
+
4
+ from prance import ResolvingParser
5
+
6
+ import openapi_libgen
7
+ from openapi_libgen.parsing_utils import remove_unsafe_characters_from_string
8
+
9
+ parser = argparse.ArgumentParser(
10
+ prog="openapi_libgen",
11
+ description="The OpenApiTools library generator",
12
+ epilog="Inspired by roboswag. Thank you Bartlomiej and Mateusz for your work!",
13
+ )
14
+ parser.add_argument("-s", "--source")
15
+ parser.add_argument("-d", "--destination")
16
+ parser.add_argument("-n", "--name")
17
+ parser.add_argument("--recursion-limit", default=1, type=int)
18
+ parser.add_argument("--recursion-default", default={})
19
+ args = parser.parse_args()
20
+
21
+
22
+ def get_class_and_module_name_from_string(string: str) -> tuple[str, str]:
23
+ safe_string = remove_unsafe_characters_from_string(string)
24
+ class_name = safe_string.replace("_", "")
25
+ module_name = safe_string.lower()
26
+ return class_name, module_name
27
+
28
+
29
+ def main() -> None:
30
+ def recursion_limit_handler(
31
+ limit: int, refstring: str, recursions: object
32
+ ) -> object: # pylint: disable=unused-argument
33
+ return args.recursion_default
34
+
35
+ if not (source := args.source):
36
+ source = input("Please provide a source for the generation: ")
37
+
38
+ parser = ResolvingParser(
39
+ source,
40
+ backend="openapi-spec-validator",
41
+ recursion_limit=args.recursion_limit,
42
+ recursion_limit_handler=recursion_limit_handler,
43
+ )
44
+ assert parser.specification is not None, (
45
+ "Source was loaded, but no specification was present after parsing."
46
+ )
47
+ spec = parser.specification
48
+
49
+ if not (destination := args.destination):
50
+ destination = input(
51
+ "Please provide a path to where the library will be generated: "
52
+ )
53
+ path = Path(destination)
54
+
55
+ if args.name:
56
+ safe_library_name, safe_module_name = get_class_and_module_name_from_string(
57
+ args.name
58
+ )
59
+ else:
60
+ default_name = spec["info"]["title"]
61
+
62
+ default_library_name, default_module_name = (
63
+ get_class_and_module_name_from_string(default_name)
64
+ )
65
+
66
+ library_name = (
67
+ input(
68
+ f"Please provide a name for the library [default: {default_library_name}]: "
69
+ )
70
+ or default_library_name
71
+ )
72
+ if library_name != default_library_name:
73
+ safe_library_name, safe_module_name = get_class_and_module_name_from_string(
74
+ library_name
75
+ )
76
+ else:
77
+ safe_library_name, safe_module_name = (
78
+ default_library_name,
79
+ default_module_name,
80
+ )
81
+
82
+ openapi_libgen.generate(
83
+ openapi_spec=spec,
84
+ output_folder=path,
85
+ library_name=safe_library_name,
86
+ module_name=safe_module_name,
87
+ )
@@ -0,0 +1,26 @@
1
+ from typing import Generator
2
+
3
+
4
+ def remove_unsafe_characters_from_string(string: str) -> str:
5
+ def _remove_unsafe_characters_from_string(
6
+ string: str,
7
+ ) -> Generator[str, None, None]:
8
+ string_iterator = iter(string)
9
+ capitalize_next_character = False
10
+
11
+ for character in string_iterator:
12
+ if character.isalpha():
13
+ yield character
14
+ break
15
+
16
+ for character in string_iterator:
17
+ if character.isalnum():
18
+ if capitalize_next_character:
19
+ capitalize_next_character = False
20
+ yield character
21
+
22
+ elif not capitalize_next_character:
23
+ capitalize_next_character = True
24
+ yield "_"
25
+
26
+ return "".join(_remove_unsafe_characters_from_string(string=string))
@@ -0,0 +1,212 @@
1
+ from dataclasses import dataclass
2
+ from os import getenv
3
+ from string import Template
4
+ from typing import Any, Generator
5
+
6
+ from robot.utils import is_truthy
7
+
8
+ from openapi_libgen.parsing_utils import remove_unsafe_characters_from_string
9
+ from OpenApiLibCore.parameter_utils import get_safe_name_for_oas_name
10
+ from OpenApiLibCore.value_utils import python_type_by_json_type_name
11
+
12
+ KEYWORD_TEMPLATE = r"""@keyword
13
+ {signature}
14
+ {body}"""
15
+
16
+ SIGNATURE_TEMPLATE = r"def {keyword_name}(self{arguments}) -> Response:"
17
+
18
+ BODY_TEMPLATE_ = r"""overrides = {key: value for key, value in locals().items() if value is not UNSET and key != "self"}
19
+ body_data = overrides.pop("body", {})
20
+ overrides.update(body_data)
21
+ updated_path: str = substitute_path_parameters(path="{path_value}", substitution_dict=overrides)
22
+ request_values: RequestValues = self.get_request_values(path=f"{updated_path}", method="{method_value}", overrides=overrides)
23
+ return self._perform_request(request_values=request_values)"""
24
+
25
+
26
+ class BodyTemplate(Template):
27
+ delimiter = ""
28
+
29
+
30
+ BODY_TEMPLATE = BodyTemplate(BODY_TEMPLATE_)
31
+
32
+
33
+ @dataclass
34
+ class OperationDetails:
35
+ path: str
36
+ method: str
37
+ operation_id: str
38
+ parameters: list[dict[str, Any]]
39
+ request_body: dict[str, Any]
40
+ summary: str
41
+ description: str
42
+
43
+
44
+ @dataclass
45
+ class ParameterDetails:
46
+ type: str
47
+ name: str
48
+ schema: dict[str, Any]
49
+
50
+
51
+ @dataclass
52
+ class BodyDetails:
53
+ schema: dict[str, Any]
54
+
55
+
56
+ def get_path_items(paths: dict[str, Any]) -> Generator[OperationDetails, None, None]:
57
+ for path, operation_items in paths.items():
58
+ for method, method_item in operation_items.items():
59
+ operation_details = OperationDetails(
60
+ path=path,
61
+ method=method,
62
+ operation_id=method_item["operationId"],
63
+ parameters=method_item.get("parameters", []),
64
+ request_body=method_item.get("requestBody", {}),
65
+ summary=method_item.get("summary"),
66
+ description=method_item.get("description"),
67
+ )
68
+ yield operation_details
69
+
70
+
71
+ def get_parameter_details(
72
+ operation_details: OperationDetails,
73
+ ) -> list[ParameterDetails]:
74
+ def _get_parameter_details(
75
+ data: OperationDetails,
76
+ ) -> Generator[ParameterDetails, None, None]:
77
+ for param_data in data.parameters:
78
+ name = param_data["name"]
79
+ type = param_data["in"]
80
+ if not (schema := param_data.get("schema", {})):
81
+ content = param_data["content"]
82
+ for _, media_data in content.items():
83
+ schema = media_data["schema"]
84
+
85
+ yield ParameterDetails(
86
+ type=type,
87
+ name=name,
88
+ schema=schema,
89
+ )
90
+
91
+ return list(_get_parameter_details(data=operation_details))
92
+
93
+
94
+ def get_body_details(operation_details: OperationDetails) -> BodyDetails | None:
95
+ if not (body_data := operation_details.request_body):
96
+ return None
97
+ content = body_data["content"]
98
+ if not (schema := content.get("application/json")):
99
+ return None
100
+ return BodyDetails(schema=schema["schema"])
101
+
102
+
103
+ def get_keyword_signature(operation_details: OperationDetails) -> str:
104
+ USE_SUMMARY_AS_KEYWORD_NAME = getenv("USE_SUMMARY_AS_KEYWORD_NAME")
105
+ EXPAND_BODY_ARGUMENTS = getenv("EXPAND_BODY_ARGUMENTS")
106
+
107
+ if is_truthy(USE_SUMMARY_AS_KEYWORD_NAME):
108
+ keyword_name = remove_unsafe_characters_from_string(
109
+ operation_details.summary
110
+ ).lower()
111
+ else:
112
+ keyword_name = remove_unsafe_characters_from_string(
113
+ operation_details.operation_id
114
+ ).lower()
115
+
116
+ parameters = get_parameter_details(operation_details=operation_details)
117
+ path_parameters = [p for p in parameters if p.type == "path"]
118
+ query_parameters = [p for p in parameters if p.type == "query"]
119
+ header_parameters = [p for p in parameters if p.type == "header"]
120
+
121
+ body_details = get_body_details(operation_details=operation_details)
122
+
123
+ argument_parts: list[str] = []
124
+ # Keep track of the already used argument names. From the OAS:
125
+ # "A unique parameter is defined by a combination of a name and location"
126
+ # To prevent duplicates, a location prefix is added if a duplication would occur.
127
+ keyword_argument_names: set[str] = set()
128
+
129
+ for parameter in path_parameters:
130
+ if "anyOf" in parameter.schema:
131
+ parameter_python_type = "Any"
132
+ else:
133
+ parameter_json_type = parameter.schema["type"]
134
+ parameter_python_type = python_type_by_json_type_name(
135
+ parameter_json_type
136
+ ).__name__
137
+ annotation = f"{parameter_python_type} = UNSET"
138
+ safe_name = get_safe_name_for_oas_name(parameter.name)
139
+ keyword_argument_names.add(safe_name)
140
+ argument = f", {safe_name}: {annotation}"
141
+ argument_parts.append(argument)
142
+ arguments = "".join(argument_parts)
143
+
144
+ if body_details:
145
+ body_json_type = body_details.schema["type"]
146
+ body_python_type = python_type_by_json_type_name(body_json_type).__name__
147
+ if body_python_type == "dict" and is_truthy(EXPAND_BODY_ARGUMENTS):
148
+ body_properties = body_details.schema["properties"]
149
+ for property_name, property_data in body_properties.items():
150
+ if "anyOf" in property_data:
151
+ property_python_type = "Any"
152
+ else:
153
+ property_json_type = property_data["type"]
154
+ property_python_type = python_type_by_json_type_name(
155
+ property_json_type
156
+ ).__name__
157
+ annotation = f"{property_python_type} = UNSET"
158
+ safe_name = get_safe_name_for_oas_name(property_name)
159
+ if safe_name in keyword_argument_names:
160
+ safe_name = "body_" + safe_name
161
+ keyword_argument_names.add(safe_name)
162
+ argument = f", {safe_name}: {annotation}"
163
+ arguments += argument
164
+ else:
165
+ annotation = f"{body_python_type} = UNSET"
166
+ argument = f", body: {annotation}"
167
+ arguments += argument
168
+
169
+ for parameter in query_parameters:
170
+ if "anyOf" in parameter.schema:
171
+ parameter_python_type = "Any"
172
+ else:
173
+ parameter_json_type = parameter.schema["type"]
174
+ parameter_python_type = python_type_by_json_type_name(
175
+ parameter_json_type
176
+ ).__name__
177
+ annotation = f"{parameter_python_type} = UNSET"
178
+ safe_name = get_safe_name_for_oas_name(parameter.name)
179
+ if safe_name in keyword_argument_names:
180
+ safe_name = "query_" + safe_name
181
+ keyword_argument_names.add(safe_name)
182
+ argument = f", {safe_name}: {annotation}"
183
+ arguments += argument
184
+
185
+ for parameter in header_parameters:
186
+ if "anyOf" in parameter.schema:
187
+ parameter_python_type = "Any"
188
+ else:
189
+ parameter_json_type = parameter.schema["type"]
190
+ parameter_python_type = python_type_by_json_type_name(
191
+ parameter_json_type
192
+ ).__name__
193
+ annotation = f"{parameter_python_type} = UNSET"
194
+ safe_name = get_safe_name_for_oas_name(parameter.name)
195
+ if safe_name in keyword_argument_names:
196
+ safe_name = "header_" + safe_name
197
+ keyword_argument_names.add(safe_name)
198
+ argument = f", {safe_name}: {annotation}"
199
+ arguments += argument
200
+
201
+ return SIGNATURE_TEMPLATE.format(keyword_name=keyword_name, arguments=arguments)
202
+
203
+
204
+ def get_keyword_body(data: OperationDetails) -> str:
205
+ return BODY_TEMPLATE.safe_substitute(path_value=data.path, method_value=data.method)
206
+
207
+
208
+ def get_keyword_data(openapi_spec: dict[str, Any]) -> Generator[str, None, None]:
209
+ for path_item in get_path_items(openapi_spec["paths"]):
210
+ signature = get_keyword_signature(path_item)
211
+ body = get_keyword_body(path_item)
212
+ yield KEYWORD_TEMPLATE.format(signature=signature, body=body)
@@ -0,0 +1,3 @@
1
+ from {{ library_name }}.{{ module_name }} import {{ library_name }}
2
+
3
+ __all__ = ["{{ library_name }}"]
@@ -0,0 +1,30 @@
1
+ # pyright: reportArgumentType=false
2
+ from typing import Any
3
+
4
+ from requests import Response
5
+ from robot.api.deco import keyword, library
6
+ from robot.libraries.BuiltIn import BuiltIn
7
+
8
+ from OpenApiLibCore import UNSET, OpenApiLibCore, RequestValues
9
+ from OpenApiLibCore.path_functions import substitute_path_parameters
10
+
11
+ run_keyword = BuiltIn().run_keyword
12
+
13
+
14
+ @library(scope="SUITE", doc_format="ROBOT")
15
+ class {{ library_name }}(OpenApiLibCore):
16
+ """Generated library with keywords for all the path operations."""
17
+ {% for keyword in keywords %}
18
+ {{ keyword }}
19
+ {% endfor %}
20
+ @staticmethod
21
+ def _perform_request(request_values: RequestValues) -> Response:
22
+ response: Response = run_keyword(
23
+ "authorized_request",
24
+ request_values.url,
25
+ request_values.method,
26
+ request_values.params,
27
+ request_values.headers,
28
+ request_values.json_data,
29
+ )
30
+ return response
@@ -0,0 +1,237 @@
1
+ Metadata-Version: 2.3
2
+ Name: robotframework-openapitools
3
+ Version: 1.0.0b1
4
+ Summary: A set of Robot Framework libraries to test APIs for which the OAS is available.
5
+ License: Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for reasonable and customary use in describing the
145
+ origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing
170
+ the Work or Derivative Works thereof, You may choose to offer,
171
+ and charge a fee for, acceptance of support, warranty, indemnity,
172
+ or other liability obligations and/or rights consistent with this
173
+ License. However, in accepting such obligations, You may act only
174
+ on Your own behalf and on Your sole responsibility, not on behalf
175
+ of any other Contributor, and only if You agree to indemnify,
176
+ defend, and hold each Contributor harmless for any liability
177
+ incurred by, or claims asserted against, such Contributor by reason
178
+ of your accepting any such warranty or additional liability.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. We also recommend that a
189
+ file or class name and description of purpose be included on the
190
+ same "printed page" as the copyright notice for easier
191
+ identification within third-party archives.
192
+
193
+ Copyright [yyyy] [name of copyright owner]
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
206
+ Author: Robin Mackaij
207
+ Author-email: r.a.mackaij@gmail.com
208
+ Maintainer: Robin Mackaij
209
+ Maintainer-email: r.a.mackaij@gmail.com
210
+ Requires-Python: >=3.10, <4
211
+ Classifier: Programming Language :: Python :: 3
212
+ Classifier: Programming Language :: Python :: 3.10
213
+ Classifier: License :: OSI Approved :: Apache Software License
214
+ Classifier: Operating System :: OS Independent
215
+ Classifier: Topic :: Software Development :: Testing
216
+ Classifier: Topic :: Software Development :: Testing :: Acceptance
217
+ Classifier: Framework :: Robot Framework
218
+ Requires-Dist: Faker (>=23.1.0)
219
+ Requires-Dist: Jinja2 (>=3.1.2)
220
+ Requires-Dist: black (>=24.1.0)
221
+ Requires-Dist: openapi-core (>=0.19.0)
222
+ Requires-Dist: prance[cli] (>=23)
223
+ Requires-Dist: requests (>=2.31.0)
224
+ Requires-Dist: rich_click (>=1.7.0)
225
+ Requires-Dist: robotframework (>=6.0.0,!=7.0.0)
226
+ Requires-Dist: robotframework-datadriver (>=1.10.0)
227
+ Requires-Dist: rstr (>=3.2.0)
228
+ Project-URL: Homepage, https://github.com/MarketSquare/robotframework-openapitools
229
+ Description-Content-Type: text/markdown
230
+
231
+ # OpenApiTools for Robot Framework
232
+
233
+ OpenApiTools is a set of libraries centered around the OpenAPI Specification:
234
+
235
+ - [OpenApiDriver](./driver.md)
236
+ - [OpenApiLibCore](./libcore.md)
237
+