alchemy-python 0.1.0__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 (172) hide show
  1. alchemy/.fern/metadata.json +18 -0
  2. alchemy/CONTRIBUTING.md +125 -0
  3. alchemy/__init__.py +380 -0
  4. alchemy/_default_clients.py +30 -0
  5. alchemy/auth/__init__.py +4 -0
  6. alchemy/auth/client.py +767 -0
  7. alchemy/auth/raw_client.py +866 -0
  8. alchemy/client.py +717 -0
  9. alchemy/core/__init__.py +127 -0
  10. alchemy/core/api_error.py +23 -0
  11. alchemy/core/client_wrapper.py +155 -0
  12. alchemy/core/datetime_utils.py +70 -0
  13. alchemy/core/file.py +67 -0
  14. alchemy/core/force_multipart.py +18 -0
  15. alchemy/core/http_client.py +940 -0
  16. alchemy/core/http_response.py +63 -0
  17. alchemy/core/http_sse/__init__.py +42 -0
  18. alchemy/core/http_sse/_api.py +455 -0
  19. alchemy/core/http_sse/_decoders.py +74 -0
  20. alchemy/core/http_sse/_exceptions.py +7 -0
  21. alchemy/core/http_sse/_models.py +17 -0
  22. alchemy/core/jsonable_encoder.py +133 -0
  23. alchemy/core/logging.py +107 -0
  24. alchemy/core/oauth_token_provider.py +73 -0
  25. alchemy/core/parse_error.py +36 -0
  26. alchemy/core/pydantic_utilities.py +486 -0
  27. alchemy/core/query_encoder.py +58 -0
  28. alchemy/core/remove_none_from_dict.py +11 -0
  29. alchemy/core/request_options.py +40 -0
  30. alchemy/core/serialization.py +347 -0
  31. alchemy/environment.py +7 -0
  32. alchemy/function/__init__.py +34 -0
  33. alchemy/function/client.py +808 -0
  34. alchemy/function/raw_client.py +903 -0
  35. alchemy/function/version/__init__.py +4 -0
  36. alchemy/function/version/client.py +364 -0
  37. alchemy/function/version/raw_client.py +410 -0
  38. alchemy/host/__init__.py +4 -0
  39. alchemy/host/client.py +227 -0
  40. alchemy/host/raw_client.py +242 -0
  41. alchemy/instance/__init__.py +4 -0
  42. alchemy/instance/client.py +136 -0
  43. alchemy/instance/raw_client.py +141 -0
  44. alchemy/invocation/__init__.py +4 -0
  45. alchemy/invocation/client.py +570 -0
  46. alchemy/invocation/raw_client.py +636 -0
  47. alchemy/member/__init__.py +4 -0
  48. alchemy/member/client.py +441 -0
  49. alchemy/member/raw_client.py +504 -0
  50. alchemy/metrics/__init__.py +4 -0
  51. alchemy/metrics/client.py +428 -0
  52. alchemy/metrics/raw_client.py +478 -0
  53. alchemy/py.typed +0 -0
  54. alchemy/raw_client.py +138 -0
  55. alchemy/reference.md +3300 -0
  56. alchemy/runtime/__init__.py +4 -0
  57. alchemy/runtime/client.py +141 -0
  58. alchemy/runtime/raw_client.py +140 -0
  59. alchemy/service_account/__init__.py +4 -0
  60. alchemy/service_account/client.py +429 -0
  61. alchemy/service_account/raw_client.py +490 -0
  62. alchemy/template/__init__.py +4 -0
  63. alchemy/template/client.py +141 -0
  64. alchemy/template/raw_client.py +140 -0
  65. alchemy/types/__init__.py +344 -0
  66. alchemy/types/auth_v1accept_invite_response.py +5 -0
  67. alchemy/types/auth_v1create_service_account_response.py +34 -0
  68. alchemy/types/auth_v1get_auth_config_request.py +5 -0
  69. alchemy/types/auth_v1get_auth_config_response.py +53 -0
  70. alchemy/types/auth_v1get_session_request.py +9 -0
  71. alchemy/types/auth_v1get_session_response.py +28 -0
  72. alchemy/types/auth_v1get_token_response.py +29 -0
  73. alchemy/types/auth_v1invite_member_response.py +29 -0
  74. alchemy/types/auth_v1list_members_request.py +5 -0
  75. alchemy/types/auth_v1list_members_response.py +34 -0
  76. alchemy/types/auth_v1list_service_accounts_request.py +5 -0
  77. alchemy/types/auth_v1list_service_accounts_response.py +29 -0
  78. alchemy/types/auth_v1login_response.py +5 -0
  79. alchemy/types/auth_v1logout_request.py +8 -0
  80. alchemy/types/auth_v1logout_response.py +5 -0
  81. alchemy/types/auth_v1member.py +31 -0
  82. alchemy/types/auth_v1register_response.py +23 -0
  83. alchemy/types/auth_v1remove_member_response.py +5 -0
  84. alchemy/types/auth_v1remove_service_account_response.py +5 -0
  85. alchemy/types/auth_v1role.py +5 -0
  86. alchemy/types/auth_v1rotate_service_account_secret_response.py +31 -0
  87. alchemy/types/auth_v1service_account.py +35 -0
  88. alchemy/types/auth_v1set_member_role_response.py +5 -0
  89. alchemy/types/connect_error.py +38 -0
  90. alchemy/types/connect_error_code.py +25 -0
  91. alchemy/types/connect_error_details_any.py +36 -0
  92. alchemy/types/connect_protocol_version.py +5 -0
  93. alchemy/types/connect_timeout_header.py +6 -0
  94. alchemy/types/functions_v1arrow_contract.py +50 -0
  95. alchemy/types/functions_v1contract.py +8 -0
  96. alchemy/types/functions_v1contract_arrow.py +20 -0
  97. alchemy/types/functions_v1contract_json_schema.py +26 -0
  98. alchemy/types/functions_v1contract_violation.py +32 -0
  99. alchemy/types/functions_v1create_function_response.py +22 -0
  100. alchemy/types/functions_v1create_function_version_response.py +20 -0
  101. alchemy/types/functions_v1delete_function_response.py +5 -0
  102. alchemy/types/functions_v1function.py +100 -0
  103. alchemy/types/functions_v1function_error.py +30 -0
  104. alchemy/types/functions_v1function_error_kind.py +15 -0
  105. alchemy/types/functions_v1function_spec.py +58 -0
  106. alchemy/types/functions_v1function_version.py +81 -0
  107. alchemy/types/functions_v1function_version_status.py +13 -0
  108. alchemy/types/functions_v1get_function_response.py +20 -0
  109. alchemy/types/functions_v1get_function_version_response.py +20 -0
  110. alchemy/types/functions_v1get_host_request.py +5 -0
  111. alchemy/types/functions_v1get_host_response.py +20 -0
  112. alchemy/types/functions_v1get_invocation_logs_request.py +31 -0
  113. alchemy/types/functions_v1get_invocation_logs_response.py +24 -0
  114. alchemy/types/functions_v1get_invocation_response.py +20 -0
  115. alchemy/types/functions_v1get_version_request.py +5 -0
  116. alchemy/types/functions_v1get_version_response.py +25 -0
  117. alchemy/types/functions_v1host.py +58 -0
  118. alchemy/types/functions_v1instance.py +54 -0
  119. alchemy/types/functions_v1instance_status.py +14 -0
  120. alchemy/types/functions_v1invocation.py +106 -0
  121. alchemy/types/functions_v1invocation_protocol.py +8 -0
  122. alchemy/types/functions_v1invocation_stats.py +41 -0
  123. alchemy/types/functions_v1invocation_status.py +18 -0
  124. alchemy/types/functions_v1invoke_async_response.py +34 -0
  125. alchemy/types/functions_v1invoke_response.py +8 -0
  126. alchemy/types/functions_v1invoke_response_error.py +20 -0
  127. alchemy/types/functions_v1invoke_response_output.py +19 -0
  128. alchemy/types/functions_v1json_schema_contract.py +28 -0
  129. alchemy/types/functions_v1list_function_versions_response.py +22 -0
  130. alchemy/types/functions_v1list_functions_response.py +22 -0
  131. alchemy/types/functions_v1list_hosts_request.py +5 -0
  132. alchemy/types/functions_v1list_hosts_response.py +23 -0
  133. alchemy/types/functions_v1list_instances_response.py +20 -0
  134. alchemy/types/functions_v1list_invocations_response.py +22 -0
  135. alchemy/types/functions_v1list_runtimes_request.py +5 -0
  136. alchemy/types/functions_v1list_runtimes_response.py +22 -0
  137. alchemy/types/functions_v1list_templates_request.py +5 -0
  138. alchemy/types/functions_v1list_templates_response.py +20 -0
  139. alchemy/types/functions_v1network.py +5 -0
  140. alchemy/types/functions_v1pagination_request.py +31 -0
  141. alchemy/types/functions_v1pagination_response.py +33 -0
  142. alchemy/types/functions_v1resources.py +28 -0
  143. alchemy/types/functions_v1runtime.py +59 -0
  144. alchemy/types/functions_v1runtime_starters.py +29 -0
  145. alchemy/types/functions_v1source.py +31 -0
  146. alchemy/types/functions_v1source_file.py +28 -0
  147. alchemy/types/functions_v1source_layer.py +27 -0
  148. alchemy/types/functions_v1source_limits.py +30 -0
  149. alchemy/types/functions_v1start_kind.py +8 -0
  150. alchemy/types/functions_v1tail_invocations_request.py +32 -0
  151. alchemy/types/functions_v1tail_invocations_response.py +34 -0
  152. alchemy/types/functions_v1template.py +94 -0
  153. alchemy/types/functions_v1template_source.py +27 -0
  154. alchemy/types/functions_v1update_function_response.py +20 -0
  155. alchemy/types/google_protobuf_list_value.py +10 -0
  156. alchemy/types/google_protobuf_null_value.py +5 -0
  157. alchemy/types/google_protobuf_struct.py +10 -0
  158. alchemy/types/google_protobuf_value.py +5 -0
  159. alchemy/types/metrics_v1aggregate_row.py +24 -0
  160. alchemy/types/metrics_v1get_queue_response.py +25 -0
  161. alchemy/types/metrics_v1metric.py +16 -0
  162. alchemy/types/metrics_v1metric_dimension.py +14 -0
  163. alchemy/types/metrics_v1metric_filter.py +26 -0
  164. alchemy/types/metrics_v1metric_granularity.py +13 -0
  165. alchemy/types/metrics_v1query_aggregate_response.py +20 -0
  166. alchemy/types/metrics_v1query_timeseries_response.py +20 -0
  167. alchemy/types/metrics_v1timeseries.py +28 -0
  168. alchemy/types/metrics_v1timeseries_point.py +28 -0
  169. alchemy_python-0.1.0.dist-info/METADATA +196 -0
  170. alchemy_python-0.1.0.dist-info/RECORD +172 -0
  171. alchemy_python-0.1.0.dist-info/WHEEL +4 -0
  172. alchemy_python-0.1.0.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,18 @@
