mixpeek 0.1__py3-none-any.whl → 0.1.1__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/__init__.py +6 -70
- mixpeek/_hooks/__init__.py +5 -0
- mixpeek/_hooks/registration.py +13 -0
- mixpeek/_hooks/sdkhooks.py +76 -0
- mixpeek/_hooks/types.py +94 -0
- mixpeek/_version.py +12 -0
- mixpeek/assets.py +1561 -0
- mixpeek/basesdk.py +350 -0
- mixpeek/collections.py +1029 -0
- mixpeek/featureextractors.py +205 -0
- mixpeek/features.py +1181 -0
- mixpeek/health.py +167 -0
- mixpeek/httpclient.py +84 -0
- mixpeek/ingest.py +831 -0
- mixpeek/interactions.py +221 -0
- mixpeek/models/__init__.py +758 -0
- mixpeek/models/actionusage.py +16 -0
- mixpeek/models/apierror.py +22 -0
- mixpeek/models/apikey.py +25 -0
- mixpeek/models/apikeyupdate.py +49 -0
- mixpeek/models/assetfeatures.py +55 -0
- mixpeek/models/assetresponse.py +166 -0
- mixpeek/models/assets_model_searchquery.py +21 -0
- mixpeek/models/assetupdate.py +28 -0
- mixpeek/models/availableindexesresponse.py +23 -0
- mixpeek/models/availablemodels.py +12 -0
- mixpeek/models/boolindexparams.py +18 -0
- mixpeek/models/collectionmodel.py +70 -0
- mixpeek/models/collectionresult.py +73 -0
- mixpeek/models/create_api_key_organizations_users_user_email_api_keys_postop.py +23 -0
- mixpeek/models/create_collection_collections_postop.py +62 -0
- mixpeek/models/create_interaction_features_search_interactions_postop.py +59 -0
- mixpeek/models/createcollectionrequest.py +59 -0
- mixpeek/models/createnamespacerequest.py +62 -0
- mixpeek/models/datetimeindexparams.py +18 -0
- mixpeek/models/dateusage.py +22 -0
- mixpeek/models/db_model_paginationresponse.py +59 -0
- mixpeek/models/db_model_taskresponse.py +20 -0
- mixpeek/models/delete_api_key_organizations_users_user_email_api_keys_key_name_deleteop.py +23 -0
- mixpeek/models/delete_asset_assets_asset_id_deleteop.py +57 -0
- mixpeek/models/delete_collection_collections_collection_deleteop.py +59 -0
- mixpeek/models/delete_feature_features_feature_id_deleteop.py +57 -0
- mixpeek/models/delete_interaction_features_search_interactions_interaction_id_deleteop.py +59 -0
- mixpeek/models/delete_namespace_namespaces_namespace_deleteop.py +18 -0
- mixpeek/models/delete_user_organizations_users_user_email_deleteop.py +16 -0
- mixpeek/models/denseembedding.py +16 -0
- mixpeek/models/embeddingrequest.py +59 -0
- mixpeek/models/embeddingresponse.py +64 -0
- mixpeek/models/errormessage.py +13 -0
- mixpeek/models/errorresponse.py +21 -0
- mixpeek/models/facedetectsettings.py +52 -0
- mixpeek/models/featureextractionembeddingrequest.py +54 -0
- mixpeek/models/featureresponse.py +74 -0
- mixpeek/models/features_model_paginationresponse.py +59 -0
- mixpeek/models/featureupdaterequest.py +21 -0
- mixpeek/models/filtercondition.py +74 -0
- mixpeek/models/floatindexparams.py +18 -0
- mixpeek/models/full_asset_update_assets_asset_id_putop.py +69 -0
- mixpeek/models/full_feature_update_features_feature_id_putop.py +69 -0
- mixpeek/models/geoindexparams.py +18 -0
- mixpeek/models/get_asset_assets_asset_id_getop.py +73 -0
- mixpeek/models/get_asset_with_features_assets_asset_id_features_getop.py +73 -0
- mixpeek/models/get_collection_collections_collection_getop.py +59 -0
- mixpeek/models/get_feature_features_feature_id_getop.py +70 -0
- mixpeek/models/get_interaction_features_search_interactions_interaction_id_getop.py +59 -0
- mixpeek/models/get_namespace_namespaces_namespace_getop.py +18 -0
- mixpeek/models/get_task_tasks_task_id_getop.py +57 -0
- mixpeek/models/get_user_organizations_users_user_email_getop.py +16 -0
- mixpeek/models/groupbyoptions.py +71 -0
- mixpeek/models/groupbyoptionsasset.py +71 -0
- mixpeek/models/groupedassetdata.py +18 -0
- mixpeek/models/healthcheckresponse.py +13 -0
- mixpeek/models/httpvalidationerror.py +21 -0
- mixpeek/models/imagedescribesettings.py +82 -0
- mixpeek/models/imagedetectsettings.py +53 -0
- mixpeek/models/imagereadsettings.py +71 -0
- mixpeek/models/imagesettings.py +79 -0
- mixpeek/models/ingest_image_url_ingest_images_url_postop.py +59 -0
- mixpeek/models/ingest_text_ingest_text_postop.py +59 -0
- mixpeek/models/ingest_video_url_ingest_videos_url_postop.py +59 -0
- mixpeek/models/inputtype.py +11 -0
- mixpeek/models/integerindexparams.py +24 -0
- mixpeek/models/interactionresponse.py +87 -0
- mixpeek/models/interactiontype.py +11 -0
- mixpeek/models/jsonimageoutputsettings.py +55 -0
- mixpeek/models/jsontextoutputsettings.py +55 -0
- mixpeek/models/jsonvideooutputsettings.py +55 -0
- mixpeek/models/keywordindexparams.py +21 -0
- mixpeek/models/kill_task_tasks_task_id_deleteop.py +57 -0
- mixpeek/models/list_assets_assets_postop.py +77 -0
- mixpeek/models/list_collections_collections_getop.py +65 -0
- mixpeek/models/list_features_features_postop.py +79 -0
- mixpeek/models/list_interactions_features_search_interactions_getop.py +96 -0
- mixpeek/models/listassetsrequest.py +75 -0
- mixpeek/models/listassetsresponse.py +22 -0
- mixpeek/models/listcollectionsresponse.py +22 -0
- mixpeek/models/listfeaturesrequest.py +77 -0
- mixpeek/models/listfeaturesresponse.py +22 -0
- mixpeek/models/logicaloperator_input.py +88 -0
- mixpeek/models/logicaloperator_output.py +103 -0
- mixpeek/models/logodetectsettings.py +52 -0
- mixpeek/models/modality.py +13 -0
- mixpeek/models/modeldetails.py +57 -0
- mixpeek/models/namespaceresponse.py +62 -0
- mixpeek/models/organizationmodel.py +45 -0
- mixpeek/models/partial_asset_update_assets_asset_id_patchop.py +69 -0
- mixpeek/models/payloadindexconfig.py +94 -0
- mixpeek/models/payloadindextype.py +17 -0
- mixpeek/models/payloadschematype.py +15 -0
- mixpeek/models/percolaterequest.py +57 -0
- mixpeek/models/permission.py +10 -0
- mixpeek/models/processimageurlinput.py +99 -0
- mixpeek/models/processtextinput.py +94 -0
- mixpeek/models/processvideourlinput.py +99 -0
- mixpeek/models/querysettings.py +56 -0
- mixpeek/models/rerankingoptions.py +47 -0
- mixpeek/models/search_assets_assets_search_postop.py +59 -0
- mixpeek/models/search_features_features_search_postop.py +96 -0
- mixpeek/models/search_model_searchquery_input.py +76 -0
- mixpeek/models/searchassetsrequest.py +78 -0
- mixpeek/models/searchinteraction.py +82 -0
- mixpeek/models/searchquery_output.py +79 -0
- mixpeek/models/searchrequestfeatures_input.py +151 -0
- mixpeek/models/searchrequestfeatures_output.py +151 -0
- mixpeek/models/sortoption.py +28 -0
- mixpeek/models/sparseembedding.py +21 -0
- mixpeek/models/tasks_model_taskresponse.py +24 -0
- mixpeek/models/taskstatus.py +16 -0
- mixpeek/models/textindexparams.py +31 -0
- mixpeek/models/textsettings.py +61 -0
- mixpeek/models/tokenizertype.py +11 -0
- mixpeek/models/update_api_key_organizations_users_user_email_api_keys_key_name_patchop.py +30 -0
- mixpeek/models/update_collection_collections_collection_putop.py +74 -0
- mixpeek/models/update_namespace_namespaces_namespace_putop.py +28 -0
- mixpeek/models/updateassetrequest.py +60 -0
- mixpeek/models/updatenamespacerequest.py +26 -0
- mixpeek/models/usage.py +18 -0
- mixpeek/models/usermodel_input.py +36 -0
- mixpeek/models/usermodel_output.py +36 -0
- mixpeek/models/uuidindexparams.py +21 -0
- mixpeek/models/validationerror.py +26 -0
- mixpeek/models/vectormodel.py +11 -0
- mixpeek/models/vectortype.py +9 -0
- mixpeek/models/videodescribesettings.py +82 -0
- mixpeek/models/videodetectsettings.py +53 -0
- mixpeek/models/videoreadsettings.py +71 -0
- mixpeek/models/videosettings.py +101 -0
- mixpeek/models/videotranscriptionsettings.py +69 -0
- mixpeek/namespaces.py +1143 -0
- mixpeek/organizations.py +1508 -0
- mixpeek/py.typed +1 -0
- mixpeek/sdk.py +135 -0
- mixpeek/sdkconfiguration.py +45 -0
- mixpeek/searchinteractions.py +647 -0
- mixpeek/tasks.py +387 -0
- mixpeek/types/__init__.py +21 -0
- mixpeek/types/basemodel.py +39 -0
- mixpeek/utils/__init__.py +97 -0
- mixpeek/utils/annotations.py +55 -0
- mixpeek/utils/enums.py +34 -0
- mixpeek/utils/eventstreaming.py +238 -0
- mixpeek/utils/forms.py +202 -0
- mixpeek/utils/headers.py +136 -0
- mixpeek/utils/logger.py +27 -0
- mixpeek/utils/metadata.py +118 -0
- mixpeek/utils/queryparams.py +205 -0
- mixpeek/utils/requestbodies.py +66 -0
- mixpeek/utils/retries.py +217 -0
- mixpeek/utils/security.py +174 -0
- mixpeek/utils/serializers.py +215 -0
- mixpeek/utils/url.py +155 -0
- mixpeek/utils/values.py +134 -0
- mixpeek-0.1.1.dist-info/METADATA +441 -0
- mixpeek-0.1.1.dist-info/RECORD +176 -0
- {mixpeek-0.1.0.dist-info → mixpeek-0.1.1.dist-info}/WHEEL +1 -1
- py.typed +1 -0
- mixpeek-0.1.0.dist-info/LICENSE.rst +0 -20
- mixpeek-0.1.0.dist-info/METADATA +0 -211
- mixpeek-0.1.0.dist-info/RECORD +0 -5
mixpeek-0.1.0.dist-info/METADATA
DELETED
@@ -1,211 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: mixpeek
|
3
|
-
Version: 0.1.0
|
4
|
-
Summary:
|
5
|
-
Author: Ethan Steininger
|
6
|
-
Author-email: esteininger21@gmail.com
|
7
|
-
Requires-Python: >=3.11,<4.0
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
9
|
-
Classifier: Programming Language :: Python :: 3.11
|
10
|
-
Classifier: Programming Language :: Python :: 3.12
|
11
|
-
Requires-Dist: pydantic (>=2.6.4,<3.0.0)
|
12
|
-
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
13
|
-
Description-Content-Type: text/markdown
|
14
|
-
|
15
|
-
# Mixpeek
|
16
|
-
|
17
|
-
Mixpeek let's you run full-text-search on your files
|
18
|
-
|
19
|
-
**Stuff you might be looking for**:
|
20
|
-
|
21
|
-
- [API Documentation](https://docs.mixpeek.com)
|
22
|
-
- [Installing Mixpeek](https://github.com/mixpeek/mixpeek-python#installation)
|
23
|
-
- [S3 Support](https://github.com/mixpeek/mixpeek-python#s3-support)
|
24
|
-
- [Bugs & Questions](https://github.com/mixpeek/mixpeek-python#bugs-&-questions)
|
25
|
-
|
26
|
-
## Quickstart
|
27
|
-
|
28
|
-
Upload any filetype from the supported filetype [list here](https://mixpeek.com/learn)
|
29
|
-
|
30
|
-
```python
|
31
|
-
from mixpeek import Mixpeek
|
32
|
-
|
33
|
-
mix = Mixpeek(api_key="API_KEY")
|
34
|
-
|
35
|
-
# index one local pdf document without any extra metadata
|
36
|
-
mix.index("/user/desktop/file.pdf")
|
37
|
-
|
38
|
-
# with extra metadata
|
39
|
-
mix.index(
|
40
|
-
"/user/desktop/file.pdf",
|
41
|
-
user_id="123",
|
42
|
-
tags="document, legal",
|
43
|
-
static_file_url="cdn.host.com/file.pdf",
|
44
|
-
save=True,
|
45
|
-
description="this is a cat"
|
46
|
-
)
|
47
|
-
```
|
48
|
-
|
49
|
-
...or any audio filetype
|
50
|
-
|
51
|
-
```python
|
52
|
-
mix.index("/user/desktop/never_gonna_give_you_up.mp3")
|
53
|
-
```
|
54
|
-
|
55
|
-
... or an image, video, document or [anything else mixpeek supports](https://mixpeek.com/learn)
|
56
|
-
|
57
|
-
```python
|
58
|
-
video = mix.index("/user/desktop/video.avi")
|
59
|
-
image = mix.index("/user/desktop/image.png")
|
60
|
-
markdown = mix.index("/user/desktop/markdown.md")
|
61
|
-
```
|
62
|
-
|
63
|
-
The API will return the `file_id`, be sure to store this:
|
64
|
-
|
65
|
-
```python
|
66
|
-
# response
|
67
|
-
{
|
68
|
-
"file_id": "63a32cca0de5e4ce354a4b1c"
|
69
|
-
}
|
70
|
-
```
|
71
|
-
|
72
|
-
Now you can search across all your files:
|
73
|
-
|
74
|
-
```python
|
75
|
-
mix.search(query="let you down")
|
76
|
-
|
77
|
-
# response
|
78
|
-
[
|
79
|
-
{
|
80
|
-
"file_id": "6377c98b3c4f239f17663d79",
|
81
|
-
"filename": "prescription.pdf",
|
82
|
-
"importance": "100%",
|
83
|
-
"static_file_url": "s3://audio.mp3"
|
84
|
-
}
|
85
|
-
]
|
86
|
-
|
87
|
-
```
|
88
|
-
|
89
|
-
And you can include other parameters in your search query:
|
90
|
-
|
91
|
-
```python
|
92
|
-
mix.search(
|
93
|
-
"readme",
|
94
|
-
user_id="john_smith_123",
|
95
|
-
context="true",
|
96
|
-
tags="legal, document"
|
97
|
-
)
|
98
|
-
|
99
|
-
# response
|
100
|
-
[
|
101
|
-
{
|
102
|
-
"file_id": "63a32cd70de5e4ce354a4b1f",
|
103
|
-
"filename": "system-design-primer.md",
|
104
|
-
"static_file_url": "s3://audio.mp3",
|
105
|
-
"user_id": "john_smith_123",
|
106
|
-
"tags":["legal", "document"],
|
107
|
-
"highlights": [
|
108
|
-
{
|
109
|
-
"texts": [
|
110
|
-
{
|
111
|
-
"type": "text",
|
112
|
-
"value": "- What is the expected "
|
113
|
-
},
|
114
|
-
{
|
115
|
-
"type": "hit",
|
116
|
-
"value": "read"
|
117
|
-
},
|
118
|
-
{
|
119
|
-
"type": "text",
|
120
|
-
"value": " to write ratio?\n\n"
|
121
|
-
}
|
122
|
-
]
|
123
|
-
}
|
124
|
-
],
|
125
|
-
"importance": "100%"
|
126
|
-
}
|
127
|
-
]
|
128
|
-
```
|
129
|
-
|
130
|
-
## Installation
|
131
|
-
|
132
|
-
Installing mixpeek is easy
|
133
|
-
|
134
|
-
```shell
|
135
|
-
pip install git+https://github.com/mixpeek/mixpeek-python.git@master
|
136
|
-
```
|
137
|
-
|
138
|
-
## S3 Support
|
139
|
-
|
140
|
-
Be sure you create an AWS access key/secret key combo with S3 bucket read permissions using [this guide](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).
|
141
|
-
|
142
|
-
Files are never stored on our servers, review our [security principles](https://mixpeek.com/security).
|
143
|
-
|
144
|
-
```python
|
145
|
-
from mixpeek import Mixpeek
|
146
|
-
|
147
|
-
mix = Mixpeek(
|
148
|
-
api_key="mixpeek_api_key",
|
149
|
-
access_key="aws_access_key",
|
150
|
-
secret_key="aws_secret_key",
|
151
|
-
region="region"
|
152
|
-
)
|
153
|
-
|
154
|
-
mix.index_bucket("mixpeek-public-demo")
|
155
|
-
|
156
|
-
# response (list of File_ids)
|
157
|
-
|
158
|
-
{
|
159
|
-
"file_ids": [
|
160
|
-
"63a33611660c021b50271666",
|
161
|
-
"63a33611660c021b50271667",
|
162
|
-
"63a33611660c021b50271668",
|
163
|
-
"63a33613660c021b50271669"
|
164
|
-
]
|
165
|
-
}
|
166
|
-
|
167
|
-
```
|
168
|
-
|
169
|
-
## Bugs & Questions
|
170
|
-
|
171
|
-
If this was helpful, please upvote [this StackOverflow comment](https://stackoverflow.com/a/69475102/5956579)
|
172
|
-
|
173
|
-
You can file bugs in our [github issues tracker](https://github.com/mixpeek/mixpeek-python/issues),
|
174
|
-
and ask any technical questions on
|
175
|
-
[Stack Overflow using the mixpeek tag](http://stackoverflow.com/questions/ask?tags=mixpeek).
|
176
|
-
We keep an eye on both.
|
177
|
-
|
178
|
-
## 🚀 Features
|
179
|
-
|
180
|
-
- Supports for `Python 3.8` and higher.
|
181
|
-
- Full text search
|
182
|
-
- AWS S3 Integration
|
183
|
-
- Fuzzy text matching
|
184
|
-
|
185
|
-
## Articles:
|
186
|
-
|
187
|
-
[Learning Center](https://mixpeek.com/learn)
|
188
|
-
|
189
|
-
## License ([MIT License](http://opensource.org/licenses/mit-license.php))
|
190
|
-
|
191
|
-
Copyright © 2022 Mixpeek, https://mixpeek.com
|
192
|
-
|
193
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
194
|
-
a copy of this software and associated documentation files (the
|
195
|
-
"Software"), to deal in the Software without restriction, including
|
196
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
197
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
198
|
-
permit persons to whom the Software is furnished to do so, subject to
|
199
|
-
the following conditions:
|
200
|
-
|
201
|
-
The above copyright notice and this permission notice shall be
|
202
|
-
included in all copies or substantial portions of the Software.
|
203
|
-
|
204
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
205
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
206
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
207
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
208
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
209
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
210
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
211
|
-
|
mixpeek-0.1.0.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
mixpeek/__init__.py,sha256=4e_lxuzNX6tRmpdleC0BP2PCuDrQeIomlQjbmR4NUK4,2448
|
2
|
-
mixpeek-0.1.0.dist-info/LICENSE.rst,sha256=HHFCinDHL38osjHNrBgNZqExYuEWJ3hNZxzcr1mWWeo,1072
|
3
|
-
mixpeek-0.1.0.dist-info/METADATA,sha256=PqS5GtWG0NOu6youD1oE-w74F6cs532JNXdkT2omt8c,5587
|
4
|
-
mixpeek-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
5
|
-
mixpeek-0.1.0.dist-info/RECORD,,
|