otterapi 0.0.5__py3-none-any.whl → 0.0.6__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.
- README.md +581 -8
- otterapi/__init__.py +73 -0
- otterapi/cli.py +327 -29
- otterapi/codegen/__init__.py +115 -0
- otterapi/codegen/ast_utils.py +134 -5
- otterapi/codegen/client.py +1271 -0
- otterapi/codegen/codegen.py +1736 -0
- otterapi/codegen/dataframes.py +392 -0
- otterapi/codegen/emitter.py +473 -0
- otterapi/codegen/endpoints.py +2597 -343
- otterapi/codegen/pagination.py +1026 -0
- otterapi/codegen/schema.py +593 -0
- otterapi/codegen/splitting.py +1397 -0
- otterapi/codegen/types.py +1345 -0
- otterapi/codegen/utils.py +180 -1
- otterapi/config.py +1017 -24
- otterapi/exceptions.py +231 -0
- otterapi/openapi/__init__.py +46 -0
- otterapi/openapi/v2/__init__.py +86 -0
- otterapi/openapi/v2/spec.json +1607 -0
- otterapi/openapi/v2/v2.py +1776 -0
- otterapi/openapi/v3/__init__.py +131 -0
- otterapi/openapi/v3/spec.json +1651 -0
- otterapi/openapi/v3/v3.py +1557 -0
- otterapi/openapi/v3_1/__init__.py +133 -0
- otterapi/openapi/v3_1/spec.json +1411 -0
- otterapi/openapi/v3_1/v3_1.py +798 -0
- otterapi/openapi/v3_2/__init__.py +133 -0
- otterapi/openapi/v3_2/spec.json +1666 -0
- otterapi/openapi/v3_2/v3_2.py +777 -0
- otterapi/tests/__init__.py +3 -0
- otterapi/tests/fixtures/__init__.py +455 -0
- otterapi/tests/test_ast_utils.py +680 -0
- otterapi/tests/test_codegen.py +610 -0
- otterapi/tests/test_dataframe.py +1038 -0
- otterapi/tests/test_exceptions.py +493 -0
- otterapi/tests/test_openapi_support.py +616 -0
- otterapi/tests/test_openapi_upgrade.py +215 -0
- otterapi/tests/test_pagination.py +1101 -0
- otterapi/tests/test_splitting_config.py +319 -0
- otterapi/tests/test_splitting_integration.py +427 -0
- otterapi/tests/test_splitting_resolver.py +512 -0
- otterapi/tests/test_splitting_tree.py +525 -0
- otterapi-0.0.6.dist-info/METADATA +627 -0
- otterapi-0.0.6.dist-info/RECORD +48 -0
- {otterapi-0.0.5.dist-info → otterapi-0.0.6.dist-info}/WHEEL +1 -1
- otterapi/codegen/generator.py +0 -358
- otterapi/codegen/openapi_processor.py +0 -27
- otterapi/codegen/type_generator.py +0 -559
- otterapi-0.0.5.dist-info/METADATA +0 -54
- otterapi-0.0.5.dist-info/RECORD +0 -16
- {otterapi-0.0.5.dist-info → otterapi-0.0.6.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
from .v3_1 import (
|
|
2
|
+
XML,
|
|
3
|
+
APIKeySecurityScheme,
|
|
4
|
+
AuthorizationCodeOAuthFlow,
|
|
5
|
+
Callback,
|
|
6
|
+
ClientCredentialsFlow,
|
|
7
|
+
Components,
|
|
8
|
+
Contact,
|
|
9
|
+
CookieParameter,
|
|
10
|
+
Discriminator,
|
|
11
|
+
Encoding,
|
|
12
|
+
Example,
|
|
13
|
+
ExampleXORExamples,
|
|
14
|
+
ExternalDocumentation,
|
|
15
|
+
Header,
|
|
16
|
+
HeaderParameter,
|
|
17
|
+
HTTPSecurityScheme,
|
|
18
|
+
HTTPSecurityScheme1,
|
|
19
|
+
HTTPSecurityScheme2,
|
|
20
|
+
ImplicitOAuthFlow,
|
|
21
|
+
In,
|
|
22
|
+
In1,
|
|
23
|
+
In2,
|
|
24
|
+
In3,
|
|
25
|
+
In4,
|
|
26
|
+
Info,
|
|
27
|
+
License,
|
|
28
|
+
Link,
|
|
29
|
+
MediaType,
|
|
30
|
+
OAuth2SecurityScheme,
|
|
31
|
+
OAuthFlows,
|
|
32
|
+
OpenAPI,
|
|
33
|
+
OpenIdConnectSecurityScheme,
|
|
34
|
+
Operation,
|
|
35
|
+
Parameter,
|
|
36
|
+
PasswordOAuthFlow,
|
|
37
|
+
PathItem,
|
|
38
|
+
PathParameter,
|
|
39
|
+
Paths,
|
|
40
|
+
QueryParameter,
|
|
41
|
+
Reference,
|
|
42
|
+
RequestBody,
|
|
43
|
+
Required,
|
|
44
|
+
Response,
|
|
45
|
+
Responses,
|
|
46
|
+
Schema,
|
|
47
|
+
SchemaXORContent,
|
|
48
|
+
SchemaXORContent1,
|
|
49
|
+
SecurityRequirement,
|
|
50
|
+
SecurityScheme,
|
|
51
|
+
Server,
|
|
52
|
+
ServerVariable,
|
|
53
|
+
Style,
|
|
54
|
+
Style1,
|
|
55
|
+
Style2,
|
|
56
|
+
Style3,
|
|
57
|
+
Style4,
|
|
58
|
+
Style5,
|
|
59
|
+
Tag,
|
|
60
|
+
Type,
|
|
61
|
+
Type1,
|
|
62
|
+
Type2,
|
|
63
|
+
Type4,
|
|
64
|
+
Type5,
|
|
65
|
+
Webhook,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
__all__ = [
|
|
69
|
+
'APIKeySecurityScheme',
|
|
70
|
+
'AuthorizationCodeOAuthFlow',
|
|
71
|
+
'Callback',
|
|
72
|
+
'ClientCredentialsFlow',
|
|
73
|
+
'Components',
|
|
74
|
+
'Contact',
|
|
75
|
+
'CookieParameter',
|
|
76
|
+
'Discriminator',
|
|
77
|
+
'Encoding',
|
|
78
|
+
'Example',
|
|
79
|
+
'ExampleXORExamples',
|
|
80
|
+
'ExternalDocumentation',
|
|
81
|
+
'Header',
|
|
82
|
+
'HeaderParameter',
|
|
83
|
+
'HTTPSecurityScheme',
|
|
84
|
+
'HTTPSecurityScheme1',
|
|
85
|
+
'HTTPSecurityScheme2',
|
|
86
|
+
'ImplicitOAuthFlow',
|
|
87
|
+
'In',
|
|
88
|
+
'In1',
|
|
89
|
+
'In2',
|
|
90
|
+
'In3',
|
|
91
|
+
'In4',
|
|
92
|
+
'Info',
|
|
93
|
+
'License',
|
|
94
|
+
'Link',
|
|
95
|
+
'MediaType',
|
|
96
|
+
'OAuth2SecurityScheme',
|
|
97
|
+
'OAuthFlows',
|
|
98
|
+
'OpenAPI',
|
|
99
|
+
'OpenIdConnectSecurityScheme',
|
|
100
|
+
'Operation',
|
|
101
|
+
'Parameter',
|
|
102
|
+
'PasswordOAuthFlow',
|
|
103
|
+
'PathItem',
|
|
104
|
+
'PathParameter',
|
|
105
|
+
'Paths',
|
|
106
|
+
'QueryParameter',
|
|
107
|
+
'Reference',
|
|
108
|
+
'RequestBody',
|
|
109
|
+
'Required',
|
|
110
|
+
'Response',
|
|
111
|
+
'Responses',
|
|
112
|
+
'Schema',
|
|
113
|
+
'SchemaXORContent',
|
|
114
|
+
'SchemaXORContent1',
|
|
115
|
+
'SecurityRequirement',
|
|
116
|
+
'SecurityScheme',
|
|
117
|
+
'Server',
|
|
118
|
+
'ServerVariable',
|
|
119
|
+
'Style',
|
|
120
|
+
'Style1',
|
|
121
|
+
'Style2',
|
|
122
|
+
'Style3',
|
|
123
|
+
'Style4',
|
|
124
|
+
'Style5',
|
|
125
|
+
'Tag',
|
|
126
|
+
'Type',
|
|
127
|
+
'Type1',
|
|
128
|
+
'Type2',
|
|
129
|
+
'Type4',
|
|
130
|
+
'Type5',
|
|
131
|
+
'Webhook',
|
|
132
|
+
'XML',
|
|
133
|
+
]
|