Skip to content

Commit c2a1568

Browse files
committed
Fix wheel at PyPI. Improve examples formatting.
1 parent 5b56bae commit c2a1568

14 files changed

+26
-25
lines changed

recombee_api_client/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __get_base_uri(options: dict, region: str) -> str:
9494

9595
@staticmethod
9696
def __get_http_headers(additional_headers: dict = None) -> dict:
97-
headers = {'User-Agent': 'recombee-python-api-client/5.0.0'}
97+
headers = {'User-Agent': 'recombee-python-api-client/5.0.1'}
9898
if additional_headers:
9999
headers.update(additional_headers)
100100
return headers

recombee_api_client/api_requests/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@
5151
from recombee_api_client.api_requests.list_user_view_portions import ListUserViewPortions
5252
from recombee_api_client.api_requests.recommend_items_to_user import RecommendItemsToUser
5353
from recombee_api_client.api_requests.recommend_items_to_item import RecommendItemsToItem
54+
from recombee_api_client.api_requests.recommend_items_to_item_segment import RecommendItemsToItemSegment
5455
from recombee_api_client.api_requests.recommend_next_items import RecommendNextItems
5556
from recombee_api_client.api_requests.recommend_users_to_user import RecommendUsersToUser
5657
from recombee_api_client.api_requests.recommend_users_to_item import RecommendUsersToItem
5758
from recombee_api_client.api_requests.recommend_item_segments_to_user import RecommendItemSegmentsToUser
5859
from recombee_api_client.api_requests.recommend_item_segments_to_item import RecommendItemSegmentsToItem
5960
from recombee_api_client.api_requests.recommend_item_segments_to_item_segment import RecommendItemSegmentsToItemSegment
60-
from recombee_api_client.api_requests.recommend_items_to_item_segment import RecommendItemsToItemSegment
6161
from recombee_api_client.api_requests.search_items import SearchItems
6262
from recombee_api_client.api_requests.search_item_segments import SearchItemSegments
6363
from recombee_api_client.api_requests.add_search_synonym import AddSearchSynonym

