Download data/src/elevenlabs/workspaces/client.py from introvoyz045/elevenlabs-python: direct link, hf CLI and curl.
- Browser
- Download file 1.98 kB
-
https://huggingface.co/datasets/introvoyz045/elevenlabs-python/resolve/main/data/src/elevenlabs/workspaces/client.py
- Command line
-
hf download hf://datasets/introvoyz045/elevenlabs-python/data/src/elevenlabs/workspaces/client.py
-
curl -L -o client.py https://huggingface.co/datasets/introvoyz045/elevenlabs-python/resolve/main/data/src/elevenlabs/workspaces/client.py
1.98 kB
| # This file was auto-generated by Fern from our API Definition. | |
| from __future__ import annotations | |
| import typing | |
| from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper | |
| from .raw_client import AsyncRawWorkspacesClient, RawWorkspacesClient | |
| if typing.TYPE_CHECKING: | |
| from .api_keys.client import ApiKeysClient, AsyncApiKeysClient | |
| class WorkspacesClient: | |
| def __init__(self, *, client_wrapper: SyncClientWrapper): | |
| self._raw_client = RawWorkspacesClient(client_wrapper=client_wrapper) | |
| self._client_wrapper = client_wrapper | |
| self._api_keys: typing.Optional[ApiKeysClient] = None | |
| def with_raw_response(self) -> RawWorkspacesClient: | |
| """ | |
| Retrieves a raw implementation of this client that returns raw responses. | |
| Returns | |
| ------- | |
| RawWorkspacesClient | |
| """ | |
| return self._raw_client | |
| def api_keys(self): | |
| if self._api_keys is None: | |
| from .api_keys.client import ApiKeysClient # noqa: E402 | |
| self._api_keys = ApiKeysClient(client_wrapper=self._client_wrapper) | |
| return self._api_keys | |
| class AsyncWorkspacesClient: | |
| def __init__(self, *, client_wrapper: AsyncClientWrapper): | |
| self._raw_client = AsyncRawWorkspacesClient(client_wrapper=client_wrapper) | |
| self._client_wrapper = client_wrapper | |
| self._api_keys: typing.Optional[AsyncApiKeysClient] = None | |
| def with_raw_response(self) -> AsyncRawWorkspacesClient: | |
| """ | |
| Retrieves a raw implementation of this client that returns raw responses. | |
| Returns | |
| ------- | |
| AsyncRawWorkspacesClient | |
| """ | |
| return self._raw_client | |
| def api_keys(self): | |
| if self._api_keys is None: | |
| from .api_keys.client import AsyncApiKeysClient # noqa: E402 | |
| self._api_keys = AsyncApiKeysClient(client_wrapper=self._client_wrapper) | |
| return self._api_keys | |