mixpeek 0.11.1__py3-none-any.whl → 0.12.0__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 (111) hide show
  1. mixpeek/__init__.py +83 -1
  2. mixpeek/_base_client.py +2041 -0
  3. mixpeek/_client.py +444 -0
  4. mixpeek/_compat.py +221 -0
  5. mixpeek/_constants.py +14 -0
  6. mixpeek/_exceptions.py +108 -0
  7. mixpeek/_files.py +123 -0
  8. mixpeek/_models.py +788 -0
  9. mixpeek/_qs.py +150 -0
  10. mixpeek/_resource.py +43 -0
  11. mixpeek/_response.py +824 -0
  12. mixpeek/_streaming.py +333 -0
  13. mixpeek/_types.py +219 -0
  14. mixpeek/_utils/__init__.py +56 -0
  15. mixpeek/_utils/_logs.py +25 -0
  16. mixpeek/_utils/_proxy.py +62 -0
  17. mixpeek/_utils/_reflection.py +42 -0
  18. mixpeek/_utils/_streams.py +12 -0
  19. mixpeek/_utils/_sync.py +81 -0
  20. mixpeek/_utils/_transform.py +387 -0
  21. mixpeek/_utils/_typing.py +120 -0
  22. mixpeek/_utils/_utils.py +414 -0
  23. mixpeek/_version.py +4 -0
  24. mixpeek/lib/.keep +4 -0
  25. mixpeek/resources/__init__.py +117 -0
  26. mixpeek/resources/accounts.py +271 -0
  27. mixpeek/resources/assets/__init__.py +33 -0
  28. mixpeek/resources/assets/assets.py +708 -0
  29. mixpeek/resources/assets/features.py +172 -0
  30. mixpeek/resources/collections.py +283 -0
  31. mixpeek/resources/entities/__init__.py +47 -0
  32. mixpeek/resources/entities/entities.py +134 -0
  33. mixpeek/resources/entities/faces.py +514 -0
  34. mixpeek/resources/entities/labels.py +388 -0
  35. mixpeek/resources/features/__init__.py +33 -0
  36. mixpeek/resources/features/features.py +562 -0
  37. mixpeek/resources/features/search.py +731 -0
  38. mixpeek/resources/healthcheck.py +135 -0
  39. mixpeek/resources/index/__init__.py +47 -0
  40. mixpeek/resources/index/images.py +249 -0
  41. mixpeek/resources/index/index.py +289 -0
  42. mixpeek/resources/index/videos.py +249 -0
  43. mixpeek/resources/tasks.py +258 -0
  44. mixpeek/types/__init__.py +31 -0
  45. mixpeek/types/account_update_params.py +28 -0
  46. mixpeek/types/asset_create_params.py +36 -0
  47. mixpeek/types/asset_create_response.py +15 -0
  48. mixpeek/types/asset_response.py +46 -0
  49. mixpeek/types/asset_search_params.py +43 -0
  50. mixpeek/types/asset_search_response.py +15 -0
  51. mixpeek/types/asset_update_params.py +25 -0
  52. mixpeek/types/asset_update_response.py +11 -0
  53. mixpeek/types/assets/__init__.py +3 -0
  54. mixpeek/types/collection_list_params.py +19 -0
  55. mixpeek/types/collection_list_response.py +14 -0
  56. mixpeek/types/entities/__init__.py +13 -0
  57. mixpeek/types/entities/face_create_params.py +21 -0
  58. mixpeek/types/entities/face_list_params.py +18 -0
  59. mixpeek/types/entities/face_list_response.py +15 -0
  60. mixpeek/types/entities/face_response.py +17 -0
  61. mixpeek/types/entities/face_update_params.py +22 -0
  62. mixpeek/types/entities/label_list_params.py +18 -0
  63. mixpeek/types/entities/label_list_response.py +30 -0
  64. mixpeek/types/entities/label_response.py +30 -0
  65. mixpeek/types/entities/label_update_params.py +21 -0
  66. mixpeek/types/feature.py +32 -0
  67. mixpeek/types/feature_list_params.py +37 -0
  68. mixpeek/types/feature_list_response.py +28 -0
  69. mixpeek/types/feature_retrieve_params.py +18 -0
  70. mixpeek/types/feature_update_params.py +16 -0
  71. mixpeek/types/features/__init__.py +8 -0
  72. mixpeek/types/features/search_feedback_params.py +23 -0
  73. mixpeek/types/features/search_file_params.py +29 -0
  74. mixpeek/types/features/search_text_params.py +72 -0
  75. mixpeek/types/features/search_url_params.py +72 -0
  76. mixpeek/types/grouped_asset_data.py +24 -0
  77. mixpeek/types/health_check_response.py +10 -0
  78. mixpeek/types/index/__init__.py +8 -0
  79. mixpeek/types/index/image_url_params.py +135 -0
  80. mixpeek/types/index/image_url_response.py +20 -0
  81. mixpeek/types/index/video_url_params.py +154 -0
  82. mixpeek/types/index/video_url_response.py +20 -0
  83. mixpeek/types/index_text_params.py +77 -0
  84. mixpeek/types/index_text_response.py +14 -0
  85. mixpeek/types/shared/__init__.py +7 -0
  86. mixpeek/types/shared/filter_condition.py +19 -0
  87. mixpeek/types/shared/logical_operator.py +12 -0
  88. mixpeek/types/shared/model_pagination_response.py +21 -0
  89. mixpeek/types/shared/sort_option.py +15 -0
  90. mixpeek/types/shared/task_response.py +15 -0
  91. mixpeek/types/shared_params/__init__.py +4 -0
  92. mixpeek/types/shared_params/logical_operator.py +13 -0
  93. mixpeek/types/shared_params/sort_option.py +15 -0
  94. mixpeek/types/user.py +34 -0
  95. mixpeek-0.12.0.dist-info/METADATA +345 -0
  96. mixpeek-0.12.0.dist-info/RECORD +99 -0
  97. {mixpeek-0.11.1.dist-info → mixpeek-0.12.0.dist-info}/WHEEL +1 -2
  98. mixpeek-0.12.0.dist-info/licenses/LICENSE +201 -0
  99. mixpeek/client.py +0 -27
  100. mixpeek/endpoints/collections.py +0 -86
  101. mixpeek/endpoints/embed.py +0 -66
  102. mixpeek/endpoints/index.py +0 -51
  103. mixpeek/endpoints/register.py +0 -34
  104. mixpeek/endpoints/search.py +0 -67
  105. mixpeek/endpoints/tasks.py +0 -26
  106. mixpeek/endpoints/tools.py +0 -138
  107. mixpeek/exceptions.py +0 -13
  108. mixpeek-0.11.1.dist-info/METADATA +0 -375
  109. mixpeek-0.11.1.dist-info/RECORD +0 -15
  110. mixpeek-0.11.1.dist-info/top_level.txt +0 -1
  111. /mixpeek/{endpoints/__init__.py → py.typed} +0 -0
