-
Notifications
You must be signed in to change notification settings - Fork 114
Fix Import of Verboselogs Package Dependency #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Import of Verboselogs Package Dependency #417
Conversation
|
Warning Rate limit exceeded@dvonthenen has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 33 minutes and 11 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. WalkthroughThe changes primarily involve modifying import statements across various files in the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
Outside diff range and nitpick comments (1)
deepgram/client.py (1)
Line range hint
15-15: Remove unused imports or clarify their usage by adding them to__all__if they are intended for external use.- from .clients import TextSource, BufferSource, StreamSource, FileSource, UrlSource, Sentiment - from .clients import LiveClient, AsyncLiveClient - from .clients import LiveOptions, LiveTranscriptionEventsAlso applies to: 16-16, 17-17, 18-18, 19-19, 20-20, 27-27, 27-27, 29-29, 30-30
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (21)
- deepgram/init.py (1 hunks)
- deepgram/audio/microphone/constants.py (1 hunks)
- deepgram/audio/microphone/microphone.py (1 hunks)
- deepgram/client.py (1 hunks)
- deepgram/clients/analyze/v1/async_client.py (1 hunks)
- deepgram/clients/analyze/v1/client.py (1 hunks)
- deepgram/clients/analyze/v1/options.py (1 hunks)
- deepgram/clients/listen.py (1 hunks)
- deepgram/clients/live/v1/async_client.py (1 hunks)
- deepgram/clients/live/v1/client.py (1 hunks)
- deepgram/clients/manage/v1/async_client.py (1 hunks)
- deepgram/clients/manage/v1/client.py (1 hunks)
- deepgram/clients/prerecorded/v1/async_client.py (1 hunks)
- deepgram/clients/prerecorded/v1/client.py (1 hunks)
- deepgram/clients/read.py (1 hunks)
- deepgram/clients/selfhosted/v1/async_client.py (1 hunks)
- deepgram/clients/selfhosted/v1/client.py (1 hunks)
- deepgram/clients/speak/v1/async_client.py (1 hunks)
- deepgram/clients/speak/v1/client.py (1 hunks)
- deepgram/clients/speak/v1/options.py (1 hunks)
- deepgram/options.py (1 hunks)
Files skipped from review due to trivial changes (17)
- deepgram/audio/microphone/constants.py
- deepgram/audio/microphone/microphone.py
- deepgram/clients/analyze/v1/async_client.py
- deepgram/clients/analyze/v1/client.py
- deepgram/clients/listen.py
- deepgram/clients/live/v1/async_client.py
- deepgram/clients/manage/v1/async_client.py
- deepgram/clients/manage/v1/client.py
- deepgram/clients/prerecorded/v1/async_client.py
- deepgram/clients/prerecorded/v1/client.py
- deepgram/clients/read.py
- deepgram/clients/selfhosted/v1/async_client.py
- deepgram/clients/selfhosted/v1/client.py
- deepgram/clients/speak/v1/async_client.py
- deepgram/clients/speak/v1/client.py
- deepgram/clients/speak/v1/options.py
- deepgram/options.py
Additional context used
Ruff
deepgram/__init__.py
9-9:
from .utils import *used; unable to detect undefined names (F403)
10-10:
.client.Deepgramimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
10-10:
.client.DeepgramClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
11-11:
.client.DeepgramClientOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
11-11:
.client.ClientOptionsFromEnvimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
12-12:
.client.DeepgramApiKeyErrorimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
12-12:
.client.DeepgramModuleErrorimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
15-15:
.client.Listenimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
15-15:
.client.Readimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
19-19:
.client.TextSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
20-20:
.client.BufferSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
21-21:
.client.StreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
22-22:
.client.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
23-23:
.client.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
24-24:
.client.Sentimentimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
28-28:
.client.LiveTranscriptionEventsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
29-29:
.client.LiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
29-29:
.client.AsyncLiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
30-30:
.client.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
32-32:
.client.OpenResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
33-33:
.client.LiveResultResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
34-34:
.client.MetadataResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
35-35:
.client.SpeechStartedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
36-36:
.client.UtteranceEndResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
37-37:
.client.CloseResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
38-38:
.client.UnhandledResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
39-39:
.client.ErrorResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
43-43:
.client.PreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
43-43:
.client.AsyncPreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
45-45:
.client.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
46-46:
.client.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
47-47:
.client.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
50-50:
.client.AsyncPrerecordedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
51-51:
.client.PrerecordedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
52-52:
.client.SyncPrerecordedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
56-56:
.client.ReadClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
56-56:
.client.AsyncReadClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
57-57:
.client.AnalyzeClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
57-57:
.client.AsyncAnalyzeClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
59-59:
.client.AnalyzeOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
60-60:
.client.AnalyzeStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
61-61:
.client.AnalyzeSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
64-64:
.client.AsyncAnalyzeResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
65-65:
.client.AnalyzeResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
66-66:
.client.SyncAnalyzeResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
70-70:
.client.SpeakClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
70-70:
.client.AsyncSpeakClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
71-71:
.client.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
71-71:
.client.SpeakStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
71-71:
.client.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
72-72:
.client.SpeakResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
75-75:
.client.ManageClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
75-75:
.client.AsyncManageClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
77-77:
.client.ProjectOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
78-78:
.client.KeyOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
79-79:
.client.ScopeOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
80-80:
.client.InviteOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
81-81:
.client.UsageRequestOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
82-82:
.client.UsageSummaryOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
83-83:
.client.UsageFieldsOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
88-88:
.client.Messageimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
89-89:
.client.Projectimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
90-90:
.client.ProjectsResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
91-91:
.client.MembersResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
92-92:
.client.Keyimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
93-93:
.client.KeyResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
94-94:
.client.KeysResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
95-95:
.client.ScopesResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
96-96:
.client.InvitesResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
97-97:
.client.UsageRequestimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
98-98:
.client.UsageRequestsResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
99-99:
.client.UsageSummaryResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
100-100:
.client.UsageFieldsResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
101-101:
.client.Balanceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
102-102:
.client.BalancesResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
107-107:
.client.OnPremClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
108-108:
.client.AsyncOnPremClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
109-109:
.client.SelfHostedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
110-110:
.client.AsyncSelfHostedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
114-114:
.audio.Microphoneimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
116-116:
.audio.LOGGINGimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
117-117:
.audio.CHANNELSimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
118-118:
.audio.RATEimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
119-119:
.audio.CHUNKimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)deepgram/client.py
15-15:
.clients.TextSourceimported but unused (F401)Remove unused import
16-16:
.clients.BufferSourceimported but unused (F401)Remove unused import
17-17:
.clients.StreamSourceimported but unused (F401)Remove unused import
18-18:
.clients.FileSourceimported but unused (F401)Remove unused import
19-19:
.clients.UrlSourceimported but unused (F401)Remove unused import
20-20:
.clients.Sentimentimported but unused (F401)Remove unused import
27-27:
.clients.LiveClientimported but unused (F401)Remove unused import
27-27:
.clients.AsyncLiveClientimported but unused (F401)Remove unused import
29-29:
.clients.LiveOptionsimported but unused (F401)Remove unused import
30-30:
.clients.LiveTranscriptionEventsimported but unused (F401)Remove unused import
35-35:
.clients.OpenResponseimported but unused (F401)Remove unused import
36-36:
.clients.LiveResultResponseimported but unused (F401)Remove unused import
37-37:
.clients.MetadataResponseimported but unused (F401)Remove unused import
38-38:
.clients.SpeechStartedResponseimported but unused (F401)Remove unused import
39-39:
.clients.UtteranceEndResponseimported but unused (F401)Remove unused import
40-40:
.clients.CloseResponseimported but unused (F401)Remove unused import
41-41:
.clients.ErrorResponseimported but unused (F401)Remove unused import
42-42:
.clients.UnhandledResponseimported but unused (F401)Remove unused import
47-47:
.clients.PreRecordedClientimported but unused (F401)Remove unused import
48-48:
.clients.AsyncPreRecordedClientimported but unused (F401)Remove unused import
51-51:
.clients.PrerecordedOptionsimported but unused (F401)Remove unused import
52-52:
.clients.PreRecordedStreamSourceimported but unused (F401)Remove unused import
53-53:
.clients.PrerecordedSourceimported but unused (F401)Remove unused import
58-58:
.clients.AsyncPrerecordedResponseimported but unused (F401)Remove unused import
59-59:
.clients.PrerecordedResponseimported but unused (F401)Remove unused import
60-60:
.clients.SyncPrerecordedResponseimported but unused (F401)Remove unused import
64-64:
.clients.ReadClientimported but unused (F401)Remove unused import
64-64:
.clients.AsyncReadClientimported but unused (F401)Remove unused import
65-65:
.clients.AnalyzeClientimported but unused (F401)Remove unused import
65-65:
.clients.AsyncAnalyzeClientimported but unused (F401)Remove unused import
67-67:
.clients.AnalyzeOptionsimported but unused (F401)Remove unused import
68-68:
.clients.AnalyzeStreamSourceimported but unused (F401)Remove unused import
69-69:
.clients.AnalyzeSourceimported but unused (F401)Remove unused import
74-74:
.clients.AsyncAnalyzeResponseimported but unused (F401)Remove unused import
75-75:
.clients.AnalyzeResponseimported but unused (F401)Remove unused import
76-76:
.clients.SyncAnalyzeResponseimported but unused (F401)Remove unused import
80-80:
.clients.SpeakClientimported but unused (F401)Remove unused import
80-80:
.clients.AsyncSpeakClientimported but unused (F401)Remove unused import
81-81:
.clients.SpeakOptionsimported but unused (F401)Remove unused import:
.clients.SpeakOptions
82-82:
.clients.SpeakStreamSourceimported but unused (F401)Remove unused import
82-82:
.clients.SpeakSourceimported but unused (F401)Remove unused import
85-85:
.clients.SpeakResponseimported but unused (F401)Remove unused import:
.clients.SpeakResponse
88-88:
.clients.ManageClientimported but unused (F401)Remove unused import
88-88:
.clients.AsyncManageClientimported but unused (F401)Remove unused import
90-90:
.clients.ProjectOptionsimported but unused (F401)Remove unused import
91-91:
.clients.KeyOptionsimported but unused (F401)Remove unused import
92-92:
.clients.ScopeOptionsimported but unused (F401)Remove unused import
93-93:
.clients.InviteOptionsimported but unused (F401)Remove unused import
94-94:
.clients.UsageRequestOptionsimported but unused (F401)Remove unused import
95-95:
.clients.UsageSummaryOptionsimported but unused (F401)Remove unused import
96-96:
.clients.UsageFieldsOptionsimported but unused (F401)Remove unused import
101-101:
.clients.Messageimported but unused (F401)Remove unused import
102-102:
.clients.Projectimported but unused (F401)Remove unused import
103-103:
.clients.ProjectsResponseimported but unused (F401)Remove unused import
104-104:
.clients.MembersResponseimported but unused (F401)Remove unused import
105-105:
.clients.Keyimported but unused (F401)Remove unused import
106-106:
.clients.KeyResponseimported but unused (F401)Remove unused import
107-107:
.clients.KeysResponseimported but unused (F401)Remove unused import
108-108:
.clients.ScopesResponseimported but unused (F401)Remove unused import
109-109:
.clients.InvitesResponseimported but unused (F401)Remove unused import
110-110:
.clients.UsageRequestimported but unused (F401)Remove unused import
111-111:
.clients.UsageRequestsResponseimported but unused (F401)Remove unused import
112-112:
.clients.UsageSummaryResponseimported but unused (F401)Remove unused import
113-113:
.clients.UsageFieldsResponseimported but unused (F401)Remove unused import
114-114:
.clients.Balanceimported but unused (F401)Remove unused import
115-115:
.clients.BalancesResponseimported but unused (F401)Remove unused import
120-120:
.clients.OnPremClientimported but unused (F401)Remove unused import
121-121:
.clients.AsyncOnPremClientimported but unused (F401)Remove unused import
122-122:
.clients.SelfHostedClientimported but unused (F401)Remove unused import
123-123:
.clients.AsyncSelfHostedClientimported but unused (F401)Remove unused import
127-127:
.options.ClientOptionsFromEnvimported but unused (F401)Remove unused import:
.options.ClientOptionsFromEnv
128-128:
.errors.DeepgramApiKeyErrorimported but unused (F401)Remove unused import:
.errors.DeepgramApiKeyError
Additional comments not posted (2)
deepgram/clients/analyze/v1/options.py (1)
11-11: The change to a relative import path enhances modularity and maintainability. Good job!deepgram/client.py (1)
10-10: The change to a relative import path enhances modularity and maintainability. Good job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Outside diff range and nitpick comments (1)
deepgram/client.py (1)
Line range hint
15-15: Numerous imports in this file are flagged as unused. If these are intended for external use, consider adding them to__all__to clarify their purpose.- from .clients import ( - TextSource, BufferSource, StreamSource, FileSource, UrlSource, Sentiment, - Listen, Read, LiveClient, AsyncLiveClient, LiveOptions, LiveTranscriptionEvents, - OpenResponse, LiveResultResponse, MetadataResponse, SpeechStartedResponse, UtteranceEndResponse, CloseResponse, ErrorResponse, UnhandledResponse, - PreRecordedClient, AsyncPreRecordedClient, PrerecordedOptions, PreRecordedStreamSource, PrerecordedSource, - AsyncPrerecordedResponse, PrerecordedResponse, SyncPrerecordedResponse, - ReadClient, AsyncReadClient, AnalyzeClient, AsyncAnalyzeClient, AnalyzeOptions, AnalyzeStreamSource, AnalyzeSource, - AsyncAnalyzeResponse, AnalyzeResponse, SyncAnalyzeResponse, - SpeakClient, AsyncSpeakClient, SpeakOptions, SpeakStreamSource, SpeakSource, SpeakResponse, - ManageClient, AsyncManageClient, ProjectOptions, KeyOptions, ScopeOptions, InviteOptions, UsageRequestOptions, UsageSummaryOptions, UsageFieldsOptions, - Message, Project, ProjectsResponse, MembersResponse, Key, KeyResponse, KeysResponse, ScopesResponse, InvitesResponse, UsageRequest, UsageRequestsResponse, UsageSummaryResponse, UsageFieldsResponse, Balance, BalancesResponse, - OnPremClient, AsyncOnPremClient, SelfHostedClient, AsyncSelfHostedClient, - ClientOptionsFromEnv, DeepgramApiKeyError - )Also applies to: 16-16, 17-17, 18-18, 19-19, 20-20, 27-27, 27-27, 29-29, 30-30, 35-35, 36-36, 37-37, 38-38, 39-39, 40-40, 41-41, 42-42, 47-47, 48-48, 51-51, 52-52, 53-53, 58-58, 59-59, 60-60, 64-64, 64-64, 65-65, 65-65, 67-67, 68-68, 69-69, 74-74, 75-75, 76-76, 80-80, 80-80, 81-81, 82-82, 82-82, 85-85, 88-88, 88-88, 90-90, 91-91, 92-92, 93-93, 94-94, 95-95, 96-96, 101-101, 102-102, 103-103, 104-104, 105-105, 106-106, 107-107, 108-108, 109-109, 110-110, 111-111, 112-112, 113-113, 114-114, 115-115, 120-120, 121-121, 122-122, 123-123, 127-127, 128-128
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (21)
- deepgram/init.py (1 hunks)
- deepgram/audio/microphone/constants.py (1 hunks)
- deepgram/audio/microphone/microphone.py (1 hunks)
- deepgram/client.py (1 hunks)
- deepgram/clients/analyze/v1/async_client.py (1 hunks)
- deepgram/clients/analyze/v1/client.py (1 hunks)
- deepgram/clients/analyze/v1/options.py (1 hunks)
- deepgram/clients/listen.py (1 hunks)
- deepgram/clients/live/v1/async_client.py (1 hunks)
- deepgram/clients/live/v1/client.py (1 hunks)
- deepgram/clients/manage/v1/async_client.py (1 hunks)
- deepgram/clients/manage/v1/client.py (1 hunks)
- deepgram/clients/prerecorded/v1/async_client.py (1 hunks)
- deepgram/clients/prerecorded/v1/client.py (1 hunks)
- deepgram/clients/read.py (1 hunks)
- deepgram/clients/selfhosted/v1/async_client.py (1 hunks)
- deepgram/clients/selfhosted/v1/client.py (1 hunks)
- deepgram/clients/speak/v1/async_client.py (1 hunks)
- deepgram/clients/speak/v1/client.py (1 hunks)
- deepgram/clients/speak/v1/options.py (1 hunks)
- deepgram/options.py (1 hunks)
Files skipped from review as they are similar to previous changes (19)
- deepgram/audio/microphone/constants.py
- deepgram/audio/microphone/microphone.py
- deepgram/clients/analyze/v1/async_client.py
- deepgram/clients/analyze/v1/client.py
- deepgram/clients/analyze/v1/options.py
- deepgram/clients/listen.py
- deepgram/clients/live/v1/async_client.py
- deepgram/clients/live/v1/client.py
- deepgram/clients/manage/v1/async_client.py
- deepgram/clients/manage/v1/client.py
- deepgram/clients/prerecorded/v1/async_client.py
- deepgram/clients/prerecorded/v1/client.py
- deepgram/clients/read.py
- deepgram/clients/selfhosted/v1/async_client.py
- deepgram/clients/selfhosted/v1/client.py
- deepgram/clients/speak/v1/async_client.py
- deepgram/clients/speak/v1/client.py
- deepgram/clients/speak/v1/options.py
- deepgram/options.py
Additional context used
Learnings (1)
deepgram/__init__.py (1)
User: dvonthenen PR: deepgram/deepgram-python-sdk#417 File: deepgram/clients/live/v1/client.py:14-14 Timestamp: 2024-06-12T18:02:10.651Z Learning: Ignore suggestions to change import paths to local versions in test cases and examples as per user preference to use the actual `deepgram-sdk` package for testing.
Ruff
deepgram/__init__.py
9-9:
loggingimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
10-10:
from .utils.verboselogs import *used; unable to detect undefined names (F403)
11-11:
.client.Deepgramimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
11-11:
.client.DeepgramClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
12-12:
.client.DeepgramClientOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
12-12:
.client.ClientOptionsFromEnvimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
13-13:
.client.DeepgramApiKeyErrorimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
13-13:
.client.DeepgramModuleErrorimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
16-16:
.client.Listenimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
16-16:
.client.Readimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
20-20:
.client.TextSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
21-21:
.client.BufferSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
22-22:
.client.StreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
23-23:
.client.FileSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
24-24:
.client.UrlSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
25-25:
.client.Sentimentimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
29-29:
.client.LiveTranscriptionEventsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
30-30:
.client.LiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
30-30:
.client.AsyncLiveClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
31-31:
.client.LiveOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
33-33:
.client.OpenResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
34-34:
.client.LiveResultResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
35-35:
.client.MetadataResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
36-36:
.client.SpeechStartedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
37-37:
.client.UtteranceEndResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
38-38:
.client.CloseResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
39-39:
.client.UnhandledResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
40-40:
.client.ErrorResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
44-44:
.client.PreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
44-44:
.client.AsyncPreRecordedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
46-46:
.client.PrerecordedOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
47-47:
.client.PreRecordedStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
48-48:
.client.PrerecordedSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
51-51:
.client.AsyncPrerecordedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
52-52:
.client.PrerecordedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
53-53:
.client.SyncPrerecordedResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
57-57:
.client.ReadClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
57-57:
.client.AsyncReadClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
58-58:
.client.AnalyzeClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
58-58:
.client.AsyncAnalyzeClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
60-60:
.client.AnalyzeOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
61-61:
.client.AnalyzeStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
62-62:
.client.AnalyzeSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
65-65:
.client.AsyncAnalyzeResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
66-66:
.client.AnalyzeResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
67-67:
.client.SyncAnalyzeResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
71-71:
.client.SpeakClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
71-71:
.client.AsyncSpeakClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
72-72:
.client.SpeakOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
72-72:
.client.SpeakStreamSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
72-72:
.client.SpeakSourceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
73-73:
.client.SpeakResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
76-76:
.client.ManageClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
76-76:
.client.AsyncManageClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
78-78:
.client.ProjectOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
79-79:
.client.KeyOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
80-80:
.client.ScopeOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
81-81:
.client.InviteOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
82-82:
.client.UsageRequestOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
83-83:
.client.UsageSummaryOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
84-84:
.client.UsageFieldsOptionsimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
89-89:
.client.Messageimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
90-90:
.client.Projectimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
91-91:
.client.ProjectsResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
92-92:
.client.MembersResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
93-93:
.client.Keyimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
94-94:
.client.KeyResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
95-95:
.client.KeysResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
96-96:
.client.ScopesResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
97-97:
.client.InvitesResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
98-98:
.client.UsageRequestimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
99-99:
.client.UsageRequestsResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
100-100:
.client.UsageSummaryResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
101-101:
.client.UsageFieldsResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
102-102:
.client.Balanceimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
103-103:
.client.BalancesResponseimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
108-108:
.client.OnPremClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
109-109:
.client.AsyncOnPremClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
110-110:
.client.SelfHostedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
111-111:
.client.AsyncSelfHostedClientimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
115-115:
.audio.Microphoneimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
117-117:
.audio.LOGGINGimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
118-118:
.audio.CHANNELSimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
119-119:
.audio.RATEimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)
120-120:
.audio.CHUNKimported but unused; consider removing, adding to__all__, or using a redundant alias (F401)deepgram/client.py
15-15:
.clients.TextSourceimported but unused (F401)Remove unused import
16-16:
.clients.BufferSourceimported but unused (F401)Remove unused import
17-17:
.clients.StreamSourceimported but unused (F401)Remove unused import
18-18:
.clients.FileSourceimported but unused (F401)Remove unused import
19-19:
.clients.UrlSourceimported but unused (F401)Remove unused import
20-20:
.clients.Sentimentimported but unused (F401)Remove unused import
27-27:
.clients.LiveClientimported but unused (F401)Remove unused import
27-27:
.clients.AsyncLiveClientimported but unused (F401)Remove unused import
29-29:
.clients.LiveOptionsimported but unused (F401)Remove unused import
30-30:
.clients.LiveTranscriptionEventsimported but unused (F401)Remove unused import
35-35:
.clients.OpenResponseimported but unused (F401)Remove unused import
36-36:
.clients.LiveResultResponseimported but unused (F401)Remove unused import
37-37:
.clients.MetadataResponseimported but unused (F401)Remove unused import
38-38:
.clients.SpeechStartedResponseimported but unused (F401)Remove unused import
39-39:
.clients.UtteranceEndResponseimported but unused (F401)Remove unused import
40-40:
.clients.CloseResponseimported but unused (F401)Remove unused import
41-41:
.clients.ErrorResponseimported but unused (F401)Remove unused import
42-42:
.clients.UnhandledResponseimported but unused (F401)Remove unused import
47-47:
.clients.PreRecordedClientimported but unused (F401)Remove unused import
48-48:
.clients.AsyncPreRecordedClientimported but unused (F401)Remove unused import
51-51:
.clients.PrerecordedOptionsimported but unused (F401)Remove unused import
52-52:
.clients.PreRecordedStreamSourceimported but unused (F401)Remove unused import
53-53:
.clients.PrerecordedSourceimported but unused (F401)Remove unused import
58-58:
.clients.AsyncPrerecordedResponseimported but unused (F401)Remove unused import
59-59:
.clients.PrerecordedResponseimported but unused (F401)Remove unused import
60-60:
.clients.SyncPrerecordedResponseimported but unused (F401)Remove unused import
64-64:
.clients.ReadClientimported but unused (F401)Remove unused import
64-64:
.clients.AsyncReadClientimported but unused (F401)Remove unused import
65-65:
.clients.AnalyzeClientimported but unused (F401)Remove unused import
65-65:
.clients.AsyncAnalyzeClientimported but unused (F401)Remove unused import
67-67:
.clients.AnalyzeOptionsimported but unused (F401)Remove unused import
68-68:
.clients.AnalyzeStreamSourceimported but unused (F401)Remove unused import
69-69:
.clients.AnalyzeSourceimported but unused (F401)Remove unused import
74-74:
.clients.AsyncAnalyzeResponseimported but unused (F401)Remove unused import
75-75:
.clients.AnalyzeResponseimported but unused (F401)Remove unused import
76-76:
.clients.SyncAnalyzeResponseimported but unused (F401)Remove unused import
80-80:
.clients.SpeakClientimported but unused (F401)Remove unused import
80-80:
.clients.AsyncSpeakClientimported but unused (F401)Remove unused import
81-81:
.clients.SpeakOptionsimported but unused (F401)Remove unused import:
.clients.SpeakOptions
82-82:
.clients.SpeakStreamSourceimported but unused (F401)Remove unused import
82-82:
.clients.SpeakSourceimported but unused (F401)Remove unused import
85-85:
.clients.SpeakResponseimported but unused (F401)Remove unused import:
.clients.SpeakResponse
88-88:
.clients.ManageClientimported but unused (F401)Remove unused import
88-88:
.clients.AsyncManageClientimported but unused (F401)Remove unused import
90-90:
.clients.ProjectOptionsimported but unused (F401)Remove unused import
91-91:
.clients.KeyOptionsimported but unused (F401)Remove unused import
92-92:
.clients.ScopeOptionsimported but unused (F401)Remove unused import
93-93:
.clients.InviteOptionsimported but unused (F401)Remove unused import
94-94:
.clients.UsageRequestOptionsimported but unused (F401)Remove unused import
95-95:
.clients.UsageSummaryOptionsimported but unused (F401)Remove unused import
96-96:
.clients.UsageFieldsOptionsimported but unused (F401)Remove unused import
101-101:
.clients.Messageimported but unused (F401)Remove unused import
102-102:
.clients.Projectimported but unused (F401)Remove unused import
103-103:
.clients.ProjectsResponseimported but unused (F401)Remove unused import
104-104:
.clients.MembersResponseimported but unused (F401)Remove unused import
105-105:
.clients.Keyimported but unused (F401)Remove unused import
106-106:
.clients.KeyResponseimported but unused (F401)Remove unused import
107-107:
.clients.KeysResponseimported but unused (F401)Remove unused import
108-108:
.clients.ScopesResponseimported but unused (F401)Remove unused import
109-109:
.clients.InvitesResponseimported but unused (F401)Remove unused import
110-110:
.clients.UsageRequestimported but unused (F401)Remove unused import
111-111:
.clients.UsageRequestsResponseimported but unused (F401)Remove unused import
112-112:
.clients.UsageSummaryResponseimported but unused (F401)Remove unused import
113-113:
.clients.UsageFieldsResponseimported but unused (F401)Remove unused import
114-114:
.clients.Balanceimported but unused (F401)Remove unused import
115-115:
.clients.BalancesResponseimported but unused (F401)Remove unused import
120-120:
.clients.OnPremClientimported but unused (F401)Remove unused import
121-121:
.clients.AsyncOnPremClientimported but unused (F401)Remove unused import
122-122:
.clients.SelfHostedClientimported but unused (F401)Remove unused import
123-123:
.clients.AsyncSelfHostedClientimported but unused (F401)Remove unused import
127-127:
.options.ClientOptionsFromEnvimported but unused (F401)Remove unused import:
.options.ClientOptionsFromEnv
128-128:
.errors.DeepgramApiKeyErrorimported but unused (F401)Remove unused import:
.errors.DeepgramApiKeyError
Additional comments not posted (1)
deepgram/client.py (1)
10-10: The import ofverboselogsfrom.utilsis correct and aligns with the PR's objective to fix the import paths.
Proposed changes
This fixes the import of the verbose logs package to resolve the missing dependency. Verified broken in test/dev build
dev.1.Types of changes
What types of changes does your code introduce to the community Python SDK?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Further comments
NA
Summary by CodeRabbit
verboselogsmodule across multiple files to use relative imports. This change improves the maintainability and readability of the codebase.