1
+ {
2
+ "cliVersion": "5.139.2",
3
+ "generatorName": "fernapi/fern-python-sdk",
4
+ "generatorVersion": "5.33.0",
5
+ "generatorConfig": {
6
+ "package_name": "alchemy",
7
+ "client": {
8
+ "class_name": "Alchemy"
9
+ },
10
+ "inline_request_params": true,
11
+ "optional_auth": true,
12
+ "default_max_retries": 0
13
+ },
14
+ "originGitCommit": "88f39e07e36992c190dfae7ce81c06a5d57e0712",
15
+ "originGitCommitIsDirty": false,
16
+ "invokedBy": "ci",
17
+ "ciProvider": "github"
18
+ }
@@ -0,0 +1,125 @@
1
+ # Contributing
2
+
3
+ Thanks for your interest in contributing to this SDK! This document provides guidelines for contributing to the project.
4
+
5
+ ## Getting Started
6
+
7
+ ### Prerequisites
8
+
9
+ - Python 3.9+
10
+ - pip
11
+ - poetry
12
+
13
+ ### Installation
14
+
15
+ Install the project dependencies:
16
+
17
+ ```bash
18
+ poetry install
19
+ ```
20
+
21
+ ### Building
22
+
23
+ Build the project:
24
+
25
+ ```bash
26
+ poetry build
27
+ ```
28
+
29
+ ### Testing
30
+
31
+ Run the test suite:
32
+
33
+ ```bash
34
+ poetry run pytest
35
+ ```
36
+
37
+ ### Linting and Formatting
38
+
39
+ Check code style:
40
+
41
+ ```bash
42
+ poetry run ruff check .
43
+ poetry run ruff format .
44
+ ```
45
+
46
+ ### Type Checking
47
+
48
+ Run the type checker:
49
+
50
+ ```bash
51
+ poetry run mypy .
52
+ ```
53
+
54
+ ## About Generated Code
55
+
56
+ **Important**: Most files in this SDK are automatically generated by [Fern](https://buildwithfern.com) from the API definition. Direct modifications to generated files will be overwritten the next time the SDK is generated.
57
+
58
+ ### Generated Files
59
+
60
+ The following directories contain generated code:
61
+ - `src/` - API client classes and types
62
+ - Most Python files in the project
63
+
64
+ ### How to Customize
65
+
66
+ If you need to customize the SDK, you have two options:
67
+
68
+ #### Option 1: Use `.fernignore`
69
+
70
+ For custom code that should persist across SDK regenerations:
71
+
72
+ 1. Create a `.fernignore` file in the project root
73
+ 2. Add file patterns for files you want to preserve (similar to `.gitignore` syntax)
74
+ 3. Add your custom code to those files
75
+
76
+ Files listed in `.fernignore` will not be overwritten when the SDK is regenerated.
77
+
78
+ For more information, see the [Fern documentation on custom code](https://buildwithfern.com/learn/sdks/overview/custom-code).
79
+
80
+ #### Option 2: Contribute to the Generator
81
+
82
+ If you want to change how code is generated for all users of this SDK:
83
+
84
+ 1. The Python SDK generator lives in the [Fern repository](https://github.com/fern-api/fern)
85
+ 2. Generator code is located at `generators/python-v2/`
86
+ 3. Follow the [Fern contributing guidelines](https://github.com/fern-api/fern/blob/main/CONTRIBUTING.md)
87
+ 4. Submit a pull request with your changes to the generator
88
+
89
+ This approach is best for:
90
+ - Bug fixes in generated code
91
+ - New features that would benefit all users
92
+ - Improvements to code generation patterns
93
+
94
+ ## Making Changes
95
+
96
+ ### Workflow
97
+
98
+ 1. Create a new branch for your changes
99
+ 2. Make your modifications
100
+ 3. Run tests to ensure nothing breaks: `poetry run pytest`
101
+ 4. Run linting and formatting: `poetry run ruff check .` and `poetry run ruff format .`
102
+ 5. Run type checking: `poetry run mypy .`
103
+ 6. Build the project: `poetry build`
104
+ 7. Commit your changes with a clear commit message
105
+ 8. Push your branch and create a pull request
106
+
107
+ ### Commit Messages
108
+
109
+ Write clear, descriptive commit messages that explain what changed and why.
110
+
111
+ ### Code Style
112
+
113
+ This project uses automated code formatting and linting. Run `poetry run ruff format .` and `poetry run ruff check .` before committing to ensure your code meets the project's style guidelines.
114
+
115
+ ## Questions or Issues?
116
+
117
+ If you have questions or run into issues:
118
+
119
+ 1. Check the [Fern documentation](https://buildwithfern.com)
120
+ 2. Search existing [GitHub issues](https://github.com/fern-api/fern/issues)
121
+ 3. Open a new issue if your question hasn't been addressed
122
+
123
+ ## License
124
+
125
+ By contributing to this project, you agree that your contributions will be licensed under the same license as the project.
alchemy/__init__.py ADDED
@@ -0,0 +1,380 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ import typing
6
+ from importlib import import_module
7
+
8
+ if typing.TYPE_CHECKING:
9
+ from .types import (
10
+ AuthV1AcceptInviteResponse,
11
+ AuthV1CreateServiceAccountResponse,
12
+ AuthV1GetAuthConfigRequest,
13
+ AuthV1GetAuthConfigResponse,
14
+ AuthV1GetSessionRequest,
15
+ AuthV1GetSessionResponse,
16
+ AuthV1GetTokenResponse,
17
+ AuthV1InviteMemberResponse,
18
+ AuthV1ListMembersRequest,
19
+ AuthV1ListMembersResponse,
20
+ AuthV1ListServiceAccountsRequest,
21
+ AuthV1ListServiceAccountsResponse,
22
+ AuthV1LoginResponse,
23
+ AuthV1LogoutRequest,
24
+ AuthV1LogoutResponse,
25
+ AuthV1Member,
26
+ AuthV1RegisterResponse,
27
+ AuthV1RemoveMemberResponse,
28
+ AuthV1RemoveServiceAccountResponse,
29
+ AuthV1Role,
30
+ AuthV1RotateServiceAccountSecretResponse,
31
+ AuthV1ServiceAccount,
32
+ AuthV1SetMemberRoleResponse,
33
+ ConnectError,
34
+ ConnectErrorCode,
35
+ ConnectErrorDetailsAny,
36
+ ConnectProtocolVersion,
37
+ ConnectTimeoutHeader,
38
+ FunctionsV1ArrowContract,
39
+ FunctionsV1Contract,
40
+ FunctionsV1ContractArrow,
41
+ FunctionsV1ContractJsonSchema,
42
+ FunctionsV1ContractViolation,
43
+ FunctionsV1CreateFunctionResponse,
44
+ FunctionsV1CreateFunctionVersionResponse,
45
+ FunctionsV1DeleteFunctionResponse,
46
+ FunctionsV1Function,
47
+ FunctionsV1FunctionError,
48
+ FunctionsV1FunctionErrorKind,
49
+ FunctionsV1FunctionSpec,
50
+ FunctionsV1FunctionVersion,
51
+ FunctionsV1FunctionVersionStatus,
52
+ FunctionsV1GetFunctionResponse,
53
+ FunctionsV1GetFunctionVersionResponse,
54
+ FunctionsV1GetHostRequest,
55
+ FunctionsV1GetHostResponse,
56
+ FunctionsV1GetInvocationLogsRequest,
57
+ FunctionsV1GetInvocationLogsResponse,
58
+ FunctionsV1GetInvocationResponse,
59
+ FunctionsV1GetVersionRequest,
60
+ FunctionsV1GetVersionResponse,
61
+ FunctionsV1Host,
62
+ FunctionsV1Instance,
63
+ FunctionsV1InstanceStatus,
64
+ FunctionsV1Invocation,
65
+ FunctionsV1InvocationProtocol,
66
+ FunctionsV1InvocationStats,
67
+ FunctionsV1InvocationStatus,
68
+ FunctionsV1InvokeAsyncResponse,
69
+ FunctionsV1InvokeResponse,
70
+ FunctionsV1InvokeResponseError,
71
+ FunctionsV1InvokeResponseOutput,
72
+ FunctionsV1JsonSchemaContract,
73
+ FunctionsV1ListFunctionVersionsResponse,
74
+ FunctionsV1ListFunctionsResponse,
75
+ FunctionsV1ListHostsRequest,
76
+ FunctionsV1ListHostsResponse,
77
+ FunctionsV1ListInstancesResponse,
78
+ FunctionsV1ListInvocationsResponse,
79
+ FunctionsV1ListRuntimesRequest,
80
+ FunctionsV1ListRuntimesResponse,
81
+ FunctionsV1ListTemplatesRequest,
82
+ FunctionsV1ListTemplatesResponse,
83
+ FunctionsV1Network,
84
+ FunctionsV1PaginationRequest,
85
+ FunctionsV1PaginationResponse,
86
+ FunctionsV1Resources,
87
+ FunctionsV1Runtime,
88
+ FunctionsV1RuntimeStarters,
89
+ FunctionsV1Source,
90
+ FunctionsV1SourceFile,
91
+ FunctionsV1SourceLayer,
92
+ FunctionsV1SourceLimits,
93
+ FunctionsV1StartKind,
94
+ FunctionsV1TailInvocationsRequest,
95
+ FunctionsV1TailInvocationsResponse,
96
+ FunctionsV1Template,
97
+ FunctionsV1TemplateSource,
98
+ FunctionsV1UpdateFunctionResponse,
99
+ GoogleProtobufListValue,
100
+ GoogleProtobufNullValue,
101
+ GoogleProtobufStruct,
102
+ GoogleProtobufValue,
103
+ MetricsV1AggregateRow,
104
+ MetricsV1GetQueueResponse,
105
+ MetricsV1Metric,
106
+ MetricsV1MetricDimension,
107
+ MetricsV1MetricFilter,
108
+ MetricsV1MetricGranularity,
109
+ MetricsV1QueryAggregateResponse,
110
+ MetricsV1QueryTimeseriesResponse,
111
+ MetricsV1Timeseries,
112
+ MetricsV1TimeseriesPoint,
113
+ )
114
+ from . import auth, function, host, instance, invocation, member, metrics, runtime, service_account, template
115
+ from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient
116
+ from .client import Alchemy, AsyncAlchemy
117
+ from .environment import AlchemyEnvironment
118
+ _dynamic_imports: typing.Dict[str, str] = {
119
+ "Alchemy": ".client",
120
+ "AlchemyEnvironment": ".environment",
121
+ "AsyncAlchemy": ".client",
122
+ "AuthV1AcceptInviteResponse": ".types",
123
+ "AuthV1CreateServiceAccountResponse": ".types",
124
+ "AuthV1GetAuthConfigRequest": ".types",
125
+ "AuthV1GetAuthConfigResponse": ".types",
126
+ "AuthV1GetSessionRequest": ".types",
127
+ "AuthV1GetSessionResponse": ".types",
128
+ "AuthV1GetTokenResponse": ".types",
129
+ "AuthV1InviteMemberResponse": ".types",
130
+ "AuthV1ListMembersRequest": ".types",
131
+ "AuthV1ListMembersResponse": ".types",
132
+ "AuthV1ListServiceAccountsRequest": ".types",
133
+ "AuthV1ListServiceAccountsResponse": ".types",
134
+ "AuthV1LoginResponse": ".types",
135
+ "AuthV1LogoutRequest": ".types",
136
+ "AuthV1LogoutResponse": ".types",
137
+ "AuthV1Member": ".types",
138
+ "AuthV1RegisterResponse": ".types",
139
+ "AuthV1RemoveMemberResponse": ".types",
140
+ "AuthV1RemoveServiceAccountResponse": ".types",
141
+ "AuthV1Role": ".types",
142
+ "AuthV1RotateServiceAccountSecretResponse": ".types",
143
+ "AuthV1ServiceAccount": ".types",
144
+ "AuthV1SetMemberRoleResponse": ".types",
145
+ "ConnectError": ".types",
146
+ "ConnectErrorCode": ".types",
147
+ "ConnectErrorDetailsAny": ".types",
148
+ "ConnectProtocolVersion": ".types",
149
+ "ConnectTimeoutHeader": ".types",
150
+ "DefaultAioHttpClient": "._default_clients",
151
+ "DefaultAsyncHttpxClient": "._default_clients",
152
+ "FunctionsV1ArrowContract": ".types",
153
+ "FunctionsV1Contract": ".types",
154
+ "FunctionsV1ContractArrow": ".types",
155
+ "FunctionsV1ContractJsonSchema": ".types",
156
+ "FunctionsV1ContractViolation": ".types",
157
+ "FunctionsV1CreateFunctionResponse": ".types",
158
+ "FunctionsV1CreateFunctionVersionResponse": ".types",
159
+ "FunctionsV1DeleteFunctionResponse": ".types",
160
+ "FunctionsV1Function": ".types",
161
+ "FunctionsV1FunctionError": ".types",
162
+ "FunctionsV1FunctionErrorKind": ".types",
163
+ "FunctionsV1FunctionSpec": ".types",
164
+ "FunctionsV1FunctionVersion": ".types",
165
+ "FunctionsV1FunctionVersionStatus": ".types",
166
+ "FunctionsV1GetFunctionResponse": ".types",
167
+ "FunctionsV1GetFunctionVersionResponse": ".types",
168
+ "FunctionsV1GetHostRequest": ".types",
169
+ "FunctionsV1GetHostResponse": ".types",
170
+ "FunctionsV1GetInvocationLogsRequest": ".types",
171
+ "FunctionsV1GetInvocationLogsResponse": ".types",
172
+ "FunctionsV1GetInvocationResponse": ".types",
173
+ "FunctionsV1GetVersionRequest": ".types",
174
+ "FunctionsV1GetVersionResponse": ".types",
175
+ "FunctionsV1Host": ".types",
176
+ "FunctionsV1Instance": ".types",
177
+ "FunctionsV1InstanceStatus": ".types",
178
+ "FunctionsV1Invocation": ".types",
179
+ "FunctionsV1InvocationProtocol": ".types",
180
+ "FunctionsV1InvocationStats": ".types",
181
+ "FunctionsV1InvocationStatus": ".types",
182
+ "FunctionsV1InvokeAsyncResponse": ".types",
183
+ "FunctionsV1InvokeResponse": ".types",
184
+ "FunctionsV1InvokeResponseError": ".types",
185
+ "FunctionsV1InvokeResponseOutput": ".types",
186
+ "FunctionsV1JsonSchemaContract": ".types",
187
+ "FunctionsV1ListFunctionVersionsResponse": ".types",
188
+ "FunctionsV1ListFunctionsResponse": ".types",
189
+ "FunctionsV1ListHostsRequest": ".types",
190
+ "FunctionsV1ListHostsResponse": ".types",
191
+ "FunctionsV1ListInstancesResponse": ".types",
192
+ "FunctionsV1ListInvocationsResponse": ".types",
193
+ "FunctionsV1ListRuntimesRequest": ".types",
194
+ "FunctionsV1ListRuntimesResponse": ".types",
195
+ "FunctionsV1ListTemplatesRequest": ".types",
196
+ "FunctionsV1ListTemplatesResponse": ".types",
197
+ "FunctionsV1Network": ".types",
198
+ "FunctionsV1PaginationRequest": ".types",
199
+ "FunctionsV1PaginationResponse": ".types",
200
+ "FunctionsV1Resources": ".types",
201
+ "FunctionsV1Runtime": ".types",
202
+ "FunctionsV1RuntimeStarters": ".types",
203
+ "FunctionsV1Source": ".types",
204
+ "FunctionsV1SourceFile": ".types",
205
+ "FunctionsV1SourceLayer": ".types",
206
+ "FunctionsV1SourceLimits": ".types",
207
+ "FunctionsV1StartKind": ".types",
208
+ "FunctionsV1TailInvocationsRequest": ".types",
209
+ "FunctionsV1TailInvocationsResponse": ".types",
210
+ "FunctionsV1Template": ".types",
211
+ "FunctionsV1TemplateSource": ".types",
212
+ "FunctionsV1UpdateFunctionResponse": ".types",
213
+ "GoogleProtobufListValue": ".types",
214
+ "GoogleProtobufNullValue": ".types",
215
+ "GoogleProtobufStruct": ".types",
216
+ "GoogleProtobufValue": ".types",
217
+ "MetricsV1AggregateRow": ".types",
218
+ "MetricsV1GetQueueResponse": ".types",
219
+ "MetricsV1Metric": ".types",
220
+ "MetricsV1MetricDimension": ".types",
221
+ "MetricsV1MetricFilter": ".types",
222
+ "MetricsV1MetricGranularity": ".types",
223
+ "MetricsV1QueryAggregateResponse": ".types",
224
+ "MetricsV1QueryTimeseriesResponse": ".types",
225
+ "MetricsV1Timeseries": ".types",
226
+ "MetricsV1TimeseriesPoint": ".types",
227
+ "auth": ".auth",
228
+ "function": ".function",
229
+ "host": ".host",
230
+ "instance": ".instance",
231
+ "invocation": ".invocation",
232
+ "member": ".member",
233
+ "metrics": ".metrics",
234
+ "runtime": ".runtime",
235
+ "service_account": ".service_account",
236
+ "template": ".template",
237
+ }
238
+
239
+
240
+ def __getattr__(attr_name: str) -> typing.Any:
241
+ module_name = _dynamic_imports.get(attr_name)
242
+ if module_name is None:
243
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
244
+ try:
245
+ module = import_module(module_name, __package__)
246
+ if module_name == f".{attr_name}":
247
+ return module
248
+ else:
249
+ return getattr(module, attr_name)
250
+ except ImportError as e:
251
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
252
+ except AttributeError as e:
253
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
254
+
255
+
256
+ def __dir__():
257
+ lazy_attrs = list(_dynamic_imports.keys())
258
+ return sorted(lazy_attrs)
259
+
260
+
261
+ __all__ = [
262
+ "Alchemy",
263
+ "AlchemyEnvironment",
264
+ "AsyncAlchemy",
265
+ "AuthV1AcceptInviteResponse",
266
+ "AuthV1CreateServiceAccountResponse",
267
+ "AuthV1GetAuthConfigRequest",
268
+ "AuthV1GetAuthConfigResponse",
269
+ "AuthV1GetSessionRequest",
270
+ "AuthV1GetSessionResponse",
271
+ "AuthV1GetTokenResponse",
272
+ "AuthV1InviteMemberResponse",
273
+ "AuthV1ListMembersRequest",
274
+ "AuthV1ListMembersResponse",
275
+ "AuthV1ListServiceAccountsRequest",
276
+ "AuthV1ListServiceAccountsResponse",
277
+ "AuthV1LoginResponse",
278
+ "AuthV1LogoutRequest",
279
+ "AuthV1LogoutResponse",
280
+ "AuthV1Member",
281
+ "AuthV1RegisterResponse",
282
+ "AuthV1RemoveMemberResponse",
283
+ "AuthV1RemoveServiceAccountResponse",
284
+ "AuthV1Role",
285
+ "AuthV1RotateServiceAccountSecretResponse",
286
+ "AuthV1ServiceAccount",
287
+ "AuthV1SetMemberRoleResponse",
288
+ "ConnectError",
289
+ "ConnectErrorCode",
290
+ "ConnectErrorDetailsAny",
291
+ "ConnectProtocolVersion",
292
+ "ConnectTimeoutHeader",
293
+ "DefaultAioHttpClient",
294
+ "DefaultAsyncHttpxClient",
295
+ "FunctionsV1ArrowContract",
296
+ "FunctionsV1Contract",
297
+ "FunctionsV1ContractArrow",
298
+ "FunctionsV1ContractJsonSchema",
299
+ "FunctionsV1ContractViolation",
300
+ "FunctionsV1CreateFunctionResponse",
301
+ "FunctionsV1CreateFunctionVersionResponse",
302
+ "FunctionsV1DeleteFunctionResponse",
303
+ "FunctionsV1Function",
304
+ "FunctionsV1FunctionError",
305
+ "FunctionsV1FunctionErrorKind",
306
+ "FunctionsV1FunctionSpec",
307
+ "FunctionsV1FunctionVersion",
308
+ "FunctionsV1FunctionVersionStatus",
309
+ "FunctionsV1GetFunctionResponse",
310
+ "FunctionsV1GetFunctionVersionResponse",
311
+ "FunctionsV1GetHostRequest",
312
+ "FunctionsV1GetHostResponse",
313
+ "FunctionsV1GetInvocationLogsRequest",
314
+ "FunctionsV1GetInvocationLogsResponse",
315
+ "FunctionsV1GetInvocationResponse",
316
+ "FunctionsV1GetVersionRequest",
317
+ "FunctionsV1GetVersionResponse",
318
+ "FunctionsV1Host",
319
+ "FunctionsV1Instance",
320
+ "FunctionsV1InstanceStatus",
321
+ "FunctionsV1Invocation",
322
+ "FunctionsV1InvocationProtocol",
323
+ "FunctionsV1InvocationStats",
324
+ "FunctionsV1InvocationStatus",
325
+ "FunctionsV1InvokeAsyncResponse",
326
+ "FunctionsV1InvokeResponse",
327
+ "FunctionsV1InvokeResponseError",
328
+ "FunctionsV1InvokeResponseOutput",
329
+ "FunctionsV1JsonSchemaContract",
330
+ "FunctionsV1ListFunctionVersionsResponse",
331
+ "FunctionsV1ListFunctionsResponse",
332
+ "FunctionsV1ListHostsRequest",
333
+ "FunctionsV1ListHostsResponse",
334
+ "FunctionsV1ListInstancesResponse",
335
+ "FunctionsV1ListInvocationsResponse",
336
+ "FunctionsV1ListRuntimesRequest",
337
+ "FunctionsV1ListRuntimesResponse",
338
+ "FunctionsV1ListTemplatesRequest",
339
+ "FunctionsV1ListTemplatesResponse",
340
+ "FunctionsV1Network",
341
+ "FunctionsV1PaginationRequest",
342
+ "FunctionsV1PaginationResponse",
343
+ "FunctionsV1Resources",
344
+ "FunctionsV1Runtime",
345
+ "FunctionsV1RuntimeStarters",
346
+ "FunctionsV1Source",
347
+ "FunctionsV1SourceFile",
348
+ "FunctionsV1SourceLayer",
349
+ "FunctionsV1SourceLimits",
350
+ "FunctionsV1StartKind",
351
+ "FunctionsV1TailInvocationsRequest",
352
+ "FunctionsV1TailInvocationsResponse",
353
+ "FunctionsV1Template",
354
+ "FunctionsV1TemplateSource",
355
+ "FunctionsV1UpdateFunctionResponse",
356
+ "GoogleProtobufListValue",
357
+ "GoogleProtobufNullValue",
358
+ "GoogleProtobufStruct",
359
+ "GoogleProtobufValue",
360
+ "MetricsV1AggregateRow",
361
+ "MetricsV1GetQueueResponse",
362
+ "MetricsV1Metric",
363
+ "MetricsV1MetricDimension",
364
+ "MetricsV1MetricFilter",
365
+ "MetricsV1MetricGranularity",
366
+ "MetricsV1QueryAggregateResponse",
367
+ "MetricsV1QueryTimeseriesResponse",
368
+ "MetricsV1Timeseries",
369
+ "MetricsV1TimeseriesPoint",
370
+ "auth",
371
+ "function",
372
+ "host",
373
+ "instance",
374
+ "invocation",
375
+ "member",
376
+ "metrics",
377
+ "runtime",
378
+ "service_account",
379
+ "template",
380
+ ]
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import httpx
6
+
7
+ SDK_DEFAULT_TIMEOUT = 60
8
+
9
+ try:
10
+ import httpx_aiohttp # type: ignore[import-not-found]
11
+ except ImportError:
12
+
13
+ class DefaultAioHttpClient(httpx.AsyncClient): # type: ignore
14
+ def __init__(self, **kwargs: typing.Any) -> None:
15
+ raise RuntimeError("To use the aiohttp client, install the aiohttp extra: pip install alchemy[aiohttp]")
16
+
17
+ else:
18
+
19
+ class DefaultAioHttpClient(httpx_aiohttp.HttpxAiohttpClient): # type: ignore
20
+ def __init__(self, **kwargs: typing.Any) -> None:
21
+ kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
22
+ kwargs.setdefault("follow_redirects", True)
23
+ super().__init__(**kwargs)
24
+
25
+
26
+ class DefaultAsyncHttpxClient(httpx.AsyncClient):
27
+ def __init__(self, **kwargs: typing.Any) -> None:
28
+ kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
29
+ kwargs.setdefault("follow_redirects", True)
30
+ super().__init__(**kwargs)
@@ -0,0 +1,4 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+