diff --git a/deepgram/clients/__init__.py b/deepgram/clients/__init__.py new file mode 100644 index 00000000..eaee6616 --- /dev/null +++ b/deepgram/clients/__init__.py @@ -0,0 +1,10 @@ +# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. +# Use of this source code is governed by a MIT license that can be found in the LICENSE file. +# SPDX-License-Identifier: MIT + +from .listen import ListenClient +from ..options import DeepgramClientOptions + + +def listen(config: DeepgramClientOptions): + return ListenClient(config) diff --git a/deepgram/clients/live/__init__.py b/deepgram/clients/live/__init__.py new file mode 100644 index 00000000..c8f63471 --- /dev/null +++ b/deepgram/clients/live/__init__.py @@ -0,0 +1,20 @@ +# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. +# Use of this source code is governed by a MIT license that can be found in the LICENSE file. +# SPDX-License-Identifier: MIT + +from .v1.client import LiveClient +from .v1.async_client import AsyncLiveClient +from .v1.options import LiveOptions +from ...options import DeepgramClientOptions + + +def live_options(): + return LiveOptions() + + +def live(config: DeepgramClientOptions): + return LiveClient(config) + + +def asynclive(config: DeepgramClientOptions): + return AsyncLiveClient(config) diff --git a/deepgram/clients/manage/__init__.py b/deepgram/clients/manage/__init__.py new file mode 100644 index 00000000..0fc14456 --- /dev/null +++ b/deepgram/clients/manage/__init__.py @@ -0,0 +1,52 @@ +# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. +# Use of this source code is governed by a MIT license that can be found in the LICENSE file. +# SPDX-License-Identifier: MIT + +from .v1.client import ManageClient +from .v1.async_client import AsyncManageClient +from .v1.options import ( + ProjectOptions, + KeyOptions, + ScopeOptions, + InviteOptions, + UsageRequestOptions, + UsageSummaryOptions, + UsageFieldsOptions, +) +from ...options import DeepgramClientOptions + + +def project_options(): + return ProjectOptions() + + +def key_options(): + return KeyOptions() + + +def scope_options(): + return ScopeOptions() + + +def invite_options(): + return InviteOptions() + + +def usage_request_options(): + return UsageRequestOptions() + + +def usage_summary_options(): + return UsageSummaryOptions() + + +def usage_fields_options(): + return UsageFieldsOptions() + + +def manage(config: DeepgramClientOptions): + return ManageClient(config) + + +def asyncmanage(config: DeepgramClientOptions): + return AsyncManageClient(config) diff --git a/deepgram/clients/onprem/__init__.py b/deepgram/clients/onprem/__init__.py new file mode 100644 index 00000000..76361533 --- /dev/null +++ b/deepgram/clients/onprem/__init__.py @@ -0,0 +1,15 @@ +# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. +# Use of this source code is governed by a MIT license that can be found in the LICENSE file. +# SPDX-License-Identifier: MIT + +from .v1.client import OnPremClient +from .v1.async_client import AsyncOnPremClient +from ...options import DeepgramClientOptions + + +def onprem(config: DeepgramClientOptions): + return OnPremClient(config) + + +def asynconprem(config: DeepgramClientOptions): + return AsyncOnPremClient(config) diff --git a/deepgram/clients/prerecorded/__init__.py b/deepgram/clients/prerecorded/__init__.py new file mode 100644 index 00000000..f5e6fdc1 --- /dev/null +++ b/deepgram/clients/prerecorded/__init__.py @@ -0,0 +1,20 @@ +# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. +# Use of this source code is governed by a MIT license that can be found in the LICENSE file. +# SPDX-License-Identifier: MIT + +from .v1.client import PreRecordedClient +from .v1.async_client import AsyncPreRecordedClient +from .v1.options import PrerecordedOptions +from ...options import DeepgramClientOptions + + +def prerecorded_options(): + return PrerecordedOptions() + + +def prerecorded(config: DeepgramClientOptions): + return PreRecordedClient(config) + + +def asyncprerecorded(config: DeepgramClientOptions): + return AsyncPreRecordedClient(config)