shaped 2.0.0__py3-none-any.whl → 2.0.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.
- {shaped-2.0.0.dist-info → shaped-2.0.1.dist-info}/METADATA +3 -75
- {shaped-2.0.0.dist-info → shaped-2.0.1.dist-info}/RECORD +6 -6
- {shaped-2.0.0.dist-info → shaped-2.0.1.dist-info}/WHEEL +0 -0
- {shaped-2.0.0.dist-info → shaped-2.0.1.dist-info}/entry_points.txt +0 -0
- {shaped-2.0.0.dist-info → shaped-2.0.1.dist-info}/top_level.txt +0 -0
- {shaped-2.0.0.dist-info → shaped-2.0.1.dist-info}/zip-safe +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shaped
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.1
|
|
4
4
|
Summary: CLI and SDK tools for interacting with the Shaped API.
|
|
5
5
|
Home-page: https://github.com/shaped-ai/shaped-cli
|
|
6
6
|
Author: Shaped Team
|
|
@@ -43,6 +43,8 @@ Dynamic: summary
|
|
|
43
43
|
|
|
44
44
|
CLI for interactions with the Shaped API.
|
|
45
45
|
|
|
46
|
+
For full documentation, see [docs.shaped.ai](https://docs.shaped.ai/).
|
|
47
|
+
|
|
46
48
|
## Installing the Shaped CLI
|
|
47
49
|
|
|
48
50
|
```
|
|
@@ -265,77 +267,3 @@ shaped view-saved-query --engine-name <ENGINE_NAME> --query-name <QUERY_NAME>
|
|
|
265
267
|
```sh
|
|
266
268
|
pip install shaped
|
|
267
269
|
```
|
|
268
|
-
|
|
269
|
-
## Rank
|
|
270
|
-
|
|
271
|
-
```python
|
|
272
|
-
import shaped
|
|
273
|
-
|
|
274
|
-
api_key = 'your_api_key'
|
|
275
|
-
client = shaped.Client(api_key=api_key)
|
|
276
|
-
|
|
277
|
-
api_response = client.rank(
|
|
278
|
-
model_name="amazon_beauty_product_recommendations",
|
|
279
|
-
user_id="A2FRWMTWYJUK7P",
|
|
280
|
-
return_metadata=True,
|
|
281
|
-
item_ids=['B01AHSUT8M', 'B00GW7H5EY', 'B01GLA54SA', 'B0016PKWK6', 'B00PJD7KPG', 'B00BCI8OP2', 'B004FK7R02'],
|
|
282
|
-
)
|
|
283
|
-
print(api_response)
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
## Retrieve
|
|
287
|
-
```python
|
|
288
|
-
import shaped
|
|
289
|
-
|
|
290
|
-
api_key = 'your_api_key'
|
|
291
|
-
client = shaped.Client(api_key=api_key)
|
|
292
|
-
|
|
293
|
-
api_response = client.retrieve(
|
|
294
|
-
model_name="amazon_beauty_product_recommendations",
|
|
295
|
-
)
|
|
296
|
-
print(api_response)
|
|
297
|
-
```
|
|
298
|
-
|
|
299
|
-
## Similar Items
|
|
300
|
-
```python
|
|
301
|
-
import shaped
|
|
302
|
-
|
|
303
|
-
api_key = 'your_api_key'
|
|
304
|
-
client = shaped.Client(api_key=api_key)
|
|
305
|
-
|
|
306
|
-
api_response = client.similar_items(
|
|
307
|
-
model_name="amazon_beauty_product_recommendations",
|
|
308
|
-
item_id="B000FOI48G",
|
|
309
|
-
)
|
|
310
|
-
print(api_response)
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
## Similar Users
|
|
314
|
-
```python
|
|
315
|
-
import shaped
|
|
316
|
-
|
|
317
|
-
api_key = 'your_api_key'
|
|
318
|
-
client = shaped.Client(api_key=api_key)
|
|
319
|
-
|
|
320
|
-
api_response = client.similar_users(
|
|
321
|
-
model_name="amazon_beauty_product_recommendations",
|
|
322
|
-
user_id="A2FRWMTWYJUK7P",
|
|
323
|
-
)
|
|
324
|
-
print(api_response)
|
|
325
|
-
```
|
|
326
|
-
|
|
327
|
-
## Complement Items
|
|
328
|
-
```python
|
|
329
|
-
import shaped
|
|
330
|
-
|
|
331
|
-
api_key = 'your_api_key'
|
|
332
|
-
client = shaped.Client(api_key=api_key)
|
|
333
|
-
|
|
334
|
-
api_response = client.complement_items(
|
|
335
|
-
model_name="amazon_beauty_product_recommendations",
|
|
336
|
-
item_ids=['B000URXP6E', 'B0012Y0ZG2'],
|
|
337
|
-
)
|
|
338
|
-
print(api_response)
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
---
|
|
@@ -65,9 +65,9 @@ shaped/autogen/models/value_type.py,sha256=uxlGNPto3CK17jHKDRvAl3BqNCPkHlxfRBPdo
|
|
|
65
65
|
shaped/autogen/models/view_model_response.py,sha256=4xzesZSHMcPCZHsevo5Bt_3P9jBNiEbd_PFTWQ5Q9KU,5757
|
|
66
66
|
shaped/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
shaped/cli/shaped_cli.py,sha256=DzBbnRlk2XWkCq8eGGUVRatm6ntVHclfsrNHYEYxdyA,20562
|
|
68
|
-
shaped-2.0.
|
|
69
|
-
shaped-2.0.
|
|
70
|
-
shaped-2.0.
|
|
71
|
-
shaped-2.0.
|
|
72
|
-
shaped-2.0.
|
|
73
|
-
shaped-2.0.
|
|
68
|
+
shaped-2.0.1.dist-info/METADATA,sha256=18cuVVV8yij7jEKsD7xshfuMOAkcydMxg24FLXwnVAg,4433
|
|
69
|
+
shaped-2.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
70
|
+
shaped-2.0.1.dist-info/entry_points.txt,sha256=4xoVmnNTKtmzjGNX5ezp9MCWLgi7880TtfqFByN1u5U,53
|
|
71
|
+
shaped-2.0.1.dist-info/top_level.txt,sha256=w-lDaoadQVYpze9N9gZyK9qngb7fZCJ-KCdHLGvt0SU,7
|
|
72
|
+
shaped-2.0.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
73
|
+
shaped-2.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|