mixpeek 0.1__tar.gz → 0.1.1__tar.gz

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 (189) hide show
  1. mixpeek-0.1.1/PKG-INFO +441 -0
  2. mixpeek-0.1.1/README-PYPI.md +419 -0
  3. mixpeek-0.1.1/py.typed +1 -0
  4. mixpeek-0.1.1/pyproject.toml +54 -0
  5. mixpeek-0.1.1/src/mixpeek/__init__.py +9 -0
  6. mixpeek-0.1.1/src/mixpeek/_hooks/__init__.py +5 -0
  7. mixpeek-0.1.1/src/mixpeek/_hooks/registration.py +13 -0
  8. mixpeek-0.1.1/src/mixpeek/_hooks/sdkhooks.py +76 -0
  9. mixpeek-0.1.1/src/mixpeek/_hooks/types.py +94 -0
  10. mixpeek-0.1.1/src/mixpeek/_version.py +12 -0
  11. mixpeek-0.1.1/src/mixpeek/assets.py +1561 -0
  12. mixpeek-0.1.1/src/mixpeek/basesdk.py +350 -0
  13. mixpeek-0.1.1/src/mixpeek/collections.py +1029 -0
  14. mixpeek-0.1.1/src/mixpeek/featureextractors.py +205 -0
  15. mixpeek-0.1.1/src/mixpeek/features.py +1181 -0
  16. mixpeek-0.1.1/src/mixpeek/health.py +167 -0
  17. mixpeek-0.1.1/src/mixpeek/httpclient.py +84 -0
  18. mixpeek-0.1.1/src/mixpeek/ingest.py +831 -0
  19. mixpeek-0.1.1/src/mixpeek/interactions.py +221 -0
  20. mixpeek-0.1.1/src/mixpeek/models/__init__.py +758 -0
  21. mixpeek-0.1.1/src/mixpeek/models/actionusage.py +16 -0
  22. mixpeek-0.1.1/src/mixpeek/models/apierror.py +22 -0
  23. mixpeek-0.1.1/src/mixpeek/models/apikey.py +25 -0
  24. mixpeek-0.1.1/src/mixpeek/models/apikeyupdate.py +49 -0
  25. mixpeek-0.1.1/src/mixpeek/models/assetfeatures.py +55 -0
  26. mixpeek-0.1.1/src/mixpeek/models/assetresponse.py +166 -0
  27. mixpeek-0.1.1/src/mixpeek/models/assets_model_searchquery.py +21 -0
  28. mixpeek-0.1.1/src/mixpeek/models/assetupdate.py +28 -0
  29. mixpeek-0.1.1/src/mixpeek/models/availableindexesresponse.py +23 -0
  30. mixpeek-0.1.1/src/mixpeek/models/availablemodels.py +12 -0
  31. mixpeek-0.1.1/src/mixpeek/models/boolindexparams.py +18 -0
  32. mixpeek-0.1.1/src/mixpeek/models/collectionmodel.py +70 -0
  33. mixpeek-0.1.1/src/mixpeek/models/collectionresult.py +73 -0
  34. mixpeek-0.1.1/src/mixpeek/models/create_api_key_organizations_users_user_email_api_keys_postop.py +23 -0
  35. mixpeek-0.1.1/src/mixpeek/models/create_collection_collections_postop.py +62 -0
  36. mixpeek-0.1.1/src/mixpeek/models/create_interaction_features_search_interactions_postop.py +59 -0
  37. mixpeek-0.1.1/src/mixpeek/models/createcollectionrequest.py +59 -0
  38. mixpeek-0.1.1/src/mixpeek/models/createnamespacerequest.py +62 -0
  39. mixpeek-0.1.1/src/mixpeek/models/datetimeindexparams.py +18 -0
  40. mixpeek-0.1.1/src/mixpeek/models/dateusage.py +22 -0
  41. mixpeek-0.1.1/src/mixpeek/models/db_model_paginationresponse.py +59 -0
  42. mixpeek-0.1.1/src/mixpeek/models/db_model_taskresponse.py +20 -0
  43. mixpeek-0.1.1/src/mixpeek/models/delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py +23 -0
  44. mixpeek-0.1.1/src/mixpeek/models/delete_asset_assets_asset_id_deleteop.py +57 -0
  45. mixpeek-0.1.1/src/mixpeek/models/delete_collection_collections_collection_deleteop.py +59 -0
  46. mixpeek-0.1.1/src/mixpeek/models/delete_feature_features_feature_id_deleteop.py +57 -0
  47. mixpeek-0.1.1/src/mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +59 -0
  48. mixpeek-0.1.1/src/mixpeek/models/delete_namespace_namespaces_namespace_deleteop.py +18 -0
  49. mixpeek-0.1.1/src/mixpeek/models/delete_user_organizations_users_user_email_deleteop.py +16 -0
  50. mixpeek-0.1.1/src/mixpeek/models/denseembedding.py +16 -0
  51. mixpeek-0.1.1/src/mixpeek/models/embeddingrequest.py +59 -0
  52. mixpeek-0.1.1/src/mixpeek/models/embeddingresponse.py +64 -0
  53. mixpeek-0.1.1/src/mixpeek/models/errormessage.py +13 -0
  54. mixpeek-0.1.1/src/mixpeek/models/errorresponse.py +21 -0
  55. mixpeek-0.1.1/src/mixpeek/models/facedetectsettings.py +52 -0
  56. mixpeek-0.1.1/src/mixpeek/models/featureextractionembeddingrequest.py +54 -0
  57. mixpeek-0.1.1/src/mixpeek/models/featureresponse.py +74 -0
  58. mixpeek-0.1.1/src/mixpeek/models/features_model_paginationresponse.py +59 -0
  59. mixpeek-0.1.1/src/mixpeek/models/featureupdaterequest.py +21 -0
  60. mixpeek-0.1.1/src/mixpeek/models/filtercondition.py +74 -0
  61. mixpeek-0.1.1/src/mixpeek/models/floatindexparams.py +18 -0
  62. mixpeek-0.1.1/src/mixpeek/models/full_asset_update_assets_asset_id_putop.py +69 -0
  63. mixpeek-0.1.1/src/mixpeek/models/full_feature_update_features_feature_id_putop.py +69 -0
  64. mixpeek-0.1.1/src/mixpeek/models/geoindexparams.py +18 -0
  65. mixpeek-0.1.1/src/mixpeek/models/get_asset_assets_asset_id_getop.py +73 -0
  66. mixpeek-0.1.1/src/mixpeek/models/get_asset_with_features_assets_asset_id_features_getop.py +73 -0
  67. mixpeek-0.1.1/src/mixpeek/models/get_collection_collections_collection_getop.py +59 -0
  68. mixpeek-0.1.1/src/mixpeek/models/get_feature_features_feature_id_getop.py +70 -0
  69. mixpeek-0.1.1/src/mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +59 -0
  70. mixpeek-0.1.1/src/mixpeek/models/get_namespace_namespaces_namespace_getop.py +18 -0
  71. mixpeek-0.1.1/src/mixpeek/models/get_task_tasks_task_id_getop.py +57 -0
  72. mixpeek-0.1.1/src/mixpeek/models/get_user_organizations_users_user_email_getop.py +16 -0
  73. mixpeek-0.1.1/src/mixpeek/models/groupbyoptions.py +71 -0
  74. mixpeek-0.1.1/src/mixpeek/models/groupbyoptionsasset.py +71 -0
  75. mixpeek-0.1.1/src/mixpeek/models/groupedassetdata.py +18 -0
  76. mixpeek-0.1.1/src/mixpeek/models/healthcheckresponse.py +13 -0
  77. mixpeek-0.1.1/src/mixpeek/models/httpvalidationerror.py +21 -0
  78. mixpeek-0.1.1/src/mixpeek/models/imagedescribesettings.py +82 -0
  79. mixpeek-0.1.1/src/mixpeek/models/imagedetectsettings.py +53 -0
  80. mixpeek-0.1.1/src/mixpeek/models/imagereadsettings.py +71 -0
  81. mixpeek-0.1.1/src/mixpeek/models/imagesettings.py +79 -0
  82. mixpeek-0.1.1/src/mixpeek/models/ingest_image_url_ingest_images_url_postop.py +59 -0
  83. mixpeek-0.1.1/src/mixpeek/models/ingest_text_ingest_text_postop.py +59 -0
  84. mixpeek-0.1.1/src/mixpeek/models/ingest_video_url_ingest_videos_url_postop.py +59 -0
  85. mixpeek-0.1.1/src/mixpeek/models/inputtype.py +11 -0
  86. mixpeek-0.1.1/src/mixpeek/models/integerindexparams.py +24 -0
  87. mixpeek-0.1.1/src/mixpeek/models/interactionresponse.py +87 -0
  88. mixpeek-0.1.1/src/mixpeek/models/interactiontype.py +11 -0
  89. mixpeek-0.1.1/src/mixpeek/models/jsonimageoutputsettings.py +55 -0
  90. mixpeek-0.1.1/src/mixpeek/models/jsontextoutputsettings.py +55 -0
  91. mixpeek-0.1.1/src/mixpeek/models/jsonvideooutputsettings.py +55 -0
  92. mixpeek-0.1.1/src/mixpeek/models/keywordindexparams.py +21 -0
  93. mixpeek-0.1.1/src/mixpeek/models/kill_task_tasks_task_id_deleteop.py +57 -0
  94. mixpeek-0.1.1/src/mixpeek/models/list_assets_assets_postop.py +77 -0
  95. mixpeek-0.1.1/src/mixpeek/models/list_collections_collections_getop.py +65 -0
  96. mixpeek-0.1.1/src/mixpeek/models/list_features_features_postop.py +79 -0
  97. mixpeek-0.1.1/src/mixpeek/models/list_interactions_features_search_interactions_getop.py +96 -0
  98. mixpeek-0.1.1/src/mixpeek/models/listassetsrequest.py +75 -0
  99. mixpeek-0.1.1/src/mixpeek/models/listassetsresponse.py +22 -0
  100. mixpeek-0.1.1/src/mixpeek/models/listcollectionsresponse.py +22 -0
  101. mixpeek-0.1.1/src/mixpeek/models/listfeaturesrequest.py +77 -0
  102. mixpeek-0.1.1/src/mixpeek/models/listfeaturesresponse.py +22 -0
  103. mixpeek-0.1.1/src/mixpeek/models/logicaloperator_input.py +88 -0
  104. mixpeek-0.1.1/src/mixpeek/models/logicaloperator_output.py +103 -0
  105. mixpeek-0.1.1/src/mixpeek/models/logodetectsettings.py +52 -0
  106. mixpeek-0.1.1/src/mixpeek/models/modality.py +13 -0
  107. mixpeek-0.1.1/src/mixpeek/models/modeldetails.py +57 -0
  108. mixpeek-0.1.1/src/mixpeek/models/namespaceresponse.py +62 -0
  109. mixpeek-0.1.1/src/mixpeek/models/organizationmodel.py +45 -0
  110. mixpeek-0.1.1/src/mixpeek/models/partial_asset_update_assets_asset_id_patchop.py +69 -0
  111. mixpeek-0.1.1/src/mixpeek/models/payloadindexconfig.py +94 -0
  112. mixpeek-0.1.1/src/mixpeek/models/payloadindextype.py +17 -0
  113. mixpeek-0.1.1/src/mixpeek/models/payloadschematype.py +15 -0
  114. mixpeek-0.1.1/src/mixpeek/models/percolaterequest.py +57 -0
  115. mixpeek-0.1.1/src/mixpeek/models/permission.py +10 -0
  116. mixpeek-0.1.1/src/mixpeek/models/processimageurlinput.py +99 -0
  117. mixpeek-0.1.1/src/mixpeek/models/processtextinput.py +94 -0
  118. mixpeek-0.1.1/src/mixpeek/models/processvideourlinput.py +99 -0
  119. mixpeek-0.1.1/src/mixpeek/models/querysettings.py +56 -0
  120. mixpeek-0.1.1/src/mixpeek/models/rerankingoptions.py +47 -0
  121. mixpeek-0.1.1/src/mixpeek/models/search_assets_assets_search_postop.py +59 -0
  122. mixpeek-0.1.1/src/mixpeek/models/search_features_features_search_postop.py +96 -0
  123. mixpeek-0.1.1/src/mixpeek/models/search_model_searchquery_input.py +76 -0
  124. mixpeek-0.1.1/src/mixpeek/models/searchassetsrequest.py +78 -0
  125. mixpeek-0.1.1/src/mixpeek/models/searchinteraction.py +82 -0
  126. mixpeek-0.1.1/src/mixpeek/models/searchquery_output.py +79 -0
  127. mixpeek-0.1.1/src/mixpeek/models/searchrequestfeatures_input.py +151 -0
  128. mixpeek-0.1.1/src/mixpeek/models/searchrequestfeatures_output.py +151 -0
  129. mixpeek-0.1.1/src/mixpeek/models/sortoption.py +28 -0
  130. mixpeek-0.1.1/src/mixpeek/models/sparseembedding.py +21 -0
  131. mixpeek-0.1.1/src/mixpeek/models/tasks_model_taskresponse.py +24 -0
  132. mixpeek-0.1.1/src/mixpeek/models/taskstatus.py +16 -0
  133. mixpeek-0.1.1/src/mixpeek/models/textindexparams.py +31 -0
  134. mixpeek-0.1.1/src/mixpeek/models/textsettings.py +61 -0
  135. mixpeek-0.1.1/src/mixpeek/models/tokenizertype.py +11 -0
  136. mixpeek-0.1.1/src/mixpeek/models/update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py +30 -0
  137. mixpeek-0.1.1/src/mixpeek/models/update_collection_collections_collection_putop.py +74 -0
  138. mixpeek-0.1.1/src/mixpeek/models/update_namespace_namespaces_namespace_putop.py +28 -0
  139. mixpeek-0.1.1/src/mixpeek/models/updateassetrequest.py +60 -0
  140. mixpeek-0.1.1/src/mixpeek/models/updatenamespacerequest.py +26 -0
  141. mixpeek-0.1.1/src/mixpeek/models/usage.py +18 -0
  142. mixpeek-0.1.1/src/mixpeek/models/usermodel_input.py +36 -0
  143. mixpeek-0.1.1/src/mixpeek/models/usermodel_output.py +36 -0
  144. mixpeek-0.1.1/src/mixpeek/models/uuidindexparams.py +21 -0
  145. mixpeek-0.1.1/src/mixpeek/models/validationerror.py +26 -0
  146. mixpeek-0.1.1/src/mixpeek/models/vectormodel.py +11 -0
  147. mixpeek-0.1.1/src/mixpeek/models/vectortype.py +9 -0
  148. mixpeek-0.1.1/src/mixpeek/models/videodescribesettings.py +82 -0
  149. mixpeek-0.1.1/src/mixpeek/models/videodetectsettings.py +53 -0
  150. mixpeek-0.1.1/src/mixpeek/models/videoreadsettings.py +71 -0
  151. mixpeek-0.1.1/src/mixpeek/models/videosettings.py +101 -0
  152. mixpeek-0.1.1/src/mixpeek/models/videotranscriptionsettings.py +69 -0
  153. mixpeek-0.1.1/src/mixpeek/namespaces.py +1143 -0
  154. mixpeek-0.1.1/src/mixpeek/organizations.py +1508 -0
  155. mixpeek-0.1.1/src/mixpeek/py.typed +1 -0
  156. mixpeek-0.1.1/src/mixpeek/sdk.py +135 -0
  157. mixpeek-0.1.1/src/mixpeek/sdkconfiguration.py +45 -0
  158. mixpeek-0.1.1/src/mixpeek/searchinteractions.py +647 -0
  159. mixpeek-0.1.1/src/mixpeek/tasks.py +387 -0
  160. mixpeek-0.1.1/src/mixpeek/types/__init__.py +21 -0
  161. mixpeek-0.1.1/src/mixpeek/types/basemodel.py +39 -0
  162. mixpeek-0.1.1/src/mixpeek/utils/__init__.py +97 -0
  163. mixpeek-0.1.1/src/mixpeek/utils/annotations.py +55 -0
  164. mixpeek-0.1.1/src/mixpeek/utils/enums.py +34 -0
  165. mixpeek-0.1.1/src/mixpeek/utils/eventstreaming.py +238 -0
  166. mixpeek-0.1.1/src/mixpeek/utils/forms.py +202 -0
  167. mixpeek-0.1.1/src/mixpeek/utils/headers.py +136 -0
  168. mixpeek-0.1.1/src/mixpeek/utils/logger.py +27 -0
  169. mixpeek-0.1.1/src/mixpeek/utils/metadata.py +118 -0
  170. mixpeek-0.1.1/src/mixpeek/utils/queryparams.py +205 -0
  171. mixpeek-0.1.1/src/mixpeek/utils/requestbodies.py +66 -0
  172. mixpeek-0.1.1/src/mixpeek/utils/retries.py +217 -0
  173. mixpeek-0.1.1/src/mixpeek/utils/security.py +174 -0
  174. mixpeek-0.1.1/src/mixpeek/utils/serializers.py +215 -0
  175. mixpeek-0.1.1/src/mixpeek/utils/url.py +155 -0
  176. mixpeek-0.1.1/src/mixpeek/utils/values.py +134 -0
  177. mixpeek-0.1/LICENSE.rst +0 -20
  178. mixpeek-0.1/MANIFEST.in +0 -1
  179. mixpeek-0.1/PKG-INFO +0 -11
  180. mixpeek-0.1/README.md +0 -196
  181. mixpeek-0.1/mixpeek/__init__.py +0 -73
  182. mixpeek-0.1/mixpeek.egg-info/PKG-INFO +0 -11
  183. mixpeek-0.1/mixpeek.egg-info/SOURCES.txt +0 -12
  184. mixpeek-0.1/mixpeek.egg-info/dependency_links.txt +0 -1
  185. mixpeek-0.1/mixpeek.egg-info/requires.txt +0 -1
  186. mixpeek-0.1/mixpeek.egg-info/top_level.txt +0 -1
  187. mixpeek-0.1/pyproject.toml +0 -19
  188. mixpeek-0.1/setup.cfg +0 -8
  189. mixpeek-0.1/setup.py +0 -15