recombee_api_client/api_requests/list_items.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ListItems(Request):
2121
2222
Example response:
2323
24-
```
24+
```json
2525
2626
[
2727
@@ -61,7 +61,7 @@ class ListItems(Request):
6161
6262
Example response for `includedProperties=description,price`:
6363
64-
```
64+
```json
6565
6666
[
6767

recombee_api_client/api_requests/list_users.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ListUsers(Request):
2121
2222
Example response:
2323
24-
```
24+
```json
2525
2626
[
2727
@@ -53,7 +53,7 @@ class ListUsers(Request):
5353
5454
Example response for `includedProperties=country`:
5555
56-
```
56+
```json
5757
5858
[
5959

recombee_api_client/api_requests/recommend_items_to_item.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class RecommendItemsToItem(Request):
7373
7474
Example response:
7575
76-
```
76+
```json
7777
7878
E{lb}
7979
@@ -128,7 +128,7 @@ class RecommendItemsToItem(Request):
128128
129129
Example response for `includedProperties=description,price`:
130130
131-
```
131+
```json
132132
133133
E{lb}
134134

recombee_api_client/api_requests/recommend_items_to_item_segment.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class RecommendItemsToItemSegment(Request):
7676
7777
Example response:
7878
79-
```
79+
```json
8080
8181
E{lb}
8282
@@ -131,7 +131,7 @@ class RecommendItemsToItemSegment(Request):
131131
132132
Example response for `includedProperties=description,price`:
133133
134-
```
134+
```json
135135
136136
E{lb}
137137

recombee_api_client/api_requests/recommend_items_to_user.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class RecommendItemsToUser(Request):
4646
4747
Example response:
4848
49-
```
49+
```json
5050
5151
E{lb}
5252
@@ -101,7 +101,7 @@ class RecommendItemsToUser(Request):
101101
102102
Example response for `includedProperties=description,price`:
103103
104-
```
104+
```json
105105
106106
E{lb}
107107

recombee_api_client/api_requests/recommend_next_items.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ class RecommendNextItems(Request):
1010
1111
It accepts `recommId` of a base recommendation request (e.g., request from the first page) and the number of items that shall be returned (`count`).
1212
The base request can be one of:
13-
- [Recommend items to item](https://docs.recombee.com/api.html#recommend-items-to-item)
14-
- [Recommend items to user](https://docs.recombee.com/api.html#recommend-items-to-user)
15-
- [Search items](https://docs.recombee.com/api.html#search-items)
13+
- [Recommend Items to Item](https://docs.recombee.com/api.html#recommend-items-to-item)
14+
- [Recommend Items to User](https://docs.recombee.com/api.html#recommend-items-to-user)
15+
- [Recommend Items to Item Segment](https://docs.recombee.com/api.html#recommend-items-to-item-segment)
16+
- [Search Items](https://docs.recombee.com/api.html#search-items)
1617
1718
All the other parameters are inherited from the base request.
1819

recombee_api_client/api_requests/recommend_users_to_item.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RecommendUsersToItem(Request):
3737
3838
Example response:
3939
40-
```
40+
```json
4141
4242
E{lb}
4343
@@ -84,7 +84,7 @@ class RecommendUsersToItem(Request):
8484
8585
Example response for `includedProperties=country`:
8686
87-
```
87+
```json
8888
8989
E{lb}
9090

recombee_api_client/api_requests/recommend_users_to_user.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RecommendUsersToUser(Request):
3737
3838
Example response:
3939
40-
```
40+
```json
4141
4242
E{lb}
4343
@@ -84,7 +84,7 @@ class RecommendUsersToUser(Request):
8484
8585
Example response for `includedProperties=country`:
8686
87-
```
87+
```json
8888
8989
E{lb}
9090

recombee_api_client/api_requests/search_items.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class SearchItems(Request):
4848
4949
Example response:
5050
51-
```
51+
```json
5252
5353
E{lb}
5454
@@ -103,7 +103,7 @@ class SearchItems(Request):
103103
104104
Example response for `includedProperties=description,price`:
105105
106-
```
106+
```json
107107
108108
E{lb}
109109

recombee_api_client/api_requests/update_more_items.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class UpdateMoreItems(Request):
1010
1111
Example: *Setting all the items that are older than a week as unavailable*
1212
13-
```
13+
```json
1414
{
1515
"filter": "'releaseDate' < now() - 7*24*3600",
1616
"changes": {"available": false}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
setup(
1212
name='recombee-api-client',
1313

14-
version='5.0.0',
14+
version='5.0.1',
1515

1616
description='Client for Recombee recommendation API',
1717
long_description=long_description,

tests/test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@
120120
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(RecommendItemsToUserTestCase))
121121
from tests.test_cases.test_recommend_items_to_item import RecommendItemsToItemTestCase
122122
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(RecommendItemsToItemTestCase))
123+
from tests.test_cases.test_recommend_items_to_item_segment import RecommendItemsToItemSegmentTestCase
124+
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(RecommendItemsToItemSegmentTestCase))
123125
from tests.test_cases.test_recommend_next_items import RecommendNextItemsTestCase
124126
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(RecommendNextItemsTestCase))
125127
from tests.test_cases.test_recommend_users_to_user import RecommendUsersToUserTestCase
@@ -132,8 +134,6 @@
132134
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(RecommendItemSegmentsToItemTestCase))
133135
from tests.test_cases.test_recommend_item_segments_to_item_segment import RecommendItemSegmentsToItemSegmentTestCase
134136
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(RecommendItemSegmentsToItemSegmentTestCase))
135-
from tests.test_cases.test_recommend_items_to_item_segment import RecommendItemsToItemSegmentTestCase
136-
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(RecommendItemsToItemSegmentTestCase))
137137
from tests.test_cases.test_search_items import SearchItemsTestCase
138138
suite.addTests(unittest.defaultTestLoader.loadTestsFromTestCase(SearchItemsTestCase))
139139
from tests.test_cases.test_search_item_segments import SearchItemSegmentsTestCase

0 commit comments

Comments
 (0)