mixpeek 0.18.13__py3-none-any.whl → 0.18.14__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.
mixpeek/users.py CHANGED
@@ -75,20 +75,26 @@ class Users(BaseSDK):
75
75
  retry_config=retry_config,
76
76
  )
77
77
 
78
- data: Any = None
78
+ response_data: Any = None
79
79
  if utils.match_response(http_res, "200", "application/json"):
80
80
  return utils.unmarshal_json(http_res.text, models.UserModelOutput)
81
81
  if utils.match_response(
82
82
  http_res, ["400", "401", "403", "404"], "application/json"
83
83
  ):
84
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
85
- raise models.ErrorResponse(data=data)
84
+ response_data = utils.unmarshal_json(
85
+ http_res.text, models.ErrorResponseData
86
+ )
87
+ raise models.ErrorResponse(data=response_data)
86
88
  if utils.match_response(http_res, "422", "application/json"):
87
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
88
- raise models.HTTPValidationError(data=data)
89
+ response_data = utils.unmarshal_json(
90
+ http_res.text, models.HTTPValidationErrorData
91
+ )
92
+ raise models.HTTPValidationError(data=response_data)
89
93
  if utils.match_response(http_res, "500", "application/json"):
90
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
91
- raise models.ErrorResponse(data=data)
94
+ response_data = utils.unmarshal_json(
95
+ http_res.text, models.ErrorResponseData
96
+ )
97
+ raise models.ErrorResponse(data=response_data)
92
98
  if utils.match_response(http_res, "4XX", "*"):
93
99
  http_res_text = utils.stream_to_text(http_res)
94
100
  raise models.APIError(
@@ -175,20 +181,26 @@ class Users(BaseSDK):
175
181
  retry_config=retry_config,
176
182
  )
177
183
 
178
- data: Any = None
184
+ response_data: Any = None
179
185
  if utils.match_response(http_res, "200", "application/json"):
180
186
  return utils.unmarshal_json(http_res.text, models.UserModelOutput)
181
187
  if utils.match_response(
182
188
  http_res, ["400", "401", "403", "404"], "application/json"
183
189
  ):
184
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
185
- raise models.ErrorResponse(data=data)
190
+ response_data = utils.unmarshal_json(
191
+ http_res.text, models.ErrorResponseData
192
+ )
193
+ raise models.ErrorResponse(data=response_data)
186
194
  if utils.match_response(http_res, "422", "application/json"):
187
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
188
- raise models.HTTPValidationError(data=data)
195
+ response_data = utils.unmarshal_json(
196
+ http_res.text, models.HTTPValidationErrorData
197
+ )
198
+ raise models.HTTPValidationError(data=response_data)
189
199
  if utils.match_response(http_res, "500", "application/json"):
190
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
191
- raise models.ErrorResponse(data=data)
200
+ response_data = utils.unmarshal_json(
201
+ http_res.text, models.ErrorResponseData
202
+ )
203
+ raise models.ErrorResponse(data=response_data)
192
204
  if utils.match_response(http_res, "4XX", "*"):
193
205
  http_res_text = await utils.stream_to_text_async(http_res)
194
206
  raise models.APIError(
@@ -278,20 +290,26 @@ class Users(BaseSDK):
278
290
  retry_config=retry_config,
279
291
  )
280
292
 
281
- data: Any = None
293
+ response_data: Any = None
282
294
  if utils.match_response(http_res, "200", "application/json"):
283
295
  return utils.unmarshal_json(http_res.text, Any)
284
296
  if utils.match_response(
285
297
  http_res, ["400", "401", "403", "404"], "application/json"
286
298
  ):
287
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
288
- raise models.ErrorResponse(data=data)
299
+ response_data = utils.unmarshal_json(
300
+ http_res.text, models.ErrorResponseData
301
+ )
302
+ raise models.ErrorResponse(data=response_data)
289
303
  if utils.match_response(http_res, "422", "application/json"):
290
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
291
- raise models.HTTPValidationError(data=data)
304
+ response_data = utils.unmarshal_json(
305
+ http_res.text, models.HTTPValidationErrorData
306
+ )
307
+ raise models.HTTPValidationError(data=response_data)
292
308
  if utils.match_response(http_res, "500", "application/json"):
293
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
294
- raise models.ErrorResponse(data=data)
309
+ response_data = utils.unmarshal_json(
310
+ http_res.text, models.ErrorResponseData
311
+ )
312
+ raise models.ErrorResponse(data=response_data)
295
313
  if utils.match_response(http_res, "4XX", "*"):
296
314
  http_res_text = utils.stream_to_text(http_res)
297
315
  raise models.APIError(
@@ -381,20 +399,26 @@ class Users(BaseSDK):
381
399
  retry_config=retry_config,
382
400
  )
