Download data/src/elevenlabs/conversational_ai/analytics/client.py from introvoyz045/elevenlabs-python: direct link, hf CLI and curl.
- Browser
- Download file 2.02 kB
-
https://huggingface.co/datasets/introvoyz045/elevenlabs-python/resolve/main/data/src/elevenlabs/conversational_ai/analytics/client.py
- Command line
-
hf download hf://datasets/introvoyz045/elevenlabs-python/data/src/elevenlabs/conversational_ai/analytics/client.py
-
curl -L -o client.py https://huggingface.co/datasets/introvoyz045/elevenlabs-python/resolve/main/data/src/elevenlabs/conversational_ai/analytics/client.py
2.02 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 AsyncRawAnalyticsClient, RawAnalyticsClient | |
| if typing.TYPE_CHECKING: | |
| from .live_count.client import AsyncLiveCountClient, LiveCountClient | |
| class AnalyticsClient: | |
| def __init__(self, *, client_wrapper: SyncClientWrapper): | |
| self._raw_client = RawAnalyticsClient(client_wrapper=client_wrapper) | |
| self._client_wrapper = client_wrapper | |
| self._live_count: typing.Optional[LiveCountClient] = None | |
| def with_raw_response(self) -> RawAnalyticsClient: | |
| """ | |
| Retrieves a raw implementation of this client that returns raw responses. | |
| Returns | |
| ------- | |
| RawAnalyticsClient | |
| """ | |
| return self._raw_client | |
| def live_count(self): | |
| if self._live_count is None: | |
| from .live_count.client import LiveCountClient # noqa: E402 | |
| self._live_count = LiveCountClient(client_wrapper=self._client_wrapper) | |
| return self._live_count | |
| class AsyncAnalyticsClient: | |
| def __init__(self, *, client_wrapper: AsyncClientWrapper): | |
| self._raw_client = AsyncRawAnalyticsClient(client_wrapper=client_wrapper) | |
| self._client_wrapper = client_wrapper | |
| self._live_count: typing.Optional[AsyncLiveCountClient] = None | |
| def with_raw_response(self) -> AsyncRawAnalyticsClient: | |
| """ | |
| Retrieves a raw implementation of this client that returns raw responses. | |
| Returns | |
| ------- | |
| AsyncRawAnalyticsClient | |
| """ | |
| return self._raw_client | |
| def live_count(self): | |
| if self._live_count is None: | |
| from .live_count.client import AsyncLiveCountClient # noqa: E402 | |
| self._live_count = AsyncLiveCountClient(client_wrapper=self._client_wrapper) | |
| return self._live_count | |