mixpeek 0.6.8__py3-none-any.whl → 0.6.9__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 (85) hide show
  1. mixpeek/__init__.py +1 -106
  2. mixpeek/client.py +21 -65
  3. mixpeek/endpoints/connections.py +16 -0
  4. mixpeek/endpoints/embed.py +50 -0
  5. mixpeek/endpoints/extract.py +16 -0
  6. mixpeek/endpoints/generate.py +17 -0
  7. mixpeek/endpoints/tools.py +23 -0
  8. mixpeek/exceptions.py +13 -0
  9. mixpeek-0.6.9.dist-info/METADATA +68 -0
  10. mixpeek-0.6.9.dist-info/RECORD +13 -0
  11. {mixpeek-0.6.8.dist-info → mixpeek-0.6.9.dist-info}/WHEEL +2 -1
  12. mixpeek-0.6.9.dist-info/top_level.txt +1 -0
  13. mixpeek/base_client.py +0 -1015
  14. mixpeek/core/__init__.py +0 -27
  15. mixpeek/core/api_error.py +0 -15
  16. mixpeek/core/client_wrapper.py +0 -83
  17. mixpeek/core/datetime_utils.py +0 -28
  18. mixpeek/core/file.py +0 -38
  19. mixpeek/core/http_client.py +0 -130
  20. mixpeek/core/jsonable_encoder.py +0 -99
  21. mixpeek/core/pydantic_utilities.py +0 -12
  22. mixpeek/core/remove_none_from_dict.py +0 -11
  23. mixpeek/core/request_options.py +0 -32
  24. mixpeek/environment.py +0 -7
  25. mixpeek/errors/__init__.py +0 -17
  26. mixpeek/errors/bad_request_error.py +0 -9
  27. mixpeek/errors/forbidden_error.py +0 -9
  28. mixpeek/errors/internal_server_error.py +0 -9
  29. mixpeek/errors/not_found_error.py +0 -9
  30. mixpeek/errors/unauthorized_error.py +0 -9
  31. mixpeek/errors/unprocessable_entity_error.py +0 -9
  32. mixpeek/pipeline/__init__.py +0 -2
  33. mixpeek/pipeline/client.py +0 -482
  34. mixpeek/storage/__init__.py +0 -5
  35. mixpeek/storage/client.py +0 -145
  36. mixpeek/storage/sample/__init__.py +0 -2
  37. mixpeek/storage/sample/client.py +0 -286
  38. mixpeek/types/__init__.py +0 -81
  39. mixpeek/types/api_key.py +0 -27
  40. mixpeek/types/audio_params.py +0 -25
  41. mixpeek/types/configs_response.py +0 -38
  42. mixpeek/types/connection.py +0 -32
  43. mixpeek/types/connection_engine.py +0 -5
  44. mixpeek/types/csv_params.py +0 -25
  45. mixpeek/types/destination.py +0 -38
  46. mixpeek/types/embedding_response.py +0 -30
  47. mixpeek/types/error_message.py +0 -25
  48. mixpeek/types/error_response.py +0 -26
  49. mixpeek/types/extract_response.py +0 -31
  50. mixpeek/types/field_type.py +0 -5
  51. mixpeek/types/generation_response.py +0 -32
  52. mixpeek/types/html_params.py +0 -25
  53. mixpeek/types/http_validation_error.py +0 -26
  54. mixpeek/types/image_params.py +0 -28
  55. mixpeek/types/message.py +0 -33
  56. mixpeek/types/metadata.py +0 -28
  57. mixpeek/types/modality.py +0 -5
  58. mixpeek/types/model.py +0 -34
  59. mixpeek/types/models.py +0 -5
  60. mixpeek/types/pdf_params.py +0 -37
  61. mixpeek/types/pipeline_response.py +0 -45
  62. mixpeek/types/pipeline_task_response.py +0 -28
  63. mixpeek/types/ppt_params.py +0 -23
  64. mixpeek/types/pptx_params.py +0 -23
  65. mixpeek/types/settings.py +0 -31
  66. mixpeek/types/source.py +0 -39
  67. mixpeek/types/source_destination_mapping.py +0 -40
  68. mixpeek/types/txt_params.py +0 -23
  69. mixpeek/types/user.py +0 -32
  70. mixpeek/types/validation_error.py +0 -28
  71. mixpeek/types/validation_error_loc_item.py +0 -5
  72. mixpeek/types/video_params.py +0 -23
  73. mixpeek/types/workflow_code_response.py +0 -25
  74. mixpeek/types/workflow_response.py +0 -28
  75. mixpeek/types/workflow_settings.py +0 -26
  76. mixpeek/types/xlsx_params.py +0 -25
  77. mixpeek/user/__init__.py +0 -2
  78. mixpeek/user/client.py +0 -312
  79. mixpeek/version.py +0 -4
  80. mixpeek/workflow/__init__.py +0 -2
  81. mixpeek/workflow/client.py +0 -543
  82. mixpeek-0.6.8.dist-info/LICENSE +0 -21
  83. mixpeek-0.6.8.dist-info/METADATA +0 -145
  84. mixpeek-0.6.8.dist-info/RECORD +0 -76
  85. /mixpeek/{py.typed → endpoints/__init__.py} +0 -0