383
401
 
384
- data: Any = None
402
+ response_data: Any = None
385
403
  if utils.match_response(http_res, "200", "application/json"):
386
404
  return utils.unmarshal_json(http_res.text, Any)
387
405
  if utils.match_response(
388
406
  http_res, ["400", "401", "403", "404"], "application/json"
389
407
  ):
390
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
391
- raise models.ErrorResponse(data=data)
408
+ response_data = utils.unmarshal_json(
409
+ http_res.text, models.ErrorResponseData
410
+ )
411
+ raise models.ErrorResponse(data=response_data)
392
412
  if utils.match_response(http_res, "422", "application/json"):
393
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
394
- raise models.HTTPValidationError(data=data)
413
+ response_data = utils.unmarshal_json(
414
+ http_res.text, models.HTTPValidationErrorData
415
+ )
416
+ raise models.HTTPValidationError(data=response_data)
395
417
  if utils.match_response(http_res, "500", "application/json"):
396
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
397
- raise models.ErrorResponse(data=data)
418
+ response_data = utils.unmarshal_json(
419
+ http_res.text, models.ErrorResponseData
420
+ )
421
+ raise models.ErrorResponse(data=response_data)
398
422
  if utils.match_response(http_res, "4XX", "*"):
399
423
  http_res_text = await utils.stream_to_text_async(http_res)
400
424
  raise models.APIError(
@@ -486,20 +510,26 @@ class Users(BaseSDK):
486
510
  retry_config=retry_config,
487
511
  )
488
512
 
489
- data: Any = None
513
+ response_data: Any = None
490
514
  if utils.match_response(http_res, "200", "application/json"):
491
515
  return utils.unmarshal_json(http_res.text, models.APIKey)
492
516
  if utils.match_response(
493
517
  http_res, ["400", "401", "403", "404"], "application/json"
494
518
  ):
495
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
496
- raise models.ErrorResponse(data=data)
519
+ response_data = utils.unmarshal_json(
520
+ http_res.text, models.ErrorResponseData
521
+ )
522
+ raise models.ErrorResponse(data=response_data)
497
523
  if utils.match_response(http_res, "422", "application/json"):
498
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
499
- raise models.HTTPValidationError(data=data)
524
+ response_data = utils.unmarshal_json(
525
+ http_res.text, models.HTTPValidationErrorData
526
+ )
527
+ raise models.HTTPValidationError(data=response_data)
500
528
  if utils.match_response(http_res, "500", "application/json"):
501
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
502
- raise models.ErrorResponse(data=data)
529
+ response_data = utils.unmarshal_json(
530
+ http_res.text, models.ErrorResponseData
531
+ )
532
+ raise models.ErrorResponse(data=response_data)
503
533
  if utils.match_response(http_res, "4XX", "*"):
504
534
  http_res_text = utils.stream_to_text(http_res)
505
535
  raise models.APIError(
@@ -591,20 +621,26 @@ class Users(BaseSDK):
591
621
  retry_config=retry_config,
592
622
  )
593
623
 
594
- data: Any = None
624
+ response_data: Any = None
595
625
  if utils.match_response(http_res, "200", "application/json"):
596
626
  return utils.unmarshal_json(http_res.text, models.APIKey)
597
627
  if utils.match_response(
598
628
  http_res, ["400", "401", "403", "404"], "application/json"
599
629
  ):
600
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
601
- raise models.ErrorResponse(data=data)
630
+ response_data = utils.unmarshal_json(
631
+ http_res.text, models.ErrorResponseData
632
+ )
633
+ raise models.ErrorResponse(data=response_data)
602
634
  if utils.match_response(http_res, "422", "application/json"):
603
- data = utils.unmarshal_json(http_res.text, models.HTTPValidationErrorData)
604
- raise models.HTTPValidationError(data=data)
635
+ response_data = utils.unmarshal_json(
636
+ http_res.text, models.HTTPValidationErrorData
637
+ )
638
+ raise models.HTTPValidationError(data=response_data)
605
639
  if utils.match_response(http_res, "500", "application/json"):
606
- data = utils.unmarshal_json(http_res.text, models.ErrorResponseData)
607
- raise models.ErrorResponse(data=data)
640
+ response_data = utils.unmarshal_json(
641
+ http_res.text, models.ErrorResponseData
642
+ )
643
+ raise models.ErrorResponse(data=response_data)
608
644
  if utils.match_response(http_res, "4XX", "*"):
609
645
  http_res_text = await utils.stream_to_text_async(http_res)
610
646
  raise models.APIError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mixpeek
3
- Version: 0.18.13
3
+ Version: 0.18.14
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9
@@ -78,6 +78,37 @@ pip install mixpeek
78
78
  ```bash
79
79
  poetry add mixpeek
80
80
  ```
