You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/polytomic/client.py
+63-8Lines changed: 63 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,8 @@
1
-
# This file was auto-generated by Fern from our API Definition.
1
+
# This file was auto-generated from our API Definition.
2
2
3
3
importtyping
4
4
5
5
importhttpx
6
-
importtyping_extensions
7
6
8
7
from .core.client_wrapperimportAsyncClientWrapper, SyncClientWrapper
9
8
from .environmentimportPolytomicEnvironment
@@ -21,21 +20,49 @@
21
20
22
21
23
22
classPolytomic:
23
+
"""
24
+
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propogate to these functions.
25
+
26
+
Parameters:
27
+
- base_url: typing.Optional[str]. The base url to use for requests from the client.
28
+
29
+
- environment: PolytomicEnvironment. The environment to use for requests from the client. from .environment import PolytomicEnvironment
- timeout: typing.Optional[float]. The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
38
+
39
+
- httpx_client: typing.Optional[httpx.Client]. The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propogate to these functions.
83
+
84
+
Parameters:
85
+
- base_url: typing.Optional[str]. The base url to use for requests from the client.
86
+
87
+
- environment: PolytomicEnvironment. The environment to use for requests from the client. from .environment import PolytomicEnvironment
- timeout: typing.Optional[float]. The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
96
+
97
+
- httpx_client: typing.Optional[httpx.AsyncClient]. The httpx client to use for making requests, a preconfigured client is used by default, however this is useful should you want to pass in any custom httpx configuration.
0 commit comments