mixpeek 0.8.3__py3-none-any.whl → 0.8.41__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. mixpeek/__init__.py +1 -0
  2. mixpeek/client.py +27 -0
  3. mixpeek/endpoints/collections.py +86 -0
  4. mixpeek/endpoints/embed.py +66 -0
  5. mixpeek/endpoints/index.py +51 -0
  6. mixpeek/endpoints/register.py +34 -0
  7. mixpeek/endpoints/search.py +67 -0
  8. mixpeek/endpoints/tasks.py +26 -0
  9. mixpeek/endpoints/tools.py +138 -0
  10. mixpeek/exceptions.py +13 -0
  11. mixpeek-0.8.41.dist-info/METADATA +375 -0
  12. mixpeek-0.8.41.dist-info/RECORD +15 -0
  13. {mixpeek-0.8.3.dist-info → mixpeek-0.8.41.dist-info}/WHEEL +2 -1
  14. mixpeek-0.8.41.dist-info/top_level.txt +1 -0
  15. mixpeek-0.8.3.dist-info/METADATA +0 -356
  16. mixpeek-0.8.3.dist-info/RECORD +0 -73
  17. mixpeek-0.8.3.dist-info/licenses/LICENSE +0 -201
  18. mixpeek_sdk/__init__.py +0 -93
  19. mixpeek_sdk/_base_client.py +0 -2041
  20. mixpeek_sdk/_client.py +0 -444
  21. mixpeek_sdk/_compat.py +0 -219
  22. mixpeek_sdk/_constants.py +0 -14
  23. mixpeek_sdk/_exceptions.py +0 -108
  24. mixpeek_sdk/_files.py +0 -123
  25. mixpeek_sdk/_models.py +0 -785
  26. mixpeek_sdk/_qs.py +0 -150
  27. mixpeek_sdk/_resource.py +0 -43
  28. mixpeek_sdk/_response.py +0 -826
  29. mixpeek_sdk/_streaming.py +0 -333
  30. mixpeek_sdk/_types.py +0 -217
  31. mixpeek_sdk/_utils/__init__.py +0 -55
  32. mixpeek_sdk/_utils/_logs.py +0 -25
  33. mixpeek_sdk/_utils/_proxy.py +0 -62
  34. mixpeek_sdk/_utils/_reflection.py +0 -42
  35. mixpeek_sdk/_utils/_streams.py +0 -12
  36. mixpeek_sdk/_utils/_sync.py +0 -81
  37. mixpeek_sdk/_utils/_transform.py +0 -382
  38. mixpeek_sdk/_utils/_typing.py +0 -120
  39. mixpeek_sdk/_utils/_utils.py +0 -397
  40. mixpeek_sdk/_version.py +0 -4
  41. mixpeek_sdk/lib/.keep +0 -4
  42. mixpeek_sdk/resources/__init__.py +0 -159
  43. mixpeek_sdk/resources/accounts/__init__.py +0 -33
  44. mixpeek_sdk/resources/accounts/accounts.py +0 -102
  45. mixpeek_sdk/resources/accounts/private.py +0 -232
  46. mixpeek_sdk/resources/agent/__init__.py +0 -33
  47. mixpeek_sdk/resources/agent/agent.py +0 -225
  48. mixpeek_sdk/resources/agent/task.py +0 -189
  49. mixpeek_sdk/resources/collections/__init__.py +0 -33
  50. mixpeek_sdk/resources/collections/collections.py +0 -459
  51. mixpeek_sdk/resources/collections/files.py +0 -679
  52. mixpeek_sdk/resources/describe.py +0 -338
  53. mixpeek_sdk/resources/embed.py +0 -234
  54. mixpeek_sdk/resources/index.py +0 -506
  55. mixpeek_sdk/resources/read.py +0 -183
  56. mixpeek_sdk/resources/recognize.py +0 -183
  57. mixpeek_sdk/resources/search.py +0 -542
  58. mixpeek_sdk/resources/tasks.py +0 -294
  59. mixpeek_sdk/resources/transcribe.py +0 -192
  60. mixpeek_sdk/types/__init__.py +0 -19
  61. mixpeek_sdk/types/accounts/__init__.py +0 -6
  62. mixpeek_sdk/types/accounts/private_update_params.py +0 -25
  63. mixpeek_sdk/types/accounts/user.py +0 -32
  64. mixpeek_sdk/types/agent/__init__.py +0 -3
  65. mixpeek_sdk/types/agent_create_params.py +0 -18
  66. mixpeek_sdk/types/agentresponse.py +0 -11
  67. mixpeek_sdk/types/collection_search_params.py +0 -29
  68. mixpeek_sdk/types/collections/__init__.py +0 -9
  69. mixpeek_sdk/types/collections/file_create_params.py +0 -31
  70. mixpeek_sdk/types/collections/file_full_params.py +0 -22
  71. mixpeek_sdk/types/collections/file_update_params.py +0 -18
  72. mixpeek_sdk/types/collections/fileresponse.py +0 -23
  73. mixpeek_sdk/types/collections/groupedfiledata.py +0 -38
  74. mixpeek_sdk/types/describe_upload_params.py +0 -21
  75. mixpeek_sdk/types/describe_url_params.py +0 -20
  76. mixpeek_sdk/types/embed_create_params.py +0 -29
  77. mixpeek_sdk/types/embeddingresponse.py +0 -15
  78. mixpeek_sdk/types/index_face_params.py +0 -23
  79. mixpeek_sdk/types/index_upload_params.py +0 -27
  80. mixpeek_sdk/types/index_url_params.py +0 -159
  81. mixpeek_sdk/types/search_text_params.py +0 -45
  82. mixpeek_sdk/types/search_upload_params.py +0 -25
  83. mixpeek_sdk/types/search_url_params.py +0 -45
  84. mixpeek_sdk/types/taskresponse.py +0 -15
  85. mixpeek_sdk/types/transcribe_url_params.py +0 -18
  86. /mixpeek_sdk/py.typed → /mixpeek/endpoints/__init__.py +0 -0
