Skip to content

Commit 95a5ea1

Browse files
chore(internal): updated imports (#411)
1 parent 7b3fa6d commit 95a5ea1

File tree

1 file changed

+43
-34
lines changed

1 file changed

+43
-34
lines changed

src/openlayer/_client.py

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import httpx
1010

11-
from . import resources, _exceptions
11+
from . import _exceptions
1212
from ._qs import Querystring
1313
from ._types import (
1414
NOT_GIVEN,
@@ -32,13 +32,16 @@
3232
SyncAPIClient,
3333
AsyncAPIClient,
3434
)
35+
from .resources.commits import commits
36+
from .resources.storage import storage
37+
from .resources.projects import projects
38+
from .resources.inference_pipelines import inference_pipelines
3539

3640
__all__ = [
3741
"Timeout",
3842
"Transport",
3943
"ProxiesTypes",
4044
"RequestOptions",
41-
"resources",
4245
"Openlayer",
4346
"AsyncOpenlayer",
4447
"Client",
@@ -47,10 +50,10 @@
4750

4851

4952
class Openlayer(SyncAPIClient):
50-
projects: resources.ProjectsResource
51-
commits: resources.CommitsResource
52-
inference_pipelines: resources.InferencePipelinesResource
53-
storage: resources.StorageResource
53+
projects: projects.ProjectsResource
54+
commits: commits.CommitsResource
55+
inference_pipelines: inference_pipelines.InferencePipelinesResource
56+
storage: storage.StorageResource
5457
with_raw_response: OpenlayerWithRawResponse
5558
with_streaming_response: OpenlayerWithStreamedResponse
5659

@@ -104,10 +107,10 @@ def __init__(
104107
_strict_response_validation=_strict_response_validation,
105108
)
106109

107-
self.projects = resources.ProjectsResource(self)
108-
self.commits = resources.CommitsResource(self)
109-
self.inference_pipelines = resources.InferencePipelinesResource(self)
110-
self.storage = resources.StorageResource(self)
110+
self.projects = projects.ProjectsResource(self)
111+
self.commits = commits.CommitsResource(self)
112+
self.inference_pipelines = inference_pipelines.InferencePipelinesResource(self)
113+
self.storage = storage.StorageResource(self)
111114
self.with_raw_response = OpenlayerWithRawResponse(self)
112115
self.with_streaming_response = OpenlayerWithStreamedResponse(self)
113116

@@ -230,10 +233,10 @@ def _make_status_error(
230233

231234

232235
class AsyncOpenlayer(AsyncAPIClient):
233-
projects: resources.AsyncProjectsResource
234-
commits: resources.AsyncCommitsResource
235-
inference_pipelines: resources.AsyncInferencePipelinesResource
236-
storage: resources.AsyncStorageResource
236+
projects: projects.AsyncProjectsResource
237+
commits: commits.AsyncCommitsResource
238+
inference_pipelines: inference_pipelines.AsyncInferencePipelinesResource
239+
storage: storage.AsyncStorageResource
237240
with_raw_response: AsyncOpenlayerWithRawResponse
238241
with_streaming_response: AsyncOpenlayerWithStreamedResponse
239242

@@ -287,10 +290,10 @@ def __init__(
287290
_strict_response_validation=_strict_response_validation,
288291
)
289292

290-
self.projects = resources.AsyncProjectsResource(self)
291-
self.commits = resources.AsyncCommitsResource(self)
292-
self.inference_pipelines = resources.AsyncInferencePipelinesResource(self)
293-
self.storage = resources.AsyncStorageResource(self)
293+
self.projects = projects.AsyncProjectsResource(self)
294+
self.commits = commits.AsyncCommitsResource(self)
295+
self.inference_pipelines = inference_pipelines.AsyncInferencePipelinesResource(self)
296+
self.storage = storage.AsyncStorageResource(self)
294297
self.with_raw_response = AsyncOpenlayerWithRawResponse(self)
295298
self.with_streaming_response = AsyncOpenlayerWithStreamedResponse(self)
296299

@@ -414,36 +417,42 @@ def _make_status_error(
414417

415418
class OpenlayerWithRawResponse:
416419
def __init__(self, client: Openlayer) -> None:
417-
self.projects = resources.ProjectsResourceWithRawResponse(client.projects)
418-
self.commits = resources.CommitsResourceWithRawResponse(client.commits)
419-
self.inference_pipelines = resources.InferencePipelinesResourceWithRawResponse(client.inference_pipelines)
420-
self.storage = resources.StorageResourceWithRawResponse(client.storage)
420+
self.projects = projects.ProjectsResourceWithRawResponse(client.projects)
421+
self.commits = commits.CommitsResourceWithRawResponse(client.commits)
422+
self.inference_pipelines = inference_pipelines.InferencePipelinesResourceWithRawResponse(
423+
client.inference_pipelines
424+
)
425+
self.storage = storage.StorageResourceWithRawResponse(client.storage)
421426

422427

423428
class AsyncOpenlayerWithRawResponse:
424429
def __init__(self, client: AsyncOpenlayer) -> None:
425-
self.projects = resources.AsyncProjectsResourceWithRawResponse(client.projects)
426-
self.commits = resources.AsyncCommitsResourceWithRawResponse(client.commits)
427-
self.inference_pipelines = resources.AsyncInferencePipelinesResourceWithRawResponse(client.inference_pipelines)
428-
self.storage = resources.AsyncStorageResourceWithRawResponse(client.storage)
430+
self.projects = projects.AsyncProjectsResourceWithRawResponse(client.projects)
431+
self.commits = commits.AsyncCommitsResourceWithRawResponse(client.commits)
432+
self.inference_pipelines = inference_pipelines.AsyncInferencePipelinesResourceWithRawResponse(
433+
client.inference_pipelines
434+
)
435+
self.storage = storage.AsyncStorageResourceWithRawResponse(client.storage)
429436

430437

431438
class OpenlayerWithStreamedResponse:
432439
def __init__(self, client: Openlayer) -> None:
433-
self.projects = resources.ProjectsResourceWithStreamingResponse(client.projects)
434-
self.commits = resources.CommitsResourceWithStreamingResponse(client.commits)
435-
self.inference_pipelines = resources.InferencePipelinesResourceWithStreamingResponse(client.inference_pipelines)
436-
self.storage = resources.StorageResourceWithStreamingResponse(client.storage)
440+
self.projects = projects.ProjectsResourceWithStreamingResponse(client.projects)
441+
self.commits = commits.CommitsResourceWithStreamingResponse(client.commits)
442+
self.inference_pipelines = inference_pipelines.InferencePipelinesResourceWithStreamingResponse(
443+
client.inference_pipelines
444+
)
445+
self.storage = storage.StorageResourceWithStreamingResponse(client.storage)
437446

438447

439448
class AsyncOpenlayerWithStreamedResponse:
440449
def __init__(self, client: AsyncOpenlayer) -> None:
441-
self.projects = resources.AsyncProjectsResourceWithStreamingResponse(client.projects)
442-
self.commits = resources.AsyncCommitsResourceWithStreamingResponse(client.commits)
443-
self.inference_pipelines = resources.AsyncInferencePipelinesResourceWithStreamingResponse(
450+
self.projects = projects.AsyncProjectsResourceWithStreamingResponse(client.projects)
451+
self.commits = commits.AsyncCommitsResourceWithStreamingResponse(client.commits)
452+
self.inference_pipelines = inference_pipelines.AsyncInferencePipelinesResourceWithStreamingResponse(
444453
client.inference_pipelines
445454
)
446-
self.storage = resources.AsyncStorageResourceWithStreamingResponse(client.storage)
455+
self.storage = storage.AsyncStorageResourceWithStreamingResponse(client.storage)
447456

448457

449458
Client = Openlayer

0 commit comments

Comments
 (0)