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