mixpeek/__init__.py CHANGED
@@ -1 +1,83 @@
1
- from .client import Mixpeek
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from . import types
4
+ from ._types import NOT_GIVEN, NoneType, NotGiven, Transport, ProxiesTypes
5
+ from ._utils import file_from_path
6
+ from ._client import Client, Stream, Mixpeek, Timeout, Transport, AsyncClient, AsyncStream, AsyncMixpeek, RequestOptions
7
+ from ._models import BaseModel
8
+ from ._version import __title__, __version__
9
+ from ._response import APIResponse as APIResponse, AsyncAPIResponse as AsyncAPIResponse
10
+ from ._constants import DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, DEFAULT_CONNECTION_LIMITS
11
+ from ._exceptions import (
12
+ APIError,
13
+ MixpeekError,
14
+ ConflictError,
15
+ NotFoundError,
16
+ APIStatusError,
17
+ RateLimitError,
18
+ APITimeoutError,
19
+ BadRequestError,
20
+ APIConnectionError,
21
+ AuthenticationError,
22
+ InternalServerError,
23
+ PermissionDeniedError,
24
+ UnprocessableEntityError,
25
+ APIResponseValidationError,
26
+ )
27
+ from ._base_client import DefaultHttpxClient, DefaultAsyncHttpxClient
28
+ from ._utils._logs import setup_logging as _setup_logging
29
+
30
+ __all__ = [
31
+ "types",
32
+ "__version__",
33
+ "__title__",
34
+ "NoneType",
35
+ "Transport",
36
+ "ProxiesTypes",
37
+ "NotGiven",
38
+ "NOT_GIVEN",
39
+ "MixpeekError",
40
+ "APIError",
41
+ "APIStatusError",
42
+ "APITimeoutError",
43
+ "APIConnectionError",
44
+ "APIResponseValidationError",
45
+ "BadRequestError",
46
+ "AuthenticationError",
47
+ "PermissionDeniedError",
48
+ "NotFoundError",
49
+ "ConflictError",
50
+ "UnprocessableEntityError",
51
+ "RateLimitError",
52
+ "InternalServerError",
53
+ "Timeout",
54
+ "RequestOptions",
55
+ "Client",
56
+ "AsyncClient",
57
+ "Stream",
58
+ "AsyncStream",
59
+ "Mixpeek",
60
+ "AsyncMixpeek",
61
+ "file_from_path",
62
+ "BaseModel",
63
+ "DEFAULT_TIMEOUT",
64
+ "DEFAULT_MAX_RETRIES",
65
+ "DEFAULT_CONNECTION_LIMITS",
66
+ "DefaultHttpxClient",
67
+ "DefaultAsyncHttpxClient",
68
+ ]
69
+
70
+ _setup_logging()
71
+
72
+ # Update the __module__ attribute for exported symbols so that
73
+ # error messages point to this module instead of the module
74
+ # it was originally defined in, e.g.
75
+ # mixpeek._exceptions.NotFoundError -> mixpeek.NotFoundError
76
+ __locals = locals()
77
+ for __name in __all__:
78
+ if not __name.startswith("__"):
79
+ try:
80
+ __locals[__name].__module__ = "mixpeek"
81
+ except (TypeError, AttributeError):
82
+ # Some of our exported symbols are builtins which we can't set attributes for.
83
+ pass