Skip to content
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

Missing Exported Class Names #431

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions deepgram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@
ErrorResponse,
)

# live
# speect-to-text WS
from .client import LiveClient, AsyncLiveClient # backward compat
from .client import ListenWebSocketClient, AsyncListenWebSocketClient
from .client import LiveTranscriptionEvents
from .client import LiveClient, AsyncLiveClient
from .client import LiveOptions
from .client import LiveOptions, ListenWebSocketOptions
from .client import (
# OpenResponse,
LiveResultResponse,
Expand All @@ -62,11 +63,14 @@
)

# prerecorded
from .client import PreRecordedClient, AsyncPreRecordedClient
from .client import PreRecordedClient, AsyncPreRecordedClient # backward compat
from .client import ListenRESTClient, AsyncListenRESTClient
from .client import (
ListenRESTOptions,
PrerecordedOptions,
PreRecordedStreamSource,
PrerecordedSource,
ListenRestSource,
)
from .client import (
AsyncPrerecordedResponse,
Expand All @@ -91,8 +95,10 @@
# speak
from .client import (
SpeakOptions,
SpeakRESTOptions,
SpeakWebSocketOptions,
# FileSource,
SpeakWebSocketSource,
SpeakRestSource,
SpeakSource,
)
from .client import SpeakWebSocketEvents
Expand Down
17 changes: 14 additions & 3 deletions deepgram/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@
# listen client
from .clients import Listen, Read, Speak

# live
from .clients import LiveClient, AsyncLiveClient
# speech-to-text
from .clients import LiveClient, AsyncLiveClient # backward compat
from .clients import (
ListenRESTClient,
AsyncListenRESTClient,
ListenWebSocketClient,
AsyncListenWebSocketClient,
)
from .clients import (
ListenWebSocketOptions,
LiveOptions,
LiveTranscriptionEvents,
)
Expand All @@ -57,9 +64,11 @@
AsyncPreRecordedClient,
)
from .clients import (
ListenRESTOptions,
PrerecordedOptions,
PreRecordedStreamSource,
PrerecordedSource,
ListenRestSource,
)

# prerecorded client responses
Expand Down Expand Up @@ -88,8 +97,10 @@
# speak
from .clients import (
SpeakOptions,
SpeakRESTOptions,
SpeakWebSocketOptions,
# FileSource,
SpeakWebSocketSource,
SpeakRestSource,
SpeakSource,
)
from .clients import SpeakWebSocketEvents
Expand Down
21 changes: 15 additions & 6 deletions deepgram/clients/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@
AsyncLiveClient,
)

# rest
# speech-to-text rest
from .listen import ListenRESTClient, AsyncListenRESTClient

## input
from .listen import (
ListenRESTOptions,
PrerecordedOptions,
PreRecordedStreamSource,
# UrlSource,
# FileSource,
PrerecordedSource,
ListenRestSource,
)

## output
Expand All @@ -54,9 +58,12 @@
)


# websocket
# speech-to-text websocket
from .listen import ListenWebSocketClient, AsyncListenWebSocketClient

## input
from .listen import (
ListenWebSocketOptions,
LiveOptions,
)

Expand Down Expand Up @@ -93,18 +100,20 @@
SyncAnalyzeResponse,
)

# speak
# text-to-speech
## common
from .speak import (
SpeakOptions,
SpeakRESTOptions,
SpeakWebSocketOptions,
# FileSource,
SpeakWebSocketSource,
SpeakRestSource,
SpeakSource,
)

from .speak import SpeakWebSocketEvents

## speak REST
## text-to-speech REST
from .speak import (
SpeakClient, # backward compat
SpeakRESTClient,
Expand All @@ -116,7 +125,7 @@
SpeakRESTResponse,
)

