-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path__init__package.mustache
More file actions
52 lines (45 loc) · 1.74 KB
/
__init__package.mustache
File metadata and controls
52 lines (45 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# coding: utf-8
# flake8: noqa
{{>partial_header}}
__version__ = "{{packageVersion}}"
# Define package exports
__all__ = [
{{#apiInfo}}{{#apis}}"{{classname}}",
{{/apis}}{{/apiInfo}}"ApiResponse",
"ApiClient",
"HostConfiguration",
"OpenApiException",
"ApiTypeError",
"ApiValueError",
"ApiKeyError",
"ApiAttributeError",
"ApiException",
{{#hasHttpSignatureMethods}}"HttpSigningConfiguration",
{{/hasHttpSignatureMethods}}{{#models}}{{#model}}"{{classname}}"{{^-last}},
{{/-last}}{{#-last}},{{/-last}}{{/model}}{{/models}}
]
# import apis into sdk package
{{#apiInfo}}{{#apis}}from {{apiPackage}}.{{classFilename}} import {{classname}} as {{classname}}
{{/apis}}{{/apiInfo}}
# import ApiClient
from {{packageName}}.api_response import ApiResponse as ApiResponse
from {{packageName}}.api_client import ApiClient as ApiClient
from {{packageName}}.configuration import HostConfiguration as HostConfiguration
from {{packageName}}.exceptions import OpenApiException as OpenApiException
from {{packageName}}.exceptions import ApiTypeError as ApiTypeError
from {{packageName}}.exceptions import ApiValueError as ApiValueError
from {{packageName}}.exceptions import ApiKeyError as ApiKeyError
from {{packageName}}.exceptions import ApiAttributeError as ApiAttributeError
from {{packageName}}.exceptions import ApiException as ApiException
{{#hasHttpSignatureMethods}}
from {{packageName}}.signing import HttpSigningConfiguration as HttpSigningConfiguration
{{/hasHttpSignatureMethods}}
# import models into sdk package
{{#models}}
{{#model}}
from {{modelPackage}}.{{classFilename}} import {{classname}} as {{classname}}
{{/model}}
{{/models}}
{{#recursionLimit}}
__import__('sys').setrecursionlimit({{{.}}})
{{/recursionLimit}}