mixpeek 0.6.7__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 (84) 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.7.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 -989
  14. mixpeek/core/__init__.py +0 -25
  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 -103
  21. mixpeek/core/remove_none_from_dict.py +0 -11
  22. mixpeek/core/request_options.py +0 -32
  23. mixpeek/environment.py +0 -7
  24. mixpeek/errors/__init__.py +0 -17
  25. mixpeek/errors/bad_request_error.py +0 -9
  26. mixpeek/errors/forbidden_error.py +0 -9
  27. mixpeek/errors/internal_server_error.py +0 -9
  28. mixpeek/errors/not_found_error.py +0 -9
  29. mixpeek/errors/unauthorized_error.py +0 -9
  30. mixpeek/errors/unprocessable_entity_error.py +0 -9
  31. mixpeek/pipeline/__init__.py +0 -2
  32. mixpeek/pipeline/client.py +0 -474
  33. mixpeek/storage/__init__.py +0 -5
  34. mixpeek/storage/client.py +0 -145
  35. mixpeek/storage/sample/__init__.py +0 -2
  36. mixpeek/storage/sample/client.py +0 -282
  37. mixpeek/types/__init__.py +0 -81
  38. mixpeek/types/api_key.py +0 -31
  39. mixpeek/types/audio_params.py +0 -29
  40. mixpeek/types/configs_response.py +0 -42
  41. mixpeek/types/connection.py +0 -36
  42. mixpeek/types/connection_engine.py +0 -5
  43. mixpeek/types/csv_params.py +0 -29
  44. mixpeek/types/destination.py +0 -42
  45. mixpeek/types/embedding_response.py +0 -34
  46. mixpeek/types/error_message.py +0 -29
  47. mixpeek/types/error_response.py +0 -30
  48. mixpeek/types/extract_response.py +0 -35
  49. mixpeek/types/field_type.py +0 -5
  50. mixpeek/types/generation_response.py +0 -36
  51. mixpeek/types/html_params.py +0 -29
  52. mixpeek/types/http_validation_error.py +0 -30
  53. mixpeek/types/image_params.py +0 -32
  54. mixpeek/types/message.py +0 -37
  55. mixpeek/types/metadata.py +0 -32
  56. mixpeek/types/modality.py +0 -5
  57. mixpeek/types/model.py +0 -38
  58. mixpeek/types/models.py +0 -5
  59. mixpeek/types/pdf_params.py +0 -41
  60. mixpeek/types/pipeline_response.py +0 -49
  61. mixpeek/types/pipeline_task_response.py +0 -32
  62. mixpeek/types/ppt_params.py +0 -27
  63. mixpeek/types/pptx_params.py +0 -27
  64. mixpeek/types/settings.py +0 -35
  65. mixpeek/types/source.py +0 -43
  66. mixpeek/types/source_destination_mapping.py +0 -44
  67. mixpeek/types/txt_params.py +0 -27
  68. mixpeek/types/user.py +0 -36
  69. mixpeek/types/validation_error.py +0 -32
  70. mixpeek/types/validation_error_loc_item.py +0 -5
  71. mixpeek/types/video_params.py +0 -27
  72. mixpeek/types/workflow_code_response.py +0 -29
  73. mixpeek/types/workflow_response.py +0 -32
  74. mixpeek/types/workflow_settings.py +0 -30
  75. mixpeek/types/xlsx_params.py +0 -29
  76. mixpeek/user/__init__.py +0 -2
  77. mixpeek/user/client.py +0 -308
  78. mixpeek/version.py +0 -4
  79. mixpeek/workflow/__init__.py +0 -2
  80. mixpeek/workflow/client.py +0 -535
  81. mixpeek-0.6.7.dist-info/LICENSE +0 -21
  82. mixpeek-0.6.7.dist-info/METADATA +0 -145
  83. mixpeek-0.6.7.dist-info/RECORD +0 -75
  84. /mixpeek/{py.typed → endpoints/__init__.py} +0 -0
