murf 1.0.1__py3-none-any.whl → 1.1.1__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.
Potentially problematic release.
This version of murf might be problematic. Click here for more details.
- murf/__init__.py +28 -1
- murf/base_client.py +4 -0
- murf/client.py +3 -1
- murf/core/client_wrapper.py +1 -1
- murf/dubbing/__init__.py +14 -0
- murf/dubbing/client.py +26 -0
- murf/dubbing/jobs/__init__.py +5 -0
- murf/dubbing/jobs/client.py +712 -0
- murf/dubbing/jobs/types/__init__.py +6 -0
- murf/dubbing/jobs/types/jobs_create_request_priority.py +5 -0
- murf/dubbing/jobs/types/jobs_create_with_project_id_request_priority.py +5 -0
- murf/dubbing/languages/__init__.py +2 -0
- murf/dubbing/languages/client.py +369 -0
- murf/dubbing/projects/__init__.py +5 -0
- murf/dubbing/projects/client.py +682 -0
- murf/dubbing/projects/types/__init__.py +5 -0
- murf/dubbing/projects/types/api_create_project_request_dubbing_type.py +5 -0
- murf/dubbing_client.py +120 -0
- murf/types/__init__.py +24 -0
- murf/types/api_job_response.py +53 -0
- murf/types/api_job_response_dubbing_type.py +5 -0
- murf/types/api_job_response_priority.py +5 -0
- murf/types/api_project_response.py +44 -0
- murf/types/api_project_response_dubbing_type.py +5 -0
- murf/types/dub_api_detail_response.py +23 -0
- murf/types/dub_job_status_response.py +39 -0
- murf/types/form_data_content_disposition.py +31 -0
- murf/types/group_api_project_response.py +24 -0
- murf/types/locale_response.py +25 -0
- murf/types/locale_response_supports_item.py +5 -0
- murf/types/source_locale_response.py +20 -0
- {murf-1.0.1.dist-info → murf-1.1.1.dist-info}/METADATA +65 -17
- murf-1.1.1.dist-info/RECORD +70 -0
- murf-1.0.1.dist-info/RECORD +0 -44
- {murf-1.0.1.dist-info → murf-1.1.1.dist-info}/LICENSE +0 -0
- {murf-1.0.1.dist-info → murf-1.1.1.dist-info}/WHEEL +0 -0
murf/__init__.py
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from .types import (
|
|
4
|
+
ApiJobResponse,
|
|
5
|
+
ApiJobResponseDubbingType,
|
|
6
|
+
ApiJobResponsePriority,
|
|
7
|
+
ApiProjectResponse,
|
|
8
|
+
ApiProjectResponseDubbingType,
|
|
4
9
|
ApiVoice,
|
|
5
10
|
ApiVoiceGender,
|
|
6
11
|
AuthTokenResponse,
|
|
12
|
+
DubApiDetailResponse,
|
|
13
|
+
DubJobStatusResponse,
|
|
14
|
+
FormDataContentDisposition,
|
|
7
15
|
GenerateSpeechResponse,
|
|
16
|
+
GroupApiProjectResponse,
|
|
17
|
+
LocaleResponse,
|
|
18
|
+
LocaleResponseSupportsItem,
|
|
8
19
|
PronunciationDetail,
|
|
9
20
|
PronunciationDetailType,
|
|
21
|
+
SourceLocaleResponse,
|
|
10
22
|
StyleDetails,
|
|
11
23
|
WordDuration,
|
|
12
24
|
)
|
|
@@ -18,32 +30,47 @@ from .errors import (
|
|
|
18
30
|
ServiceUnavailableError,
|
|
19
31
|
UnauthorizedError,
|
|
20
32
|
)
|
|
21
|
-
from . import auth, text_to_speech
|
|
33
|
+
from . import auth, dubbing, text_to_speech
|
|
22
34
|
from .client import AsyncMurf, Murf
|
|
35
|
+
from .dubbing_client import MurfDub
|
|
23
36
|
from .environment import MurfEnvironment
|
|
24
37
|
from .text_to_speech import GenerateSpeechRequestModelVersion
|
|
25
38
|
from .version import __version__
|
|
26
39
|
|
|
27
40
|
__all__ = [
|
|
41
|
+
"ApiJobResponse",
|
|
42
|
+
"ApiJobResponseDubbingType",
|
|
43
|
+
"ApiJobResponsePriority",
|
|
44
|
+
"ApiProjectResponse",
|
|
45
|
+
"ApiProjectResponseDubbingType",
|
|
28
46
|
"ApiVoice",
|
|
29
47
|
"ApiVoiceGender",
|
|
30
48
|
"AsyncMurf",
|
|
31
49
|
"AuthTokenResponse",
|
|
32
50
|
"BadRequestError",
|
|
51
|
+
"DubApiDetailResponse",
|
|
52
|
+
"DubJobStatusResponse",
|
|
33
53
|
"ForbiddenError",
|
|
54
|
+
"FormDataContentDisposition",
|
|
34
55
|
"GenerateSpeechRequestModelVersion",
|
|
35
56
|
"GenerateSpeechResponse",
|
|
57
|
+
"GroupApiProjectResponse",
|
|
36
58
|
"InternalServerError",
|
|
59
|
+
"LocaleResponse",
|
|
60
|
+
"LocaleResponseSupportsItem",
|
|
37
61
|
"Murf",
|
|
62
|
+
"MurfDub",
|
|
38
63
|
"MurfEnvironment",
|
|
39
64
|
"PaymentRequiredError",
|
|
40
65
|
"PronunciationDetail",
|
|
41
66
|
"PronunciationDetailType",
|
|
42
67
|
"ServiceUnavailableError",
|
|
68
|
+
"SourceLocaleResponse",
|
|
43
69
|
"StyleDetails",
|
|
44
70
|
"UnauthorizedError",
|
|
45
71
|
"WordDuration",
|
|
46
72
|
"__version__",
|
|
47
73
|
"auth",
|
|
74
|
+
"dubbing",
|
|
48
75
|
"text_to_speech",
|
|
49
76
|
]
|
murf/base_client.py
CHANGED
|
@@ -6,9 +6,11 @@ import httpx
|
|
|
6
6
|
from .core.client_wrapper import SyncClientWrapper
|
|
7
7
|
from .auth.client import AuthClient
|
|
8
8
|
from .text_to_speech.client import TextToSpeechClient
|
|
9
|
+
from .dubbing.client import DubbingClient
|
|
9
10
|
from .core.client_wrapper import AsyncClientWrapper
|
|
10
11
|
from .auth.client import AsyncAuthClient
|
|
11
12
|
from .text_to_speech.client import AsyncTextToSpeechClient
|
|
13
|
+
from .dubbing.client import AsyncDubbingClient
|
|
12
14
|
|
|
13
15
|
|
|
14
16
|
class BaseClient:
|
|
@@ -71,6 +73,7 @@ class BaseClient:
|
|
|
71
73
|
)
|
|
72
74
|
self.auth = AuthClient(client_wrapper=self._client_wrapper)
|
|
73
75
|
self.text_to_speech = TextToSpeechClient(client_wrapper=self._client_wrapper)
|
|
76
|
+
self.dubbing = DubbingClient(client_wrapper=self._client_wrapper)
|
|
74
77
|
|
|
75
78
|
|
|
76
79
|
class AsyncBaseClient:
|
|
@@ -133,6 +136,7 @@ class AsyncBaseClient:
|
|
|
133
136
|
)
|
|
134
137
|
self.auth = AsyncAuthClient(client_wrapper=self._client_wrapper)
|
|
135
138
|
self.text_to_speech = AsyncTextToSpeechClient(client_wrapper=self._client_wrapper)
|
|
139
|
+
self.dubbing = AsyncDubbingClient(client_wrapper=self._client_wrapper)
|
|
136
140
|
|
|
137
141
|
|
|
138
142
|
def _get_base_url(*, base_url: typing.Optional[str] = None, environment: MurfEnvironment) -> str:
|
murf/client.py
CHANGED
|
@@ -59,6 +59,7 @@ class Murf(BaseClient):
|
|
|
59
59
|
follow_redirects=follow_redirects,
|
|
60
60
|
httpx_client=httpx_client
|
|
61
61
|
)
|
|
62
|
+
self.dubbing = None # type: ignore
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
class AsyncMurf(AsyncBaseClient):
|
|
@@ -115,4 +116,5 @@ class AsyncMurf(AsyncBaseClient):
|
|
|
115
116
|
timeout=timeout,
|
|
116
117
|
follow_redirects=follow_redirects,
|
|
117
118
|
httpx_client=httpx_client
|
|
118
|
-
)
|
|
119
|
+
)
|
|
120
|
+
self.dubbing = None # type: ignore
|
murf/core/client_wrapper.py
CHANGED
|
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
17
|
"X-Fern-Language": "Python",
|
|
18
18
|
"X-Fern-SDK-Name": "murf",
|
|
19
|
-
"X-Fern-SDK-Version": "1.
|
|
19
|
+
"X-Fern-SDK-Version": "1.1.1",
|
|
20
20
|
}
|
|
21
21
|
if self._api_key is not None:
|
|
22
22
|
headers["api-key"] = self._api_key
|
murf/dubbing/__init__.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from . import jobs, languages, projects
|
|
4
|
+
from .jobs import JobsCreateRequestPriority, JobsCreateWithProjectIdRequestPriority
|
|
5
|
+
from .projects import ApiCreateProjectRequestDubbingType
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"ApiCreateProjectRequestDubbingType",
|
|
9
|
+
"JobsCreateRequestPriority",
|
|
10
|
+
"JobsCreateWithProjectIdRequestPriority",
|
|
11
|
+
"jobs",
|
|
12
|
+
"languages",
|
|
13
|
+
"projects",
|
|
14
|
+
]
|
murf/dubbing/client.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.client_wrapper import SyncClientWrapper
|
|
4
|
+
from .languages.client import LanguagesClient
|
|
5
|
+
from .jobs.client import JobsClient
|
|
6
|
+
from .projects.client import ProjectsClient
|
|
7
|
+
from ..core.client_wrapper import AsyncClientWrapper
|
|
8
|
+
from .languages.client import AsyncLanguagesClient
|
|
9
|
+
from .jobs.client import AsyncJobsClient
|
|
10
|
+
from .projects.client import AsyncProjectsClient
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DubbingClient:
|
|
14
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
15
|
+
self._client_wrapper = client_wrapper
|
|
16
|
+
self.languages = LanguagesClient(client_wrapper=self._client_wrapper)
|
|
17
|
+
self.jobs = JobsClient(client_wrapper=self._client_wrapper)
|
|
18
|
+
self.projects = ProjectsClient(client_wrapper=self._client_wrapper)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AsyncDubbingClient:
|
|
22
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
23
|
+
self._client_wrapper = client_wrapper
|
|
24
|
+
self.languages = AsyncLanguagesClient(client_wrapper=self._client_wrapper)
|
|
25
|
+
self.jobs = AsyncJobsClient(client_wrapper=self._client_wrapper)
|
|
26
|
+
self.projects = AsyncProjectsClient(client_wrapper=self._client_wrapper)
|