Skip to content

Commit 25a2d85

Browse files
Merge pull request #175 from dvonthenen/restructure-project-part5
Restructure Python v3 (Part 5) - Rename Files to Remove Redundancy
2 parents b0d5ae3 + f665469 commit 25a2d85

File tree

17 files changed

+24
-20
lines changed

17 files changed

+24
-20
lines changed

deepgram/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
__version__ = '0.0.0'
33

44
# entry point for the deepgram python sdk
5-
from .deepgram_client import DeepgramClient
6-
from .deepgram_client_options import DeepgramClientOptions
5+
from .client import DeepgramClient
6+
from .options import DeepgramClientOptions
77
from .errors import DeepgramError, DeepgramApiError, DeepgramUnknownApiError, DeepgramUnknownError
88

99
# live
10-
from .clients.live.transcription_options import LiveOptions
10+
from .clients.live.options import LiveOptions
1111
from .clients.live.enums import LiveTranscriptionEvents
1212

1313
# prerecorded
14-
from .clients.prerecorded.transcription_options import PrerecordedOptions
14+
from .clients.prerecorded.options import PrerecordedOptions
1515

1616
# manage
17-
from .clients.manage.manage_client import ManageClient
17+
from .clients.manage.client import ManageClient

deepgram/deepgram_client.py renamed to deepgram/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
from urllib.parse import urlparse, urlunparse, parse_qs, urlencode
33
from typing import Optional
44

5-
from .deepgram_client_options import DeepgramClientOptions
5+
from .options import DeepgramClientOptions
66
from .errors import DeepgramError
77

88
from .clients.listen import ListenClient
9-
from .clients.manage.manage_client import ManageClient
10-
from .clients.onprem.onprem_client import OnPremClient
9+
from .clients.manage.client import ManageClient
10+
from .clients.onprem.client import OnPremClient
1111

1212
class DeepgramClient:
1313
"""
File renamed without changes.

deepgram/clients/listen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from .prerecorded.prerecorded_client import PreRecordedClient
2-
from .live.live_client import LiveClient
1+
from .prerecorded.client import PreRecordedClient
2+
from .live.client import LiveClient
33
from typing import Dict, Any, Optional
44

55

File renamed without changes.
File renamed without changes.

deepgram/clients/manage/manage_client.py renamed to deepgram/clients/manage/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .management import Project, ProjectsResponse, Message, ProjectOptions, KeysResponse, Key, KeyOptions, CreateKeyResponse, MembersResponse, ScopesResponse, ScopeOptions, InvitesResponse, InviteOptions, UsageRequestsResponse, UsageRequestOptions, UsageRequest, UsageSummaryOptions, UsageSummaryResponse, UsageFieldsResponse, UsageFieldsOptions, BalancesResponse, Balance
1+
from .response import Project, ProjectsResponse, Message, ProjectOptions, KeysResponse, Key, KeyOptions, CreateKeyResponse, MembersResponse, ScopesResponse, ScopeOptions, InvitesResponse, InviteOptions, UsageRequestsResponse, UsageRequestOptions, UsageRequest, UsageSummaryOptions, UsageSummaryResponse, UsageFieldsResponse, UsageFieldsOptions, BalancesResponse, Balance
22

3-
from ..abstract_restful_client import AbstractRestfulClient
3+
from ..abstract_client import AbstractRestfulClient
44

55
class ManageClient(AbstractRestfulClient):
66
"""
File renamed without changes.

deepgram/clients/onprem/onprem_client.py renamed to deepgram/clients/onprem/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from ..abstract_restful_client import AbstractRestfulClient
1+
from ..abstract_client import AbstractRestfulClient
22

33
class OnPremClient(AbstractRestfulClient):
44
"""

deepgram/clients/prerecorded/prerecorded_client.py renamed to deepgram/clients/prerecorded/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from ...errors import DeepgramError
2-
from ..abstract_restful_client import AbstractRestfulClient
2+
from ..abstract_client import AbstractRestfulClient
33

44
from .helpers import is_buffer_source, is_readstream_source, is_url_source
5-
from .prerecorded_source import UrlSource, FileSource
6-
from .transcription_options import PrerecordedOptions
7-
from .prerecorded_response import AsyncPrerecordedResponse, SyncPrerecordedResponse
5+
from .source import UrlSource, FileSource
6+
from .options import PrerecordedOptions
7+
from .response import AsyncPrerecordedResponse, SyncPrerecordedResponse
88

99
class PreRecordedClient(AbstractRestfulClient):
1010
"""

0 commit comments

Comments
 (0)