|
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 watch, verification, transactional |
27 | 28 | from ._streaming import Stream as Stream, AsyncStream as AsyncStream
|
28 | 29 | from ._exceptions import PreludeError, APIStatusError
|
29 | 30 | from ._base_client import (
|
|
32 | 33 | AsyncAPIClient,
|
33 | 34 | )
|
34 | 35 |
|
35 |
| -__all__ = [ |
36 |
| - "Timeout", |
37 |
| - "Transport", |
38 |
| - "ProxiesTypes", |
39 |
| - "RequestOptions", |
40 |
| - "resources", |
41 |
| - "Prelude", |
42 |
| - "AsyncPrelude", |
43 |
| - "Client", |
44 |
| - "AsyncClient", |
45 |
| -] |
| 36 | +__all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Prelude", "AsyncPrelude", "Client", "AsyncClient"] |
46 | 37 |
|
47 | 38 |
|
48 | 39 | class Prelude(SyncAPIClient):
|
49 |
| - transactional: resources.TransactionalResource |
50 |
| - verification: resources.VerificationResource |
51 |
| - watch: resources.WatchResource |
| 40 | + transactional: transactional.TransactionalResource |
| 41 | + verification: verification.VerificationResource |
| 42 | + watch: watch.WatchResource |
52 | 43 | with_raw_response: PreludeWithRawResponse
|
53 | 44 | with_streaming_response: PreludeWithStreamedResponse
|
54 | 45 |
|
@@ -106,9 +97,9 @@ def __init__(
|
106 | 97 | _strict_response_validation=_strict_response_validation,
|
107 | 98 | )
|
108 | 99 |
|
109 |
| - self.transactional = resources.TransactionalResource(self) |
110 |
| - self.verification = resources.VerificationResource(self) |
111 |
| - self.watch = resources.WatchResource(self) |
| 100 | + self.transactional = transactional.TransactionalResource(self) |
| 101 | + self.verification = verification.VerificationResource(self) |
| 102 | + self.watch = watch.WatchResource(self) |
112 | 103 | self.with_raw_response = PreludeWithRawResponse(self)
|
113 | 104 | self.with_streaming_response = PreludeWithStreamedResponse(self)
|
114 | 105 |
|
@@ -218,9 +209,9 @@ def _make_status_error(
|
218 | 209 |
|
219 | 210 |
|
220 | 211 | class AsyncPrelude(AsyncAPIClient):
|
221 |
| - transactional: resources.AsyncTransactionalResource |
222 |
| - verification: resources.AsyncVerificationResource |
223 |
| - watch: resources.AsyncWatchResource |
| 212 | + transactional: transactional.AsyncTransactionalResource |
| 213 | + verification: verification.AsyncVerificationResource |
| 214 | + watch: watch.AsyncWatchResource |
224 | 215 | with_raw_response: AsyncPreludeWithRawResponse
|
225 | 216 | with_streaming_response: AsyncPreludeWithStreamedResponse
|
226 | 217 |
|
@@ -278,9 +269,9 @@ def __init__(
|
278 | 269 | _strict_response_validation=_strict_response_validation,
|
279 | 270 | )
|
280 | 271 |
|
281 |
| - self.transactional = resources.AsyncTransactionalResource(self) |
282 |
| - self.verification = resources.AsyncVerificationResource(self) |
283 |
| - self.watch = resources.AsyncWatchResource(self) |
| 272 | + self.transactional = transactional.AsyncTransactionalResource(self) |
| 273 | + self.verification = verification.AsyncVerificationResource(self) |
| 274 | + self.watch = watch.AsyncWatchResource(self) |
284 | 275 | self.with_raw_response = AsyncPreludeWithRawResponse(self)
|
285 | 276 | self.with_streaming_response = AsyncPreludeWithStreamedResponse(self)
|
286 | 277 |
|
@@ -391,30 +382,30 @@ def _make_status_error(
|
391 | 382 |
|
392 | 383 | class PreludeWithRawResponse:
|
393 | 384 | def __init__(self, client: Prelude) -> None:
|
394 |
| - self.transactional = resources.TransactionalResourceWithRawResponse(client.transactional) |
395 |
| - self.verification = resources.VerificationResourceWithRawResponse(client.verification) |
396 |
| - self.watch = resources.WatchResourceWithRawResponse(client.watch) |
| 385 | + self.transactional = transactional.TransactionalResourceWithRawResponse(client.transactional) |
| 386 | + self.verification = verification.VerificationResourceWithRawResponse(client.verification) |
| 387 | + self.watch = watch.WatchResourceWithRawResponse(client.watch) |
397 | 388 |
|
398 | 389 |
|
399 | 390 | class AsyncPreludeWithRawResponse:
|
400 | 391 | def __init__(self, client: AsyncPrelude) -> None:
|
401 |
| - self.transactional = resources.AsyncTransactionalResourceWithRawResponse(client.transactional) |
402 |
| - self.verification = resources.AsyncVerificationResourceWithRawResponse(client.verification) |
403 |
| - self.watch = resources.AsyncWatchResourceWithRawResponse(client.watch) |
| 392 | + self.transactional = transactional.AsyncTransactionalResourceWithRawResponse(client.transactional) |
| 393 | + self.verification = verification.AsyncVerificationResourceWithRawResponse(client.verification) |
| 394 | + self.watch = watch.AsyncWatchResourceWithRawResponse(client.watch) |
404 | 395 |
|
405 | 396 |
|
406 | 397 | class PreludeWithStreamedResponse:
|
407 | 398 | def __init__(self, client: Prelude) -> None:
|
408 |
| - self.transactional = resources.TransactionalResourceWithStreamingResponse(client.transactional) |
409 |
| - self.verification = resources.VerificationResourceWithStreamingResponse(client.verification) |
410 |
| - self.watch = resources.WatchResourceWithStreamingResponse(client.watch) |
| 399 | + self.transactional = transactional.TransactionalResourceWithStreamingResponse(client.transactional) |
| 400 | + self.verification = verification.VerificationResourceWithStreamingResponse(client.verification) |
| 401 | + self.watch = watch.WatchResourceWithStreamingResponse(client.watch) |
411 | 402 |
|
412 | 403 |
|
413 | 404 | class AsyncPreludeWithStreamedResponse:
|
414 | 405 | def __init__(self, client: AsyncPrelude) -> None:
|
415 |
| - self.transactional = resources.AsyncTransactionalResourceWithStreamingResponse(client.transactional) |
416 |
| - self.verification = resources.AsyncVerificationResourceWithStreamingResponse(client.verification) |
417 |
| - self.watch = resources.AsyncWatchResourceWithStreamingResponse(client.watch) |
| 406 | + self.transactional = transactional.AsyncTransactionalResourceWithStreamingResponse(client.transactional) |
| 407 | + self.verification = verification.AsyncVerificationResourceWithStreamingResponse(client.verification) |
| 408 | + self.watch = watch.AsyncWatchResourceWithStreamingResponse(client.watch) |
418 | 409 |
|
419 | 410 |
|
420 | 411 | Client = Prelude
|
|
0 commit comments