26
26
from ._version import __version__
27
27
from .resources import status , parsers , queries , documents , collections
28
28
from ._streaming import Stream as Stream , AsyncStream as AsyncStream
29
- from ._exceptions import APIStatusError , ZeroentropyError
29
+ from ._exceptions import APIStatusError , ZeroEntropyError
30
30
from ._base_client import (
31
31
DEFAULT_MAX_RETRIES ,
32
32
SyncAPIClient ,
38
38
"Transport" ,
39
39
"ProxiesTypes" ,
40
40
"RequestOptions" ,
41
- "Zeroentropy " ,
42
- "AsyncZeroentropy " ,
41
+ "ZeroEntropy " ,
42
+ "AsyncZeroEntropy " ,
43
43
"Client" ,
44
44
"AsyncClient" ,
45
45
]
46
46
47
47
48
- class Zeroentropy (SyncAPIClient ):
48
+ class ZeroEntropy (SyncAPIClient ):
49
49
status : status .StatusResource
50
50
collections : collections .CollectionsResource
51
51
documents : documents .DocumentsResource
52
52
queries : queries .QueriesResource
53
53
parsers : parsers .ParsersResource
54
- with_raw_response : ZeroentropyWithRawResponse
55
- with_streaming_response : ZeroentropyWithStreamedResponse
54
+ with_raw_response : ZeroEntropyWithRawResponse
55
+ with_streaming_response : ZeroEntropyWithStreamedResponse
56
56
57
57
# client options
58
58
api_key : str
@@ -87,7 +87,7 @@ def __init__(
87
87
if api_key is None :
88
88
api_key = os .environ .get ("ZEROENTROPY_API_KEY" )
89
89
if api_key is None :
90
- raise ZeroentropyError (
90
+ raise ZeroEntropyError (
91
91
"The api_key client option must be set either by passing api_key to the client or by setting the ZEROENTROPY_API_KEY environment variable"
92
92
)
93
93
self .api_key = api_key
@@ -113,8 +113,8 @@ def __init__(
113
113
self .documents = documents .DocumentsResource (self )
114
114
self .queries = queries .QueriesResource (self )
115
115
self .parsers = parsers .ParsersResource (self )
116
- self .with_raw_response = ZeroentropyWithRawResponse (self )
117
- self .with_streaming_response = ZeroentropyWithStreamedResponse (self )
116
+ self .with_raw_response = ZeroEntropyWithRawResponse (self )
117
+ self .with_streaming_response = ZeroEntropyWithStreamedResponse (self )
118
118
119
119
@property
120
120
@override
@@ -221,14 +221,14 @@ def _make_status_error(
221
221
return APIStatusError (err_msg , response = response , body = body )
222
222
223
223
224
- class AsyncZeroentropy (AsyncAPIClient ):
224
+ class AsyncZeroEntropy (AsyncAPIClient ):
225
225
status : status .AsyncStatusResource
226
226
collections : collections .AsyncCollectionsResource
227
227
documents : documents .AsyncDocumentsResource
228
228
queries : queries .AsyncQueriesResource
229
229
parsers : parsers .AsyncParsersResource
230
- with_raw_response : AsyncZeroentropyWithRawResponse
231
- with_streaming_response : AsyncZeroentropyWithStreamedResponse
230
+ with_raw_response : AsyncZeroEntropyWithRawResponse
231
+ with_streaming_response : AsyncZeroEntropyWithStreamedResponse
232
232
233
233
# client options
234
234
api_key : str
@@ -263,7 +263,7 @@ def __init__(
263
263
if api_key is None :
264
264
api_key = os .environ .get ("ZEROENTROPY_API_KEY" )
265
265
if api_key is None :
266
- raise ZeroentropyError (
266
+ raise ZeroEntropyError (
267
267
"The api_key client option must be set either by passing api_key to the client or by setting the ZEROENTROPY_API_KEY environment variable"
268
268
)
269
269
self .api_key = api_key
@@ -289,8 +289,8 @@ def __init__(
289
289
self .documents = documents .AsyncDocumentsResource (self )
290
290
self .queries = queries .AsyncQueriesResource (self )
291
291
self .parsers = parsers .AsyncParsersResource (self )
292
- self .with_raw_response = AsyncZeroentropyWithRawResponse (self )
293
- self .with_streaming_response = AsyncZeroentropyWithStreamedResponse (self )
292
+ self .with_raw_response = AsyncZeroEntropyWithRawResponse (self )
293
+ self .with_streaming_response = AsyncZeroEntropyWithStreamedResponse (self )
294
294
295
295
@property
296
296
@override
@@ -397,42 +397,42 @@ def _make_status_error(
397
397
return APIStatusError (err_msg , response = response , body = body )
398
398
399
399
400
- class ZeroentropyWithRawResponse :
401
- def __init__ (self , client : Zeroentropy ) -> None :
400
+ class ZeroEntropyWithRawResponse :
401
+ def __init__ (self , client : ZeroEntropy ) -> None :
402
402
self .status = status .StatusResourceWithRawResponse (client .status )
403
403
self .collections = collections .CollectionsResourceWithRawResponse (client .collections )
404
404
self .documents = documents .DocumentsResourceWithRawResponse (client .documents )
405
405
self .queries = queries .QueriesResourceWithRawResponse (client .queries )
406
406
self .parsers = parsers .ParsersResourceWithRawResponse (client .parsers )
407
407
408
408
409
- class AsyncZeroentropyWithRawResponse :
410
- def __init__ (self , client : AsyncZeroentropy ) -> None :
409
+ class AsyncZeroEntropyWithRawResponse :
410
+ def __init__ (self , client : AsyncZeroEntropy ) -> None :
411
411
self .status = status .AsyncStatusResourceWithRawResponse (client .status )
412
412
self .collections = collections .AsyncCollectionsResourceWithRawResponse (client .collections )
413
413
self .documents = documents .AsyncDocumentsResourceWithRawResponse (client .documents )
414
414
self .queries = queries .AsyncQueriesResourceWithRawResponse (client .queries )
415
415
self .parsers = parsers .AsyncParsersResourceWithRawResponse (client .parsers )
416
416
417
417
418
- class ZeroentropyWithStreamedResponse :
419
- def __init__ (self , client : Zeroentropy ) -> None :
418
+ class ZeroEntropyWithStreamedResponse :
419
+ def __init__ (self , client : ZeroEntropy ) -> None :
420
420
self .status = status .StatusResourceWithStreamingResponse (client .status )
421
421
self .collections = collections .CollectionsResourceWithStreamingResponse (client .collections )
422
422
self .documents = documents .DocumentsResourceWithStreamingResponse (client .documents )
423
423
self .queries = queries .QueriesResourceWithStreamingResponse (client .queries )
424
424
self .parsers = parsers .ParsersResourceWithStreamingResponse (client .parsers )
425
425
426
426
427
- class AsyncZeroentropyWithStreamedResponse :
428
- def __init__ (self , client : AsyncZeroentropy ) -> None :
427
+ class AsyncZeroEntropyWithStreamedResponse :
428
+ def __init__ (self , client : AsyncZeroEntropy ) -> None :
429
429
self .status = status .AsyncStatusResourceWithStreamingResponse (client .status )
430
430
self .collections = collections .AsyncCollectionsResourceWithStreamingResponse (client .collections )
431
431
self .documents = documents .AsyncDocumentsResourceWithStreamingResponse (client .documents )
432
432
self .queries = queries .AsyncQueriesResourceWithStreamingResponse (client .queries )
433
433
self .parsers = parsers .AsyncParsersResourceWithStreamingResponse (client .parsers )
434
434
435
435
436
- Client = Zeroentropy
436
+ Client = ZeroEntropy
437
437
438
- AsyncClient = AsyncZeroentropy
438
+ AsyncClient = AsyncZeroEntropy
0 commit comments