81
+
82
+ ### Shell and script usage with `uv`
83
+
84
+ You can use this SDK in a Python shell with [uv](https://docs.astral.sh/uv/) and the `uvx` command that comes with it like so:
85
+
86
+ ```shell
87
+ uvx --from mixpeek python
88
+ ```
89
+
90
+ It's also possible to write a standalone Python script without needing to set up a whole project like so:
91
+
92
+ ```python
93
+ #!/usr/bin/env -S uv run --script
94
+ # /// script
95
+ # requires-python = ">=3.9"
96
+ # dependencies = [
97
+ # "mixpeek",
98
+ # ]
99
+ # ///
100
+
101
+ from mixpeek import Mixpeek
102
+
103
+ sdk = Mixpeek(
104
+ # SDK arguments
105
+ )
106
+
107
+ # Rest of script here...
108
+ ```
109
+
110
+ Once that is saved to a file, you can run it with `uv run script.py` where
111
+ `script.py` can be replaced with the actual file name.
81
112
  <!-- End SDK Installation [installation] -->
82
113
 
83
114
  <!-- Start IDE Support [idesupport] -->
@@ -3,15 +3,15 @@ mixpeek/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,11
3
3
  mixpeek/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
4
4
  mixpeek/_hooks/sdkhooks.py,sha256=T0xbVPw8mvvFszHZlrZdtFrJBovAqE-JQfw4dS9Xi7Y,2495
5
5
  mixpeek/_hooks/types.py,sha256=Qh9pO5ndynMrWpMLPkJUsOmAJ1AJHntJAXb5Yxe_a4o,2568
6
- mixpeek/_version.py,sha256=RGA1_FZtnT1LgBzBaYpSQEg8lUkF-FrOQChhI8MgaQk,458
7
- mixpeek/assets.py,sha256=-jYhngwslhsoc-Ni8MKxyk9pJl44uu2U0DRISErGt1Y,75518
6
+ mixpeek/_version.py,sha256=RHLlnEZzH2EnXxrXMjRq5HDN6bN-NtOESFmju2sAowk,458
7
+ mixpeek/assets.py,sha256=mWSeAD2lzan5eTLX-MrzLQsMDETekvKtGn8aUpg7YzI,77660
8
8
  mixpeek/basesdk.py,sha256=j_PZqE6WgIfx1cPCK5gAVn-rgPy9iLhUN5ELtefoEU0,11976
9
- mixpeek/collections.py,sha256=mh0ypu89kY78Lnfal7OdBrHsCpJ3O54DVR3ejhD5oSo,49021
10
- mixpeek/featureextractors.py,sha256=uMZncapRYj7dM_qAJ5hbT86Uyb9x1N1IraNMupGp7UE,9598
11
- mixpeek/features.py,sha256=ZlbCIHemhMYrULKlEDr1vqCkRQ9sVf5qy1DTlr2SsNo,58852
9
+ mixpeek/collections.py,sha256=HAnUG8JYwFbpM7sOIXyGINQ0wdGs-LsV9g2U3U9FePI,50551
10
+ mixpeek/featureextractors.py,sha256=7AKXR-5oteJ8GOYcqB0Mn3BpORENvGgzXYQ6M53vh_A,9904
11
+ mixpeek/features.py,sha256=l_-VmpwqRcawEwuduyFz-D0od21CqicEQNXkEdQoeyY,60382
12
12
  mixpeek/health.py,sha256=4i7KHGS2bYHCAE0nyHDw5g24MXcTZYVaTviQNKPW5o0,6742
13
13
  mixpeek/httpclient.py,sha256=N-D-srtDBykpfyVKacTY4upDGvNLqdWlEYqhJvta99E,4194
14
- mixpeek/ingestassets.py,sha256=yW6eDg9JpSQzWM1Zl-GqDIpacKrUItXBL6LOOaDo8q8,40442
14
+ mixpeek/ingestassets.py,sha256=W6ln_UHa7HeFTMIuqsq_Gjge5S2y6XokL39Ect-Vorw,41360
15
15
  mixpeek/models/__init__.py,sha256=-HwPt1eIHoKGw9ZMmBvHUmm-UxPFISwYXlc3qS4oBd0,31490
16
16
  mixpeek/models/actionusage.py,sha256=WAnnBVTeQ9j0dtIrubfyyJQwbBamxManfS8fc2OFNyo,324
17
17
  mixpeek/models/apierror.py,sha256=9mTyJSyvUAOnSfW_1HWt9dGl8IDlpQ68DebwYsDNdug,528
@@ -168,17 +168,17 @@ mixpeek/models/videodetectsettings.py,sha256=tb_r0ahLA1IejuX5Er0I-N5AFbobL5OW7yH
168
168
  mixpeek/models/videoreadsettings.py,sha256=qFtWMM2XXZwlPgB4L-a3fQ3koxDLNtWOcGSkp7FPNdw,2427
169
169
  mixpeek/models/videosettings.py,sha256=sNww8ZgmL4O4pp3wTgp76ZNzA6mC9NtOD2p-sC72pbM,4530
170
170
  mixpeek/models/videotranscriptionsettings.py,sha256=70EN-PX2QiQAQjDLYaV2coUCnVjRJI2Y1pXNQYUBH2g,2471
171
- mixpeek/namespaces.py,sha256=bcvfz_rH0kkcQmuenAjJ3e_kWTJN0SqFwpMiY10IqVk,64518
172
- mixpeek/organizations.py,sha256=Q0Nu_eg7bXCZniB0a8Gj7Kt8kRkVLzs5h_-T5w4c1Ic,44795
171
+ mixpeek/namespaces.py,sha256=AVZrpmDycsX4e5WUF8qQOsM8b3eoejlKnvH9SzQMy3E,66660
172
+ mixpeek/organizations.py,sha256=vy42rPHT0QOq_nGIzfHgWdj0_it7RLDPD1hfpAZCeYk,46325
173
173
  mixpeek/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
174
174
  mixpeek/sdk.py,sha256=j8NFfo1tsiiN6VmvmI53XcbeW4dHQgTocxBczCNaE08,6464
175
175
  mixpeek/sdkconfiguration.py,sha256=WDFDVblhsi547ZxDPEPR243zKLM1shTDSt9w3nporHc,1703
176
- mixpeek/tasks.py,sha256=tQMg5XUINdXAjbTVbJP63zLfRs5eNl5Fk46onDo5yFo,27602
177
- mixpeek/taxonomies.py,sha256=M3q8g39M6VK3saT0sIgjsV5vs-4NO7iKdCJ894VxnLk,29553
178
- mixpeek/taxonomyentities.py,sha256=5SpoST9KjU2JQk_kDu6Zbw5rcvarVw_XJjiNXNdYvsQ,74488
176
+ mixpeek/tasks.py,sha256=6Q2MIo_tZv0l026K_N_aVzLSHMcGnp1mDf9XsaAjZrg,28520
177
+ mixpeek/taxonomies.py,sha256=9p1tlrvU7wrbd9wdPKTrJeo9enDoHJBIPvHkZUTLmWs,30471
178
+ mixpeek/taxonomyentities.py,sha256=HsB0Tp9asbBGgAcIk-fQSAxUVZeW9yOdhnmodCFwp3M,76630
179
179
  mixpeek/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
180
180
  mixpeek/types/basemodel.py,sha256=PexI39iKiOkIlobB8Ueo0yn8PLHp6_wb-WO-zelNDZY,1170
181
- mixpeek/users.py,sha256=uAR1mqEMl2srPW44wlQo1UbD4aAXiGbXIe2r3mHKbl0,25634
181
+ mixpeek/users.py,sha256=fEAAzcyISalDraS8mJBDAaGnCsdr8280ROTBJSlWMz4,26552
182
182
  mixpeek/utils/__init__.py,sha256=8npwwHS-7zjVrbkzBGO-Uk4GkjC240PCleMbgPK1Axs,2418
183
183
  mixpeek/utils/annotations.py,sha256=aR7mZG34FzgRdew7WZPYEu9QGBerpuKxCF4sek5Z_5Y,1699
184
184
  mixpeek/utils/enums.py,sha256=VzjeslROrAr2luZOTJlvu-4UlxgTaGOKlRYtJJ7IfyY,1006
@@ -194,6 +194,6 @@ mixpeek/utils/security.py,sha256=XoK-R2YMyZtVWQte7FoezfGJS-dea9jz4qQ7w5dwNWc,600
194
194
  mixpeek/utils/serializers.py,sha256=BSJT7kBOkNBFyP7KREyMoe14JGbgijD1M6AXFMbdmco,4924
195
195
  mixpeek/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
196
196
  mixpeek/utils/values.py,sha256=_89YXPTI_BU6SXJBzFR4pIzTCBPQW9tsOTN1jeBBIDs,3428
197
- mixpeek-0.18.13.dist-info/METADATA,sha256=FBCqOrfj0s_4hoxR8TgXYS_C9eVai5kpJV5Ou1aFZPs,22570
198
- mixpeek-0.18.13.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
199
- mixpeek-0.18.13.dist-info/RECORD,,
197
+ mixpeek-0.18.14.dist-info/METADATA,sha256=WF2zV7VQWMrkqFD1_NL5N9DLS3kmcO9j7d_UPAbCRiw,23241
198
+ mixpeek-0.18.14.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
199
+ mixpeek-0.18.14.dist-info/RECORD,,