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
from .base_clientimportBaseClient, AsyncBaseClient
2
+
from .environmentimportMurfEnvironment
3
+
importtyping
4
+
importos
5
+
importhttpx
6
+
7
+
classMurfDub(BaseClient):
8
+
"""
9
+
Use this class to access the different functions within the SDK. You can instantiate any number of clients with different configuration that will propagate to these functions.
10
+
11
+
Parameters
12
+
----------
13
+
base_url : typing.Optional[str]
14
+
The base url to use for requests from the client.
15
+
16
+
environment : MurfEnvironment
17
+
The environment to use for requests from the client. from .environment import MurfEnvironment
18
+
19
+
20
+
21
+
Defaults to MurfEnvironment.DEFAULT
22
+
23
+
24
+
25
+
api_key : typing.Optional[str]
26
+
timeout : typing.Optional[float]
27
+
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 this default is not enforced.
28
+
29
+
follow_redirects : typing.Optional[bool]
30
+
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
31
+
32
+
httpx_client : typing.Optional[httpx.Client]
33
+
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 propagate to these functions.
68
+
69
+
Parameters
70
+
----------
71
+
base_url : typing.Optional[str]
72
+
The base url to use for requests from the client.
73
+
74
+
environment : MurfEnvironment
75
+
The environment to use for requests from the client. from .environment import MurfEnvironment
76
+
77
+
78
+
79
+
Defaults to MurfEnvironment.DEFAULT
80
+
81
+
82
+
83
+
api_key : typing.Optional[str]
84
+
timeout : typing.Optional[float]
85
+
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 this default is not enforced.
86
+
87
+
follow_redirects : typing.Optional[bool]
88
+
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
89
+
90
+
httpx_client : typing.Optional[httpx.AsyncClient]
91
+
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