@@ -1,183 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import httpx
6
-
7
- from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
- from .._utils import strip_not_given
9
- from .._compat import cached_property
10
- from .._resource import SyncAPIResource, AsyncAPIResource
11
- from .._response import (
12
- to_raw_response_wrapper,
13
- to_streamed_response_wrapper,
14
- async_to_raw_response_wrapper,
15
- async_to_streamed_response_wrapper,
16
- )
17
- from .._base_client import make_request_options
18
-
19
- __all__ = ["RecognizeResource", "AsyncRecognizeResource"]
20
-
21
-
22
- class RecognizeResource(SyncAPIResource):
23
- @cached_property
24
- def with_raw_response(self) -> RecognizeResourceWithRawResponse:
25
- """
26
- This property can be used as a prefix for any HTTP method call to return the
27
- the raw response object instead of the parsed content.
28
-
29
- For more information, see https://www.github.com/mixpeek/python-client#accessing-raw-response-data-eg-headers
30
- """
31
- return RecognizeResourceWithRawResponse(self)
32
-
33
- @cached_property
34
- def with_streaming_response(self) -> RecognizeResourceWithStreamingResponse:
35
- """
36
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
-
38
- For more information, see https://www.github.com/mixpeek/python-client#with_streaming_response
39
- """
40
- return RecognizeResourceWithStreamingResponse(self)
41
-
42
- def create(
43
- self,
44
- *,
45
- authorization: str | NotGiven = NOT_GIVEN,
46
- index_id: str | NotGiven = NOT_GIVEN,
47
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
48
- # The extra values given here take precedence over values defined on the client or passed to this method.
49
- extra_headers: Headers | None = None,
50
- extra_query: Query | None = None,
51
- extra_body: Body | None = None,
52
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
53
- ) -> object:
54
- """
55
- Test
56
-
57
- Args:
58
- index_id: filter by organization
59
-
60
- extra_headers: Send extra headers
61
-
62
- extra_query: Add additional query parameters to the request
63
-
64
- extra_body: Add additional JSON properties to the request
65
-
66
- timeout: Override the client-level default timeout for this request, in seconds
67
- """
68
- extra_headers = {
69
- **strip_not_given(
70
- {
71
- "Authorization": authorization,
72
- "index-id": index_id,
73
- }
74
- ),
75
- **(extra_headers or {}),
76
- }
77
- return self._post(
78
- "/recognize/",
79
- options=make_request_options(
80
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
81
- ),
82
- cast_to=object,
83
- )
84
-
85
-
86
- class AsyncRecognizeResource(AsyncAPIResource):
87
- @cached_property
88
- def with_raw_response(self) -> AsyncRecognizeResourceWithRawResponse:
89
- """
90
- This property can be used as a prefix for any HTTP method call to return the
91
- the raw response object instead of the parsed content.
92
-
93
- For more information, see https://www.github.com/mixpeek/python-client#accessing-raw-response-data-eg-headers
94
- """
95
- return AsyncRecognizeResourceWithRawResponse(self)
96
-
97
- @cached_property
98
- def with_streaming_response(self) -> AsyncRecognizeResourceWithStreamingResponse:
99
- """
100
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
101
-
102
- For more information, see https://www.github.com/mixpeek/python-client#with_streaming_response
103
- """
104
- return AsyncRecognizeResourceWithStreamingResponse(self)
105
-
106
- async def create(
107
- self,
108
- *,
109
- authorization: str | NotGiven = NOT_GIVEN,
110
- index_id: str | NotGiven = NOT_GIVEN,
111
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
112
- # The extra values given here take precedence over values defined on the client or passed to this method.
113
- extra_headers: Headers | None = None,
114
- extra_query: Query | None = None,
115
- extra_body: Body | None = None,
116
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
117
- ) -> object:
118
- """
119
- Test
120
-
121
- Args:
122
- index_id: filter by organization
123
-
124
- extra_headers: Send extra headers
125
-
126
- extra_query: Add additional query parameters to the request
127
-
128
- extra_body: Add additional JSON properties to the request
129
-
130
- timeout: Override the client-level default timeout for this request, in seconds
131
- """
132
- extra_headers = {
133
- **strip_not_given(
134
- {
135
- "Authorization": authorization,
136
- "index-id": index_id,
137
- }
138
- ),
139
- **(extra_headers or {}),
140
- }
141
- return await self._post(
142
- "/recognize/",
143
- options=make_request_options(
144
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
145
- ),
146
- cast_to=object,
147
- )
148
-
149
-
150
- class RecognizeResourceWithRawResponse:
151
- def __init__(self, recognize: RecognizeResource) -> None:
152
- self._recognize = recognize
153
-
154
- self.create = to_raw_response_wrapper(
155
- recognize.create,
156
- )
157
-
158
-
159
- class AsyncRecognizeResourceWithRawResponse:
160
- def __init__(self, recognize: AsyncRecognizeResource) -> None:
161
- self._recognize = recognize
162
-
163
- self.create = async_to_raw_response_wrapper(
164
- recognize.create,
165
- )
166
-
167
-
168
- class RecognizeResourceWithStreamingResponse:
169
- def __init__(self, recognize: RecognizeResource) -> None:
170
- self._recognize = recognize
171
-
172
- self.create = to_streamed_response_wrapper(
173
- recognize.create,
174
- )
175
-
176
-
177
- class AsyncRecognizeResourceWithStreamingResponse:
178
- def __init__(self, recognize: AsyncRecognizeResource) -> None:
179
- self._recognize = recognize
180
-
181
- self.create = async_to_streamed_response_wrapper(
182
- recognize.create,
183
- )