@@ -1,145 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mixpeek
3
- Version: 0.6.8
4
- Summary:
5
- Requires-Python: >=3.8,<4.0
6
- Classifier: Programming Language :: Python :: 3
7
- Classifier: Programming Language :: Python :: 3.8
8
- Classifier: Programming Language :: Python :: 3.9
9
- Classifier: Programming Language :: Python :: 3.10
10
- Classifier: Programming Language :: Python :: 3.11
11
- Requires-Dist: httpx (>=0.21.2)
12
- Requires-Dist: pydantic (>=1.9.2)
13
- Requires-Dist: typing_extensions (>=4.0.0)
14
- Description-Content-Type: text/markdown
15
-
16
- # Mixpeek Python Library
17
-
18
- [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
19
-
20
- The Mixpeek Python Library provides convenient access to the Mixpeek API from applications written in Python.
21
-
22
- ## Installation
23
- Add this dependency to your project's build file:
24
-
25
- ```bash
26
- pip install mixpeek
27
- # or
28
- poetry add mixpeek
29
- ```
30
-
31
- ## Usage
32
- Simply import `Mixpeek` and start making calls to our API.
33
-
34
- ```python
35
- from mixpeek.client import Mixpeek
36
-
37
- client = Mixpeek(
38
- api_key="..."
39
- )
40
- ```
41
-
42
- ## Async Client
43
-
44
- The SDK also exports an async client so that you can make non-blocking
45
- calls to our API.
46
-
47
- ```python
48
- from mixpeek.client import AsymcMixpeek
49
-
50
- client = AsyncMixpeek(
51
- api_key="..."
52
- )
53
- ```
54
-
55
- ## Exception Handling
56
- All errors thrown by the SDK will be subclasses of [`ApiError`](./src/mixpeek/core/api_error.py).
57
-
58
- ```python
59
- import mixpeek
60
-
61
- try:
62
- client.search(...)
63
- except mixpeek.core.ApiError as e: # Handle all errors
64
- print(e.status_code)
65
- print(e.body)
66
- ```
67
-
68
- ## Advanced
69
-
70
- ### Retries
71
- The Mixpeek SDK is instrumented with automatic retries with exponential backoff. A request will be
72
- retried as long as the request is deemed retriable and the number of retry attempts has not grown larger
73
- than the configured retry limit.
74
-
75
- A request is deemed retriable when any of the following HTTP status codes is returned:
76
-
77
- - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
78
- - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
79
- - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
80
- - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) (Internal Server Errors)
81
-
82
- Use the `max_retries` request option to configure this behavior.
83
-
84
- ```python
85
- from mixpeek.client import Mixpeek
86
-
87
- client = Mixpeek(...)
88
-
89
- # Override retries for a specific method
90
- client.search(..., {
91
- max_retries=5
92
- })
93
- ```
94
-
95
- ### Timeouts
96
- By default, requests time out after 60 seconds. You can configure this with a
97
- timeout option at the client or request level.
98
-
99
- ```python
100
- from mixpeek.client import Mixpeek
101
-
102
- client = Mixpeek(
103
- # All timeouts are 20 seconds
104
- timeout=20.0,
105
- )
106
-
107
- # Override timeout for a specific method
108
- client.search(..., {
109
- timeout_in_seconds=20.0
110
- })
111
- ```
112
-
113
- ### Custom HTTP client
114
- You can override the httpx client to customize it for your use-case. Some common use-cases
115
- include support for proxies and transports.
116
-
117
- ```python
118
- import httpx
119
-
120
- from mixpeek.client import Mixpeek
121
-
122
- client = Mixpeek(
123
- http_client=httpx.Client(
124
- proxies="http://my.test.proxy.example.com",
125
- transport=httpx.HTTPTransport(local_address="0.0.0.0"),
126
- ),
127
- )
128
- ```
129
-
130
- ## Beta Status
131
-
132
- This SDK is in beta, and there may be breaking changes between versions without a major
133
- version update. Therefore, we recommend pinning the package version to a specific version.
134
- This way, you can install the same version each time without breaking changes.
135
-
136
- ## Contributing
137
-
138
- While we value open-source contributions to this SDK, this library is generated programmatically.
139
- Additions made directly to this library would have to be moved over to our generation code,
140
- otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
141
- a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
142
- an issue first to discuss with us!
143
-
144
- On the other hand, contributions to the README are always very welcome!
145
-
@@ -1,76 +0,0 @@
1
- mixpeek/__init__.py,sha256=oC5q6VUOdDubpFT7PRtno7IUyzgiU9uSRyA7f0Ka0eY,2098
2
- mixpeek/base_client.py,sha256=1uzdYarkeRqusCBnhAvmN0qPyY69AYcNTbEwTFtQTjI,46069
3
- mixpeek/client.py,sha256=ka2f4aHaZwGq5ju3MnDLImlgCjce3BXXl4gw5I9HB90,2047
4
- mixpeek/core/__init__.py,sha256=1pNSKkwyQvMl_F0wohBqmoQAITptg3zlvCwsoSSzy7c,853
5
- mixpeek/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
6
- mixpeek/core/client_wrapper.py,sha256=vltxwevXl5skyFOuHF0Erpt69gvpSQyWz3D-WfaWd8Q,2622
7
- mixpeek/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
8
- mixpeek/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
9
- mixpeek/core/http_client.py,sha256=5ok6hqgZDJhg57EHvMnr0BBaHdG50QxFPKaCZ9aVWTc,5059
10
- mixpeek/core/jsonable_encoder.py,sha256=L6G68Py6gEo8n87rXwlkLPUyzHvXftEBjJZNb2tCuOA,3742
11
- mixpeek/core/pydantic_utilities.py,sha256=eCOGHdLoaxK_6QSFYKdN0LWJo3atTUXT3VPyqJh3rxM,329
12
- mixpeek/core/remove_none_from_dict.py,sha256=8m91FC3YuVem0Gm9_sXhJ2tGvP33owJJdrqCLEdowGw,330
13
- mixpeek/core/request_options.py,sha256=-3QoOMMHI2exIyHH6Q2MD7rpo_6w-i6zMAy0nqWTN8c,1420
14
- mixpeek/environment.py,sha256=-muYBZQwCYNISO0ic3Kkn_hPqfrB_VpOv_RpBoCKA6Q,156
15
- mixpeek/errors/__init__.py,sha256=whc3hN4Au19m_MxwQGjxUEfmSPyHqjmvOS0ESc0S7Qk,534
16
- mixpeek/errors/bad_request_error.py,sha256=xHpPeLG8lM_kLR1QpOHI4xOuWVFEOgQfQi37kOcB0wc,285
17
- mixpeek/errors/forbidden_error.py,sha256=CYoHSeucV5tjDJUTj19Dp6EoJZBvRswNAT9YhITApfE,284
18
- mixpeek/errors/internal_server_error.py,sha256=fMmyOAEwUto7X9Mp65KbL0XkvepZsmT6p1p3hIBEuFg,289
19
- mixpeek/errors/not_found_error.py,sha256=y5TwirUAu_TWO2d1Poh2ALf1IHj2v728z6AxrGexSVg,283
20
- mixpeek/errors/unauthorized_error.py,sha256=nH-QOnS5KLta5PB4I-UoETY4i_Uz3-mF9xCwScE1JOE,287
21
- mixpeek/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
22
- mixpeek/pipeline/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
23
- mixpeek/pipeline/client.py,sha256=HwyadQ5eLOVRElmmVrFJKrnYV54-YFGIkg_6RqyktXA,22854
24
- mixpeek/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- mixpeek/storage/__init__.py,sha256=DXpRqQD-Sr8yiyNQYMJeAq10AQAXryiMx42UW4mDNrk,108
26
- mixpeek/storage/client.py,sha256=DpR7n8Z1cgObvPHoU4u3QXQq5FoNRIsTrO8SRLdR9hA,7142
27
- mixpeek/storage/sample/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
28
- mixpeek/storage/sample/client.py,sha256=W6SzaOjJZvOqR3E55F2lcwY6MbKp2cDmB_rQVvvjbpQ,13546
29
- mixpeek/types/__init__.py,sha256=ap7tSQXWWqyaWSO6dDuCOfsNUPFOj_DsqVaoZ32_Y7U,2371
30
- mixpeek/types/api_key.py,sha256=J2aJwDor_EUtxNWdVgmzy-pfzF3RZFgAeGgf7KsHxoc,956
31
- mixpeek/types/audio_params.py,sha256=vAjrKV6lAUP9iYu9dOisnoWJvf97NxAJfvsE1TztSKo,882
32
- mixpeek/types/configs_response.py,sha256=-BmWVvAdjaU-z-WE9pM7zty-EFVsO5YHJb0p66QWByk,1150
33
- mixpeek/types/connection.py,sha256=T-Cch5wwXMSlvE1iOQ5SentCF-YHTfJHVVMv9wIxI5w,1087
34
- mixpeek/types/connection_engine.py,sha256=Gy43bjrZTkfiYtQQZGZFvJwHvHS0PxhZCf8l-LRrbRE,168
35
- mixpeek/types/csv_params.py,sha256=RU4eESt85wQa3AlxduzgRpIdEhBTsqoJyfyOKXYvUdo,881
36
- mixpeek/types/destination.py,sha256=oVvDCphe9XYmJSQFuu6Niu-uARLj7mImlTjvvDUykz0,1065
37
- mixpeek/types/embedding_response.py,sha256=7i3pFdYzlxvJpbqL6i7oTPdSbkwRlvRUMjNOK136qPE,1002
38
- mixpeek/types/error_message.py,sha256=Hcbf4MoxwBFY09dxU76lj2SeOk0zTHeJzFXAALTeu58,848
39
- mixpeek/types/error_response.py,sha256=LG5bbXIGVm-mbFNOxcrr7IFKtruKSqnMJTf3k4YkrJ0,938
40
- mixpeek/types/extract_response.py,sha256=Nb08OQLPHdo5XuY55dd-zuUObPKfx73XQdTMIEoIBbw,1039
41
- mixpeek/types/field_type.py,sha256=ihpE7AL8NwS8mZ9ItVeK26KBmrIa0tLbCag96Pk4dqE,160
42
- mixpeek/types/generation_response.py,sha256=W2JNu7h-6EAacMAslvxKurFZablOe5fc_ysYdU_UTFg,1087
43
- mixpeek/types/html_params.py,sha256=aS_7s5aReIdGRW2OtH1QwLSl2WfVUUAx8pGd6EAruPI,892
44
- mixpeek/types/http_validation_error.py,sha256=u4t-1U0DI0u3Zj_Oz7AmGmpL4sqBzoS_5nZHImWQbmM,953
45
- mixpeek/types/image_params.py,sha256=VSs9K56-RqpySo31mBD1g8qlu5X3ycFPiRsGYkuuiDg,1016
46
- mixpeek/types/message.py,sha256=L80CYQdRpL6mYKnPTil3RqstoYBx93bHdrFRrTrPtvA,1006
47
- mixpeek/types/metadata.py,sha256=Sq85K-ogh0IBJoYw_wQuSCyW9Wod3ZE1hTB68ZZ1Dwg,990
48
- mixpeek/types/modality.py,sha256=HwFmbfcJfBKLYg680oQLkGSiQETfNPqiB-mQO7X8sjA,102
49
- mixpeek/types/model.py,sha256=S5pyWqGfH6QuSuTqg7LNx8TNKwBhut5DyD8g1YvTW7I,1025
50
- mixpeek/types/models.py,sha256=RnTOybDVTkVIWrZRY18cULyqjGGTWE2ZJuYT0lYv5lo,173
51
- mixpeek/types/pdf_params.py,sha256=LbpGJOaJm6131Vsnt0A8xc8TdXds6H-nyyFgKvzwG2c,1592
52
- mixpeek/types/pipeline_response.py,sha256=-Zryna055brPZzuUkab3ecMAmJFFl0ZXEkYUGC-BcIs,1529
53
- mixpeek/types/pipeline_task_response.py,sha256=tfhh3kuOkl1wIPkJWrWHzsvGZfFT1tpXZQy8EpWA92Q,921
54
- mixpeek/types/ppt_params.py,sha256=S_RvJYiz_gCGzlnxoc4x97vtHJ2StuuGS7fXhSKTdpg,831
55
- mixpeek/types/pptx_params.py,sha256=E8Bs9_jDspxYEUp_N0iQ-EJIKoDs94mFETIykqKrs-M,832
56
- mixpeek/types/settings.py,sha256=6VPG8Wp3rjaE62KLVZhuKXnalPCaNpiCkTp_04UkmG0,1166
57
- mixpeek/types/source.py,sha256=ahyV1L6Ipk32-8KvZy3t84BMootEtq7NUGHnpoOw28E,1133
58
- mixpeek/types/source_destination_mapping.py,sha256=3yFQ3nLyGEgwysyrTPZXnFqI1FAWmq_zHOfIeFXzwrc,1159
59
- mixpeek/types/txt_params.py,sha256=fLfXSSUg591m91VOVqR-s0f3lTLdVTu1vkn3s5VE4WI,831
60
- mixpeek/types/user.py,sha256=Rx0FCMZ6nmJmogBgp6TAfonQMWP4nBefMx_NCderzZY,1192
61
- mixpeek/types/validation_error.py,sha256=yqombbKLBSzTPFn6CJH_hbo7tpS68T3JvMdd7kBtO1g,972
62
- mixpeek/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
63
- mixpeek/types/video_params.py,sha256=LM0h6FTALgUFdP_EE1Bf7BGu2ANNx5L1Rf5ICbdEdqo,833
64
- mixpeek/types/workflow_code_response.py,sha256=75UMn_UyHI-5gsO0KjYTySE84Fty-PK0BcNuZ4t3Ols,867
65
- mixpeek/types/workflow_response.py,sha256=nsJtUTQUhbd57uYR4M1bMgwpwaCc34_rZgMIPxYJPR8,1002
66
- mixpeek/types/workflow_settings.py,sha256=mmQX8BUQrslUunwyd8BXweXGOuVFAgOQ1EyjgKKTY0A,946
67
- mixpeek/types/xlsx_params.py,sha256=vFpwbz53b5yf870x8CLxr89BEyq_Jbr9g9f8QJbSgEw,882
68
- mixpeek/user/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
69
- mixpeek/user/client.py,sha256=mOjjil-oOTj9l4e63okiCmBEdgCsRWRUgw4mwqj2bII,14926
70
- mixpeek/version.py,sha256=DfAuS0W7koTv3v8TZFxY1W5LvfaqOvG96P6Kc5fNnU0,75
71
- mixpeek/workflow/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
72
- mixpeek/workflow/client.py,sha256=XWGHeb7FG9DWNz5L3IdjGHfVaaAN3WfwBg-z6Zj--VY,24599
73
- mixpeek-0.6.8.dist-info/LICENSE,sha256=4Wv5VxfDWkCcIouCfq1NrLwPm24Z83PE8Nbi3KyoEeg,1064
74
- mixpeek-0.6.8.dist-info/METADATA,sha256=IwTgbJ7i9snNC4MkYp4hykcuiJdXS0swJooH9WNGEn8,3985
75
- mixpeek-0.6.8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
76
- mixpeek-0.6.8.dist-info/RECORD,,
File without changes