## speak WebSocket
## text-to-speech WebSocket
from .speak import (
SpeakWebSocketClient,
AsyncSpeakWebSocketClient,
Expand Down
5 changes: 5 additions & 0 deletions deepgram/clients/listen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
# rest
## input
from .client import (
ListenRESTOptions,
PrerecordedOptions,
PreRecordedStreamSource,
UrlSource,
FileSource,
PrerecordedSource,
ListenRestSource,
)

## output
Expand All @@ -34,6 +36,7 @@
# websocket
## input
from .client import (
ListenWebSocketOptions,
LiveOptions,
)

Expand All @@ -51,6 +54,8 @@

# clients
from .client import (
ListenRESTClient,
AsyncListenRESTClient,
ListenWebSocketClient,
AsyncListenWebSocketClient,
)
16 changes: 14 additions & 2 deletions deepgram/clients/listen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@
ListenRESTClient as ListenRESTClientLatest,
AsyncListenRESTClient as AsyncListenRESTClientLatest,
)
from .v1 import PrerecordedOptions as PrerecordedOptionsLatest
from .v1 import (
PrerecordedOptions as PrerecordedOptionsLatest,
ListenRESTOptions as ListenRESTOptionsLatest,
)

from .v1 import (
UrlSource as UrlSourceLatest,
FileSource as FileSourceLatest,
PreRecordedStreamSource as PreRecordedStreamSourceLatest,
PrerecordedSource as PrerecordedSourceLatest,
ListenRestSource as ListenRestSourceLatest,
)
from .v1 import (
AsyncPrerecordedResponse as AsyncPrerecordedResponseLatest,
Expand All @@ -29,7 +33,10 @@
ListenWebSocketClient as ListenWebSocketClientLatest,
AsyncListenWebSocketClient as AsyncListenWebSocketClientLatest,
)
from .v1 import LiveOptions as LiveOptionsLatest, LiveOptions as SteamingOptionsLatest
from .v1 import (
LiveOptions as LiveOptionsLatest,
ListenWebSocketOptions as ListenWebSocketOptionsLatest,
)
from .v1 import (
OpenResponse as OpenResponseLatest,
LiveResultResponse as LiveResultResponseLatest,
Expand All @@ -53,11 +60,13 @@

# rest
## input
ListenRESTOptions = ListenRESTOptionsLatest
PrerecordedOptions = PrerecordedOptionsLatest
PreRecordedStreamSource = PreRecordedStreamSourceLatest
UrlSource = UrlSourceLatest
FileSource = FileSourceLatest
PrerecordedSource = PrerecordedSourceLatest
ListenRestSource = ListenRestSourceLatest

## output
AsyncPrerecordedResponse = AsyncPrerecordedResponseLatest
Expand All @@ -67,6 +76,7 @@

# websocket
## input
ListenWebSocketOptions = ListenWebSocketOptionsLatest
LiveOptions = LiveOptionsLatest

## output
Expand All @@ -81,5 +91,7 @@


# clients
ListenRESTClient = ListenRESTClientLatest
AsyncListenRESTClient = AsyncListenRESTClientLatest
ListenWebSocketClient = ListenWebSocketClientLatest
AsyncListenWebSocketClient = AsyncListenWebSocketClientLatest
5 changes: 3 additions & 2 deletions deepgram/clients/listen/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

# rest
from .rest import ListenRESTClient, AsyncListenRESTClient
from .rest import PrerecordedOptions
from .rest import ListenRESTOptions, PrerecordedOptions
from .rest import (
UrlSource,
FileSource,
PreRecordedStreamSource,
PrerecordedSource,
ListenRestSource,
)
from .rest import (
AsyncPrerecordedResponse,
Expand All @@ -31,7 +32,7 @@

# websocket
from .websocket import ListenWebSocketClient, AsyncListenWebSocketClient
from .websocket import LiveOptions, LiveOptions as SteamingOptions
from .websocket import LiveOptions, ListenWebSocketOptions
from .websocket import (
OpenResponse,
LiveResultResponse,
Expand Down
2 changes: 2 additions & 0 deletions deepgram/clients/listen/v1/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
from .client import ListenRESTClient
from .async_client import AsyncListenRESTClient
from .options import (
ListenRESTOptions,
PrerecordedOptions,
FileSource,
UrlSource,
PreRecordedStreamSource,
PrerecordedSource,
ListenRestSource,
)
from .response import (
AsyncPrerecordedResponse,
Expand Down
Loading
Loading