diff --git a/src/honcho/_client.py b/src/honcho/_client.py index 844ae11..6da443c 100644 --- a/src/honcho/_client.py +++ b/src/honcho/_client.py @@ -8,7 +8,7 @@ import httpx -from . import resources, _exceptions +from . import _exceptions from ._qs import Querystring from ._types import ( NOT_GIVEN, @@ -31,6 +31,7 @@ SyncAPIClient, AsyncAPIClient, ) +from .resources.apps import apps __all__ = [ "ENVIRONMENTS", @@ -38,7 +39,6 @@ "Transport", "ProxiesTypes", "RequestOptions", - "resources", "Honcho", "AsyncHoncho", "Client", @@ -52,7 +52,7 @@ class Honcho(SyncAPIClient): - apps: resources.AppsResource + apps: apps.AppsResource with_raw_response: HonchoWithRawResponse with_streaming_response: HonchoWithStreamedResponse @@ -130,7 +130,7 @@ def __init__( _strict_response_validation=_strict_response_validation, ) - self.apps = resources.AppsResource(self) + self.apps = apps.AppsResource(self) self.with_raw_response = HonchoWithRawResponse(self) self.with_streaming_response = HonchoWithStreamedResponse(self) @@ -244,7 +244,7 @@ def _make_status_error( class AsyncHoncho(AsyncAPIClient): - apps: resources.AsyncAppsResource + apps: apps.AsyncAppsResource with_raw_response: AsyncHonchoWithRawResponse with_streaming_response: AsyncHonchoWithStreamedResponse @@ -322,7 +322,7 @@ def __init__( _strict_response_validation=_strict_response_validation, ) - self.apps = resources.AsyncAppsResource(self) + self.apps = apps.AsyncAppsResource(self) self.with_raw_response = AsyncHonchoWithRawResponse(self) self.with_streaming_response = AsyncHonchoWithStreamedResponse(self) @@ -437,22 +437,22 @@ def _make_status_error( class HonchoWithRawResponse: def __init__(self, client: Honcho) -> None: - self.apps = resources.AppsResourceWithRawResponse(client.apps) + self.apps = apps.AppsResourceWithRawResponse(client.apps) class AsyncHonchoWithRawResponse: def __init__(self, client: AsyncHoncho) -> None: - self.apps = resources.AsyncAppsResourceWithRawResponse(client.apps) + self.apps = apps.AsyncAppsResourceWithRawResponse(client.apps) class HonchoWithStreamedResponse: def __init__(self, client: Honcho) -> None: - self.apps = resources.AppsResourceWithStreamingResponse(client.apps) + self.apps = apps.AppsResourceWithStreamingResponse(client.apps) class AsyncHonchoWithStreamedResponse: def __init__(self, client: AsyncHoncho) -> None: - self.apps = resources.AsyncAppsResourceWithStreamingResponse(client.apps) + self.apps = apps.AsyncAppsResourceWithStreamingResponse(client.apps) Client = Honcho diff --git a/src/honcho/resources/apps/apps.py b/src/honcho/resources/apps/apps.py index cc5013e..2138f32 100644 --- a/src/honcho/resources/apps/apps.py +++ b/src/honcho/resources/apps/apps.py @@ -6,14 +6,6 @@ import httpx -from .users import ( - UsersResource, - AsyncUsersResource, - UsersResourceWithRawResponse, - AsyncUsersResourceWithRawResponse, - UsersResourceWithStreamingResponse, - AsyncUsersResourceWithStreamingResponse, -) from ...types import app_create_params, app_update_params from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ..._utils import ( @@ -29,7 +21,14 @@ async_to_streamed_response_wrapper, ) from ...types.app import App -from .users.users import UsersResource, AsyncUsersResource +from .users.users import ( + UsersResource, + AsyncUsersResource, + UsersResourceWithRawResponse, + AsyncUsersResourceWithRawResponse, + UsersResourceWithStreamingResponse, + AsyncUsersResourceWithStreamingResponse, +) from ..._base_client import make_request_options __all__ = ["AppsResource", "AsyncAppsResource"] diff --git a/src/honcho/resources/apps/users/users.py b/src/honcho/resources/apps/users/users.py index 1c10672..77cb387 100644 --- a/src/honcho/resources/apps/users/users.py +++ b/src/honcho/resources/apps/users/users.py @@ -6,28 +6,12 @@ import httpx -from .sessions import ( - SessionsResource, - AsyncSessionsResource, - SessionsResourceWithRawResponse, - AsyncSessionsResourceWithRawResponse, - SessionsResourceWithStreamingResponse, - AsyncSessionsResourceWithStreamingResponse, -) from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven from ...._utils import ( maybe_transform, async_maybe_transform, ) from ...._compat import cached_property -from .collections import ( - CollectionsResource, - AsyncCollectionsResource, - CollectionsResourceWithRawResponse, - AsyncCollectionsResourceWithRawResponse, - CollectionsResourceWithStreamingResponse, - AsyncCollectionsResourceWithStreamingResponse, -) from ...._resource import SyncAPIResource, AsyncAPIResource from ...._response import ( to_raw_response_wrapper, @@ -46,9 +30,23 @@ from ....pagination import SyncPage, AsyncPage from ....types.apps import user_list_params, user_create_params, user_update_params from ...._base_client import AsyncPaginator, make_request_options -from .sessions.sessions import SessionsResource, AsyncSessionsResource +from .sessions.sessions import ( + SessionsResource, + AsyncSessionsResource, + SessionsResourceWithRawResponse, + AsyncSessionsResourceWithRawResponse, + SessionsResourceWithStreamingResponse, + AsyncSessionsResourceWithStreamingResponse, +) from ....types.apps.user import User -from .collections.collections import CollectionsResource, AsyncCollectionsResource +from .collections.collections import ( + CollectionsResource, + AsyncCollectionsResource, + CollectionsResourceWithRawResponse, + AsyncCollectionsResourceWithRawResponse, + CollectionsResourceWithStreamingResponse, + AsyncCollectionsResourceWithStreamingResponse, +) __all__ = ["UsersResource", "AsyncUsersResource"]