|
8 | 8 |
|
9 | 9 | import httpx |
10 | 10 |
|
11 | | -from . import resources, _exceptions |
| 11 | +from . import _exceptions |
12 | 12 | from ._qs import Querystring |
13 | 13 | from ._types import ( |
14 | 14 | NOT_GIVEN, |
|
24 | 24 | get_async_library, |
25 | 25 | ) |
26 | 26 | from ._version import __version__ |
| 27 | +from .resources import tasks, image_to_video |
27 | 28 | from ._streaming import Stream as Stream, AsyncStream as AsyncStream |
28 | 29 | from ._exceptions import RunwayMLError, APIStatusError |
29 | 30 | from ._base_client import ( |
|
37 | 38 | "Transport", |
38 | 39 | "ProxiesTypes", |
39 | 40 | "RequestOptions", |
40 | | - "resources", |
41 | 41 | "RunwayML", |
42 | 42 | "AsyncRunwayML", |
43 | 43 | "Client", |
|
46 | 46 |
|
47 | 47 |
|
48 | 48 | class RunwayML(SyncAPIClient): |
49 | | - tasks: resources.TasksResource |
50 | | - image_to_video: resources.ImageToVideoResource |
| 49 | + tasks: tasks.TasksResource |
| 50 | + image_to_video: image_to_video.ImageToVideoResource |
51 | 51 | with_raw_response: RunwayMLWithRawResponse |
52 | 52 | with_streaming_response: RunwayMLWithStreamedResponse |
53 | 53 |
|
@@ -111,8 +111,8 @@ def __init__( |
111 | 111 | _strict_response_validation=_strict_response_validation, |
112 | 112 | ) |
113 | 113 |
|
114 | | - self.tasks = resources.TasksResource(self) |
115 | | - self.image_to_video = resources.ImageToVideoResource(self) |
| 114 | + self.tasks = tasks.TasksResource(self) |
| 115 | + self.image_to_video = image_to_video.ImageToVideoResource(self) |
116 | 116 | self.with_raw_response = RunwayMLWithRawResponse(self) |
117 | 117 | self.with_streaming_response = RunwayMLWithStreamedResponse(self) |
118 | 118 |
|
@@ -225,8 +225,8 @@ def _make_status_error( |
225 | 225 |
|
226 | 226 |
|
227 | 227 | class AsyncRunwayML(AsyncAPIClient): |
228 | | - tasks: resources.AsyncTasksResource |
229 | | - image_to_video: resources.AsyncImageToVideoResource |
| 228 | + tasks: tasks.AsyncTasksResource |
| 229 | + image_to_video: image_to_video.AsyncImageToVideoResource |
230 | 230 | with_raw_response: AsyncRunwayMLWithRawResponse |
231 | 231 | with_streaming_response: AsyncRunwayMLWithStreamedResponse |
232 | 232 |
|
@@ -290,8 +290,8 @@ def __init__( |
290 | 290 | _strict_response_validation=_strict_response_validation, |
291 | 291 | ) |
292 | 292 |
|
293 | | - self.tasks = resources.AsyncTasksResource(self) |
294 | | - self.image_to_video = resources.AsyncImageToVideoResource(self) |
| 293 | + self.tasks = tasks.AsyncTasksResource(self) |
| 294 | + self.image_to_video = image_to_video.AsyncImageToVideoResource(self) |
295 | 295 | self.with_raw_response = AsyncRunwayMLWithRawResponse(self) |
296 | 296 | self.with_streaming_response = AsyncRunwayMLWithStreamedResponse(self) |
297 | 297 |
|
@@ -405,26 +405,26 @@ def _make_status_error( |
405 | 405 |
|
406 | 406 | class RunwayMLWithRawResponse: |
407 | 407 | def __init__(self, client: RunwayML) -> None: |
408 | | - self.tasks = resources.TasksResourceWithRawResponse(client.tasks) |
409 | | - self.image_to_video = resources.ImageToVideoResourceWithRawResponse(client.image_to_video) |
| 408 | + self.tasks = tasks.TasksResourceWithRawResponse(client.tasks) |
| 409 | + self.image_to_video = image_to_video.ImageToVideoResourceWithRawResponse(client.image_to_video) |
410 | 410 |
|
411 | 411 |
|
412 | 412 | class AsyncRunwayMLWithRawResponse: |
413 | 413 | def __init__(self, client: AsyncRunwayML) -> None: |
414 | | - self.tasks = resources.AsyncTasksResourceWithRawResponse(client.tasks) |
415 | | - self.image_to_video = resources.AsyncImageToVideoResourceWithRawResponse(client.image_to_video) |
| 414 | + self.tasks = tasks.AsyncTasksResourceWithRawResponse(client.tasks) |
| 415 | + self.image_to_video = image_to_video.AsyncImageToVideoResourceWithRawResponse(client.image_to_video) |
416 | 416 |
|
417 | 417 |
|
418 | 418 | class RunwayMLWithStreamedResponse: |
419 | 419 | def __init__(self, client: RunwayML) -> None: |
420 | | - self.tasks = resources.TasksResourceWithStreamingResponse(client.tasks) |
421 | | - self.image_to_video = resources.ImageToVideoResourceWithStreamingResponse(client.image_to_video) |
| 420 | + self.tasks = tasks.TasksResourceWithStreamingResponse(client.tasks) |
| 421 | + self.image_to_video = image_to_video.ImageToVideoResourceWithStreamingResponse(client.image_to_video) |
422 | 422 |
|
423 | 423 |
|
424 | 424 | class AsyncRunwayMLWithStreamedResponse: |
425 | 425 | def __init__(self, client: AsyncRunwayML) -> None: |
426 | | - self.tasks = resources.AsyncTasksResourceWithStreamingResponse(client.tasks) |
427 | | - self.image_to_video = resources.AsyncImageToVideoResourceWithStreamingResponse(client.image_to_video) |
| 426 | + self.tasks = tasks.AsyncTasksResourceWithStreamingResponse(client.tasks) |
| 427 | + self.image_to_video = image_to_video.AsyncImageToVideoResourceWithStreamingResponse(client.image_to_video) |
428 | 428 |
|
429 | 429 |
|
430 | 430 | Client = RunwayML |
|
0 commit comments