Skip to content

Commit

Permalink
Fix dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvonthenen committed Dec 12, 2023
1 parent 9e85f25 commit 43cdf4a
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deepgram/clients/__init__.py
Original file line number Diff line number Diff line change
@@ -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)
20 changes: 20 additions & 0 deletions deepgram/clients/live/__init__.py
Original file line number Diff line number Diff line change
@@ -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)
52 changes: 52 additions & 0 deletions deepgram/clients/manage/__init__.py
Original file line number Diff line number Diff line change
@@ -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)
15 changes: 15 additions & 0 deletions deepgram/clients/onprem/__init__.py
Original file line number Diff line number Diff line change
@@ -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)
20 changes: 20 additions & 0 deletions deepgram/clients/prerecorded/__init__.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 43cdf4a

Please sign in to comment.