mixpeek-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,441 @@
1
+ Metadata-Version: 2.1
2
+ Name: mixpeek
3
+ Version: 0.1.1
4
+ Summary: Python Client SDK Generated by Speakeasy.
5
+ Author: Speakeasy
6
+ Requires-Python: >=3.8,<4.0
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.8
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Requires-Dist: eval-type-backport (>=0.2.0,<0.3.0)
15
+ Requires-Dist: httpx (>=0.28.1,<0.29.0)
16
+ Requires-Dist: jsonpath-python (>=1.0.6,<2.0.0)
17
+ Requires-Dist: pydantic (>=2.10.3,<2.11.0)
18
+ Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
19
+ Requires-Dist: typing-inspect (>=0.9.0,<0.10.0)
20
+ Description-Content-Type: text/markdown
21
+
22
+ # mixpeek
23
+
24
+ Developer-friendly & type-safe Python SDK specifically catered to leverage *mixpeek* API.
25
+
26
+ <div align="left">
27
+ <a href="https://www.speakeasy.com/?utm_source=mixpeek&utm_campaign=python"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
28
+ <a href="https://opensource.org/licenses/MIT">
29
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
30
+ </a>
31
+ </div>
32
+
33
+
34
+ <br /><br />
35
+ > [!IMPORTANT]
36
+ > This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/mixpeek/api). Delete this section before > publishing to a package manager.
37
+
38
+ <!-- Start Summary [summary] -->
39
+ ## Summary
40
+
41
+ Mixpeek API: This is the Mixpeek API, providing access to various endpoints for data processing and retrieval.
42
+ <!-- End Summary [summary] -->
43
+
44
+ <!-- Start Table of Contents [toc] -->
45
+ ## Table of Contents
46
+ <!-- $toc-max-depth=2 -->
47
+ * [mixpeek](#mixpeek)
48
+ * [SDK Installation](#sdk-installation)
49
+ * [IDE Support](#ide-support)
50
+ * [SDK Example Usage](#sdk-example-usage)
51
+ * [Available Resources and Operations](#available-resources-and-operations)
52
+ * [Retries](#retries)
53
+ * [Error Handling](#error-handling)
54
+ * [Server Selection](#server-selection)
55
+ * [Custom HTTP Client](#custom-http-client)
56
+ * [Debugging](#debugging)
57
+ * [Development](#development)
58
+ * [Maturity](#maturity)
59
+ * [Contributions](#contributions)
60
+
61
+ <!-- End Table of Contents [toc] -->
62
+
63
+ <!-- Start SDK Installation [installation] -->
64
+ ## SDK Installation
65
+
66
+ > [!TIP]
67
+ > To finish publishing your SDK to PyPI you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).
68
+
69
+
70
+ The SDK can be installed with either *pip* or *poetry* package managers.
71
+
72
+ ### PIP
73
+
74
+ *PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
75
+
76
+ ```bash
77
+ pip install git+<UNSET>.git
78
+ ```
79
+
80
+ ### Poetry
81
+
82
+ *Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
83
+
84
+ ```bash
85
+ poetry add git+<UNSET>.git
86
+ ```
87
+ <!-- End SDK Installation [installation] -->
88
+
89
+ <!-- Start IDE Support [idesupport] -->
90
+ ## IDE Support
91
+
92
+ ### PyCharm
93
+
94
+ Generally, the SDK will work well with most IDEs out of the box. However, when using PyCharm, you can enjoy much better integration with Pydantic by installing an additional plugin.
95
+
96
+ - [PyCharm Pydantic Plugin](https://docs.pydantic.dev/latest/integrations/pycharm/)
97
+ <!-- End IDE Support [idesupport] -->
98
+
99
+ <!-- Start SDK Example Usage [usage] -->
100
+ ## SDK Example Usage
101
+
102
+ ### Example
103
+
104
+ ```python
105
+ # Synchronous Example
106
+ from mixpeek import Mixpeek
107
+
108
+ with Mixpeek() as mixpeek:
109
+
110
+ res = mixpeek.organizations.get()
111
+
112
+ # Handle response
113
+ print(res)
114
+ ```
115
+
116
+ </br>
117
+
118
+ The same SDK client can also be used to make asychronous requests by importing asyncio.
119
+ ```python
120
+ # Asynchronous Example
121
+ import asyncio
122
+ from mixpeek import Mixpeek
123
+
124
+ async def main():
125
+ async with Mixpeek() as mixpeek:
126
+
127
+ res = await mixpeek.organizations.get_async()
128
+
129
+ # Handle response
130
+ print(res)
131
+
132
+ asyncio.run(main())
133
+ ```
134
+ <!-- End SDK Example Usage [usage] -->
135
+
136
+ <!-- Start Available Resources and Operations [operations] -->
137
+ ## Available Resources and Operations
138
+
139
+ <details open>
140
+ <summary>Available methods</summary>
141
+
142
+ ### [assets](docs/sdks/assets/README.md)
143
+
144
+ * [get](docs/sdks/assets/README.md#get) - Get Asset
145
+ * [delete](docs/sdks/assets/README.md#delete) - Delete Asset
146
+ * [update](docs/sdks/assets/README.md#update) - Full Asset Update
147
+ * [partial_update](docs/sdks/assets/README.md#partial_update) - Partial Asset Update
148
+ * [get_features](docs/sdks/assets/README.md#get_features) - Get Asset With Features
149
+ * [list](docs/sdks/assets/README.md#list) - List Assets
150
+ * [search](docs/sdks/assets/README.md#search) - Search Assets
151
+
152
+ ### [collections](docs/sdks/collections/README.md)
153
+
154
+ * [list](docs/sdks/collections/README.md#list) - List Collections
155
+ * [create](docs/sdks/collections/README.md#create) - Create Collection
156
+ * [delete](docs/sdks/collections/README.md#delete) - Delete Collection
157
+ * [update](docs/sdks/collections/README.md#update) - Update Collection
158
+ * [get](docs/sdks/collections/README.md#get) - Get Collection
159
+
160
+ ### [feature_extractors](docs/sdks/featureextractors/README.md)
161
+
162
+ * [extract_embeddings](docs/sdks/featureextractors/README.md#extract_embeddings) - Extract Embeddings
163
+
164
+ ### [features](docs/sdks/features/README.md)
165
+
166
+ * [get](docs/sdks/features/README.md#get) - Get Feature
167
+ * [delete](docs/sdks/features/README.md#delete) - Delete Feature
168
+ * [update](docs/sdks/features/README.md#update) - Full Feature Update
169
+ * [list](docs/sdks/features/README.md#list) - List Features
170
+ * [search](docs/sdks/features/README.md#search) - Search Features
171
+
172
+ ### [health](docs/sdks/health/README.md)
173
+
174
+ * [check](docs/sdks/health/README.md#check) - Healthcheck
175
+
176
+ ### [ingest](docs/sdks/ingest/README.md)
177
+
178
+ * [text](docs/sdks/ingest/README.md#text) - Ingest Text
179
+ * [video_from_url](docs/sdks/ingest/README.md#video_from_url) - Ingest Video Url
180
+ * [image_url](docs/sdks/ingest/README.md#image_url) - Ingest Image Url
181
+
182
+ ### [interactions](docs/sdks/interactions/README.md)
183
+
184
+ * [list](docs/sdks/interactions/README.md#list) - List Interactions
185
+
186
+
187
+ ### [namespaces](docs/sdks/namespaces/README.md)
188
+
189
+ * [create](docs/sdks/namespaces/README.md#create) - Create Namespace
190
+ * [list](docs/sdks/namespaces/README.md#list) - List Namespaces
191
+ * [delete](docs/sdks/namespaces/README.md#delete) - Delete Namespace
192
+ * [update](docs/sdks/namespaces/README.md#update) - Update Namespace
193
+ * [get](docs/sdks/namespaces/README.md#get) - Get Namespace
194
+ * [list_indexes](docs/sdks/namespaces/README.md#list_indexes) - List Available Indexes
195
+
196
+ ### [organizations](docs/sdks/organizations/README.md)
197
+
198
+ * [get](docs/sdks/organizations/README.md#get) - Get Organization
199
+ * [get_usage](docs/sdks/organizations/README.md#get_usage) - Get Usage
200
+ * [get_user](docs/sdks/organizations/README.md#get_user) - Get User
201
+ * [delete_user](docs/sdks/organizations/README.md#delete_user) - Delete User
202
+ * [add_user](docs/sdks/organizations/README.md#add_user) - Add User
203
+ * [create_api_key](docs/sdks/organizations/README.md#create_api_key) - Create Api Key
204
+ * [delete_api_key](docs/sdks/organizations/README.md#delete_api_key) - Delete Api Key
205
+ * [update_api_key](docs/sdks/organizations/README.md#update_api_key) - Update Api Key
206
+
207
+ ### [search_interactions](docs/sdks/searchinteractions/README.md)
208
+
209
+ * [create](docs/sdks/searchinteractions/README.md#create) - Create Interaction
210
+ * [get_interaction](docs/sdks/searchinteractions/README.md#get_interaction) - Get Interaction
211
+ * [delete](docs/sdks/searchinteractions/README.md#delete) - Delete Interaction
212
+
213
+ ### [tasks](docs/sdks/tasks/README.md)
214
+
215
+ * [delete](docs/sdks/tasks/README.md#delete) - Kill Task
216
+ * [get](docs/sdks/tasks/README.md#get) - Get Task Information
217
+
218
+ </details>
219
+ <!-- End Available Resources and Operations [operations] -->
220
+
221
+ <!-- Start Retries [retries] -->
222
+ ## Retries
223
+
224
+ Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
225
+
226
+ To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
227
+ ```python
228
+ from mixpeek import Mixpeek
229
+ from mixpeek.utils import BackoffStrategy, RetryConfig
230
+
231
+ with Mixpeek() as mixpeek:
232
+
233
+ res = mixpeek.organizations.get(,
234
+ RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
235
+
236
+ # Handle response
237
+ print(res)
238
+
239
+ ```
240
+
241
+ If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
242
+ ```python
243
+ from mixpeek import Mixpeek
244
+ from mixpeek.utils import BackoffStrategy, RetryConfig
245
+
246
+ with Mixpeek(
247
+ retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
248
+ ) as mixpeek:
249
+
250
+ res = mixpeek.organizations.get()
251
+
252
+ # Handle response
253
+ print(res)
254
+
255
+ ```
256
+ <!-- End Retries [retries] -->
257
+
258
+ <!-- Start Error Handling [errors] -->
259
+ ## Error Handling
260
+
261
+ Handling errors in this SDK should largely match your expectations. All operations return a response object or raise an exception.
262
+
263
+ By default, an API error will raise a models.APIError exception, which has the following properties:
264
+
265
+ | Property | Type | Description |
266
+ |-----------------|------------------|-----------------------|
267
+ | `.status_code` | *int* | The HTTP status code |
268
+ | `.message` | *str* | The error message |
269
+ | `.raw_response` | *httpx.Response* | The raw HTTP response |
270
+ | `.body` | *str* | The response content |
271
+
272
+ When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `get_async` method may raise the following exceptions:
273
+
274
+ | Error Type | Status Code | Content Type |
275
+ | -------------------------- | ----------------------- | ---------------- |
276
+ | models.ErrorResponse | 400, 401, 403, 404, 500 | application/json |
277
+ | models.HTTPValidationError | 422 | application/json |
278
+ | models.APIError | 4XX, 5XX | \*/\* |
279
+
280
+ ### Example
281
+
282
+ ```python
283
+ from mixpeek import Mixpeek, models
284
+
285
+ with Mixpeek() as mixpeek:
286
+ res = None
287
+ try:
288
+
289
+ res = mixpeek.organizations.get()
290
+
291
+ # Handle response
292
+ print(res)
293
+
294
+ except models.ErrorResponse as e:
295
+ # handle e.data: models.ErrorResponseData
296
+ raise(e)
297
+ except models.HTTPValidationError as e:
298
+ # handle e.data: models.HTTPValidationErrorData
299
+ raise(e)
300
+ except models.APIError as e:
301
+ # handle exception
302
+ raise(e)
303
+ ```
304
+ <!-- End Error Handling [errors] -->
305
+
306
+ <!-- Start Server Selection [server] -->
307
+ ## Server Selection
308
+
309
+ ### Override Server URL Per-Client
310
+
311
+ The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
312
+ ```python
313
+ from mixpeek import Mixpeek
314
+
315
+ with Mixpeek(
316
+ server_url="https://api.mixpeek.com/",
317
+ ) as mixpeek:
318
+
319
+ res = mixpeek.organizations.get()
320
+
321
+ # Handle response
322
+ print(res)
323
+
324
+ ```
325
+ <!-- End Server Selection [server] -->
326
+
327
+ <!-- Start Custom HTTP Client [http-client] -->
328
+ ## Custom HTTP Client
329
+
330
+ The Python SDK makes API calls using the [httpx](https://www.python-httpx.org/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with your own HTTP client instance.
331
+ Depending on whether you are using the sync or async version of the SDK, you can pass an instance of `HttpClient` or `AsyncHttpClient` respectively, which are Protocol's ensuring that the client has the necessary methods to make API calls.
332
+ This allows you to wrap the client with your own custom logic, such as adding custom headers, logging, or error handling, or you can just pass an instance of `httpx.Client` or `httpx.AsyncClient` directly.
333
+
334
+ For example, you could specify a header for every request that this sdk makes as follows:
335
+ ```python
336
+ from mixpeek import Mixpeek
337
+ import httpx
338
+
339
+ http_client = httpx.Client(headers={"x-custom-header": "someValue"})
340
+ s = Mixpeek(client=http_client)
341
+ ```
342
+
343
+ or you could wrap the client with your own custom logic:
344
+ ```python
345
+ from mixpeek import Mixpeek
346
+ from mixpeek.httpclient import AsyncHttpClient
347
+ import httpx
348
+
349
+ class CustomClient(AsyncHttpClient):
350
+ client: AsyncHttpClient
351
+
352
+ def __init__(self, client: AsyncHttpClient):
353
+ self.client = client
354
+
355
+ async def send(
356
+ self,
357
+ request: httpx.Request,
358
+ *,
359
+ stream: bool = False,
360
+ auth: Union[
361
+ httpx._types.AuthTypes, httpx._client.UseClientDefault, None
362
+ ] = httpx.USE_CLIENT_DEFAULT,
363
+ follow_redirects: Union[
364
+ bool, httpx._client.UseClientDefault
365
+ ] = httpx.USE_CLIENT_DEFAULT,
366
+ ) -> httpx.Response:
367
+ request.headers["Client-Level-Header"] = "added by client"
368
+
369
+ return await self.client.send(
370
+ request, stream=stream, auth=auth, follow_redirects=follow_redirects
371
+ )
372
+
373
+ def build_request(
374
+ self,
375
+ method: str,
376
+ url: httpx._types.URLTypes,
377
+ *,
378
+ content: Optional[httpx._types.RequestContent] = None,
379
+ data: Optional[httpx._types.RequestData] = None,
380
+ files: Optional[httpx._types.RequestFiles] = None,
381
+ json: Optional[Any] = None,
382
+ params: Optional[httpx._types.QueryParamTypes] = None,
383
+ headers: Optional[httpx._types.HeaderTypes] = None,
384
+ cookies: Optional[httpx._types.CookieTypes] = None,
385
+ timeout: Union[
386
+ httpx._types.TimeoutTypes, httpx._client.UseClientDefault
387
+ ] = httpx.USE_CLIENT_DEFAULT,
388
+ extensions: Optional[httpx._types.RequestExtensions] = None,
389
+ ) -> httpx.Request:
390
+ return self.client.build_request(
391
+ method,
392
+ url,
393
+ content=content,
394
+ data=data,
395
+ files=files,
396
+ json=json,
397
+ params=params,
398
+ headers=headers,
399
+ cookies=cookies,
400
+ timeout=timeout,
401
+ extensions=extensions,
402
+ )
403
+
404
+ s = Mixpeek(async_client=CustomClient(httpx.AsyncClient()))
405
+ ```
406
+ <!-- End Custom HTTP Client [http-client] -->
407
+
408
+ <!-- Start Debugging [debug] -->
409
+ ## Debugging
410
+
411
+ You can setup your SDK to emit debug logs for SDK requests and responses.
412
+
413
+ You can pass your own logger class directly into your SDK.
414
+ ```python
415
+ from mixpeek import Mixpeek
416
+ import logging
417
+
418
+ logging.basicConfig(level=logging.DEBUG)
419
+ s = Mixpeek(debug_logger=logging.getLogger("mixpeek"))
420
+ ```
421
+
422
+ You can also enable a default debug logger by setting an environment variable `MIXPEEK_DEBUG` to true.
423
+ <!-- End Debugging [debug] -->
424
+
425
+ <!-- Placeholder for Future Speakeasy SDK Sections -->
426
+
427
+ # Development
428
+
429
+ ## Maturity
430
+
431
+ This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
432
+ to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
433
+ looking for the latest version.
434
+
435
+ ## Contributions
436
+
437
+ While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
438
+ We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
439
+
440
+ ### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=mixpeek&utm_campaign=python)
441
+