@@ -1,145 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: mixpeek
3
- Version: 0.6.7
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,75 +0,0 @@
1
- mixpeek/__init__.py,sha256=oC5q6VUOdDubpFT7PRtno7IUyzgiU9uSRyA7f0Ka0eY,2098
2
- mixpeek/base_client.py,sha256=j5FwPDpVqWeSs4UAwn65DXIeaKrtkyCgK1BF9T6X8Nk,44940
3
- mixpeek/client.py,sha256=ka2f4aHaZwGq5ju3MnDLImlgCjce3BXXl4gw5I9HB90,2047
4
- mixpeek/core/__init__.py,sha256=RWfyDqkzWsf8e3VGc3NV60MovfJbg5XWzNFGB2DZ0hA,790
5
- mixpeek/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
6
- mixpeek/core/client_wrapper.py,sha256=vs2_ztglixz9HZgAfz5damEvBko-3FfAiggT33fC7tw,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=IEhJedBpobt0zOfjW0pcH_sptQH3_frWtRF_s6i4HTM,3799
11
- mixpeek/core/remove_none_from_dict.py,sha256=8m91FC3YuVem0Gm9_sXhJ2tGvP33owJJdrqCLEdowGw,330
12
- mixpeek/core/request_options.py,sha256=-3QoOMMHI2exIyHH6Q2MD7rpo_6w-i6zMAy0nqWTN8c,1420
13
- mixpeek/environment.py,sha256=-muYBZQwCYNISO0ic3Kkn_hPqfrB_VpOv_RpBoCKA6Q,156
14
- mixpeek/errors/__init__.py,sha256=whc3hN4Au19m_MxwQGjxUEfmSPyHqjmvOS0ESc0S7Qk,534
15
- mixpeek/errors/bad_request_error.py,sha256=xHpPeLG8lM_kLR1QpOHI4xOuWVFEOgQfQi37kOcB0wc,285
16
- mixpeek/errors/forbidden_error.py,sha256=CYoHSeucV5tjDJUTj19Dp6EoJZBvRswNAT9YhITApfE,284
17
- mixpeek/errors/internal_server_error.py,sha256=fMmyOAEwUto7X9Mp65KbL0XkvepZsmT6p1p3hIBEuFg,289
18
- mixpeek/errors/not_found_error.py,sha256=y5TwirUAu_TWO2d1Poh2ALf1IHj2v728z6AxrGexSVg,283
19
- mixpeek/errors/unauthorized_error.py,sha256=nH-QOnS5KLta5PB4I-UoETY4i_Uz3-mF9xCwScE1JOE,287
20
- mixpeek/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
21
- mixpeek/pipeline/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
22
- mixpeek/pipeline/client.py,sha256=l5bv4trvLOTFoMSWtghBBdfDRYxrfH4WgOpyvxTkajY,22611
23
- mixpeek/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- mixpeek/storage/__init__.py,sha256=DXpRqQD-Sr8yiyNQYMJeAq10AQAXryiMx42UW4mDNrk,108
25
- mixpeek/storage/client.py,sha256=RRxkwuvGr0ozvthNxoKCeMtW71LhdbRggKexHleSMq8,7103
26
- mixpeek/storage/sample/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
27
- mixpeek/storage/sample/client.py,sha256=tIjSkyqTnp4jLSd4w7qW_Kt7aoYEZeP33_9LR7BBz5Q,13404
28
- mixpeek/types/__init__.py,sha256=ap7tSQXWWqyaWSO6dDuCOfsNUPFOj_DsqVaoZ32_Y7U,2371
29
- mixpeek/types/api_key.py,sha256=DnZf9eer296hvfC5PK4Hcrg7-LywKA_fSn68aaMzf5U,1013
30
- mixpeek/types/audio_params.py,sha256=3KowuNn3ClYTXWsFvKHd8XrR1G8hmydusRzQQ6cAp5I,939
31
- mixpeek/types/configs_response.py,sha256=x58BeJQr36oQhA61TFw6kbX8B-endOzfrs2L14FDZ8M,1198
32
- mixpeek/types/connection.py,sha256=b2dw5xagRgTuGjBB_NSW0JsVeSWGiFwkM6-E3jQc9IA,1144
33
- mixpeek/types/connection_engine.py,sha256=Gy43bjrZTkfiYtQQZGZFvJwHvHS0PxhZCf8l-LRrbRE,168
34
- mixpeek/types/csv_params.py,sha256=Adc3qwAOGpvRRAu3iV6ObN5EbLPnzmsj8IxTyDc0ZCM,938
35
- mixpeek/types/destination.py,sha256=jU4igBU4bKOghQzW4msvZ3e-FydYcgKp_gdbJ0LVdWk,1113
36
- mixpeek/types/embedding_response.py,sha256=lZc6MhLpcNFfb9p_I0FpQ2I7iqpL_xZB5a9jlvJeQ2I,1056
37
- mixpeek/types/error_message.py,sha256=8Wh_GdH3jOviv_FYLyzQH20qbFTSzKqqjdZlOe2tlbE,905
38
- mixpeek/types/error_response.py,sha256=SNectmi0OaoeWGAUvO7D0h40rf7jIEh3SLUtKxXs3ms,995
39
- mixpeek/types/extract_response.py,sha256=0rTJGg1mlnlC-jvvEcUDeCc1xqZTQk0KVKa2tRw-0oU,1093
40
- mixpeek/types/field_type.py,sha256=ihpE7AL8NwS8mZ9ItVeK26KBmrIa0tLbCag96Pk4dqE,160
41
- mixpeek/types/generation_response.py,sha256=dWqZoOfbZzNpEciX2_p46EHnY6fL1_gBjHcke2vdJ7c,1141
42
- mixpeek/types/html_params.py,sha256=5wylzm01kSNgIgMFMGmgj93LCJpubrX0gp2NuKxjVYE,949
43
- mixpeek/types/http_validation_error.py,sha256=C6i5Fm74cECbzWUDvUDgAO9g9ryIFeKesoeqTUNakJc,1010
44
- mixpeek/types/image_params.py,sha256=zdeXR_-EGw_7MKOF1D2zilRFiYJWohDnLVTo1VwLa7U,1070
45
- mixpeek/types/message.py,sha256=vvXf0byJJ4HWoAEyTyB1qnnSbu-H6OGIkv6ptDX-0R8,1057
46
- mixpeek/types/metadata.py,sha256=Us5RgZ4WT-2RhpMLs8tjzP42P-ZrjRhYL0NNup0zvto,1047
47
- mixpeek/types/modality.py,sha256=HwFmbfcJfBKLYg680oQLkGSiQETfNPqiB-mQO7X8sjA,102
48
- mixpeek/types/model.py,sha256=2jcHm1qJhUaug0oB2vCi-2S1gCewsghhnBPeHg4Q_Xw,1076
49
- mixpeek/types/models.py,sha256=RnTOybDVTkVIWrZRY18cULyqjGGTWE2ZJuYT0lYv5lo,173
50
- mixpeek/types/pdf_params.py,sha256=9RF3S2uuE4oyaoPlRfI52phqWyD8ViOz6tl25HXBlek,1646
51
- mixpeek/types/pipeline_response.py,sha256=dZZKcmG7kI8freXZNgrAq7NccatgGmsvkmw5ailk7-g,1577
52
- mixpeek/types/pipeline_task_response.py,sha256=4We2MKw_vqOhh8ItCtkHNL2aL1W3lHaYVVd8KSnJUy0,975
53
- mixpeek/types/ppt_params.py,sha256=FS9BjjiZStDhGtaImv8uz9lhQG6r6a9gBiUJsPzhca0,888
54
- mixpeek/types/pptx_params.py,sha256=W2hrSVvYjRxDrClFRoZKmM0dSb0YbCOjjT5dBiJMkZw,889
55
- mixpeek/types/settings.py,sha256=F_KpO1F5_yHyRXQr7SPn7QIjVa05ViiyXShlB_ODKsI,1223
56
- mixpeek/types/source.py,sha256=T_C2UPZGJjHBemMrPa8XN05JVBzRUpbw2VykW4HXEs0,1181
57
- mixpeek/types/source_destination_mapping.py,sha256=lLRKi4bM60oEuhny3MPbx2FIyRoWS1J8ZtwSRltSerU,1207
58
- mixpeek/types/txt_params.py,sha256=nongbYA0BWr4kHvNBDdA6yoNkg6TXTsP2AG3tstyLd8,888
59
- mixpeek/types/user.py,sha256=bZ4ROKzi-5c8pfHQ-nvM445m_d3p9DK-OjTbGhXY1-w,1249
60
- mixpeek/types/validation_error.py,sha256=dy6Ev1xmAsX_Wcck5AX8XvcVNP5xA-Lwlt7FTceiYqs,1029
61
- mixpeek/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
62
- mixpeek/types/video_params.py,sha256=SJlONUkncIVzFz37Q8iNNznYd10hdLgrMnRmxT5yz5E,890
63
- mixpeek/types/workflow_code_response.py,sha256=Ss20TnpKi43ql19PdSMJVCoDacyBQ3nMlUond0wgaYw,924
64
- mixpeek/types/workflow_response.py,sha256=t3fhcd780TUiCbFmX-2hRQY9oajjdE6g8AOy-lVS95A,1059
65
- mixpeek/types/workflow_settings.py,sha256=1YXWRIJUxra85keIOglvJra62rItRyuH8PYcG3pgRvE,1003
66
- mixpeek/types/xlsx_params.py,sha256=SXGQe3KhevNEdxjqIxxHmmuBrrk4IBetEcFaHq-_zQA,939
67
- mixpeek/user/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
68
- mixpeek/user/client.py,sha256=pHLUkVtYVlTodDtPHBCuY3HOMra_kW7GWrrqHYCluq4,14785
69
- mixpeek/version.py,sha256=DfAuS0W7koTv3v8TZFxY1W5LvfaqOvG96P6Kc5fNnU0,75
70
- mixpeek/workflow/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
71
- mixpeek/workflow/client.py,sha256=BbPm46yRHcUH8EJLnDrUpOv0iz98o8N3wiFIB93K494,24356
72
- mixpeek-0.6.7.dist-info/LICENSE,sha256=4Wv5VxfDWkCcIouCfq1NrLwPm24Z83PE8Nbi3KyoEeg,1064
73
- mixpeek-0.6.7.dist-info/METADATA,sha256=nGqey4KjRiV6mXnTjWJCPxuX9lznHXYi2WaG2Y7DZos,3985
74
- mixpeek-0.6.7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
75
- mixpeek-0.6.7.dist-info/RECORD,,
File without changes