stream-chat 4.15.0__py3-none-any.whl → 4.16.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.
- stream_chat/__pkg__.py +1 -1
- stream_chat/async_chat/client.py +12 -0
- stream_chat/base/client.py +9 -0
- stream_chat/client.py +7 -0
- {stream_chat-4.15.0.dist-info → stream_chat-4.16.0.dist-info}/METADATA +3 -3
- {stream_chat-4.15.0.dist-info → stream_chat-4.16.0.dist-info}/RECORD +9 -9
- {stream_chat-4.15.0.dist-info → stream_chat-4.16.0.dist-info}/LICENSE +0 -0
- {stream_chat-4.15.0.dist-info → stream_chat-4.16.0.dist-info}/WHEEL +0 -0
- {stream_chat-4.15.0.dist-info → stream_chat-4.16.0.dist-info}/top_level.txt +0 -0
stream_chat/__pkg__.py
CHANGED
stream_chat/async_chat/client.py
CHANGED
|
@@ -336,6 +336,18 @@ class StreamChatAsync(StreamChatInterface, AsyncContextManager):
|
|
|
336
336
|
async def get_message(self, message_id: str, **options: Any) -> StreamResponse:
|
|
337
337
|
return await self.get(f"messages/{message_id}", options)
|
|
338
338
|
|
|
339
|
+
async def query_message_history(
|
|
340
|
+
self, filter: Dict = None, sort: List[Dict] = None, **options: Any
|
|
341
|
+
) -> StreamResponse:
|
|
342
|
+
params = options.copy()
|
|
343
|
+
params.update(
|
|
344
|
+
{
|
|
345
|
+
"filter": filter,
|
|
346
|
+
"sort": self.normalize_sort(sort),
|
|
347
|
+
}
|
|
348
|
+
)
|
|
349
|
+
return await self.post("messages/history", data=params)
|
|
350
|
+
|
|
339
351
|
async def query_users(
|
|
340
352
|
self, filter_conditions: Dict, sort: List[Dict] = None, **options: Any
|
|
341
353
|
) -> StreamResponse:
|
stream_chat/base/client.py
CHANGED
|
@@ -525,6 +525,15 @@ class StreamChatInterface(abc.ABC):
|
|
|
525
525
|
"""
|
|
526
526
|
pass
|
|
527
527
|
|
|
528
|
+
@abc.abstractmethod
|
|
529
|
+
def query_message_history(
|
|
530
|
+
self, filter: Dict = None, sort: List[Dict] = None, **options: Any
|
|
531
|
+
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
|
|
532
|
+
"""
|
|
533
|
+
Queries message history.
|
|
534
|
+
"""
|
|
535
|
+
pass
|
|
536
|
+
|
|
528
537
|
@abc.abstractmethod
|
|
529
538
|
def query_users(
|
|
530
539
|
self, filter_conditions: Dict, sort: List[Dict] = None, **options: Any
|
stream_chat/client.py
CHANGED
|
@@ -325,6 +325,13 @@ class StreamChat(StreamChatInterface):
|
|
|
325
325
|
def get_message(self, message_id: str, **options: Any) -> StreamResponse:
|
|
326
326
|
return self.get(f"messages/{message_id}", options)
|
|
327
327
|
|
|
328
|
+
def query_message_history(
|
|
329
|
+
self, filter: Dict = None, sort: List[Dict] = None, **options: Any
|
|
330
|
+
) -> StreamResponse:
|
|
331
|
+
params = options.copy()
|
|
332
|
+
params.update({"filter": filter, "sort": self.normalize_sort(sort)})
|
|
333
|
+
return self.post("messages/history", data=params)
|
|
334
|
+
|
|
328
335
|
def query_users(
|
|
329
336
|
self, filter_conditions: Dict, sort: List[Dict] = None, **options: Any
|
|
330
337
|
) -> StreamResponse:
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stream-chat
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.16.0
|
|
4
4
|
Summary: Client for Stream Chat.
|
|
5
5
|
Home-page: https://github.com/GetStream/stream-chat-python
|
|
6
6
|
Author: Tommaso Barbugli
|
|
7
7
|
Author-email: support@getstream.io
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/GetStream/stream-chat-python/issues
|
|
9
9
|
Project-URL: Documentation, https://getstream.io/activity-feeds/docs/python/?language=python
|
|
10
|
-
Project-URL: Release Notes, https://github.com/GetStream/stream-chat-python/releases/tag/v4.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/GetStream/stream-chat-python/releases/tag/v4.16.0
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: Intended Audience :: System Administrators
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
@@ -39,7 +39,7 @@ Requires-Dist: pytest-cov ; extra == 'ci'
|
|
|
39
39
|
Requires-Dist: mypy ; extra == 'ci'
|
|
40
40
|
Requires-Dist: types-requests ; extra == 'ci'
|
|
41
41
|
Provides-Extra: test
|
|
42
|
-
Requires-Dist: pytest ; extra == 'test'
|
|
42
|
+
Requires-Dist: pytest (==8.1.1) ; extra == 'test'
|
|
43
43
|
Requires-Dist: pytest-asyncio (<=0.21.1) ; extra == 'test'
|
|
44
44
|
|
|
45
45
|
# Official Python SDK for [Stream Chat](https://getstream.io/chat/)
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
stream_chat/__init__.py,sha256=xYQuC8xcPLJxJnFWzaNaO-sVUc7IJZYe13OIPRaDBEA,116
|
|
2
|
-
stream_chat/__pkg__.py,sha256
|
|
2
|
+
stream_chat/__pkg__.py,sha256=-SVKUWD2I2HdMWMOyVsa9eNsgpWCHMZDPnE7qENOTv0,206
|
|
3
3
|
stream_chat/campaign.py,sha256=Z7bBo2rGMs02JkA1k9_206J0spcSLecjdhQuRnrc2Eo,2156
|
|
4
4
|
stream_chat/channel.py,sha256=SxlnRM8U1yo_k3wDBC4azz3_LDRPclDV5GBmGCfqB8U,7766
|
|
5
|
-
stream_chat/client.py,sha256=
|
|
5
|
+
stream_chat/client.py,sha256=hQ_O_9iRfGQotU79ZB94RhRoKEsHe6ETq69WAgq6SRo,28807
|
|
6
6
|
stream_chat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
stream_chat/segment.py,sha256=MD1de83rVsaqxcyPy8wTXDudFjxz5Mvr70z4pTkW3P0,2691
|
|
8
8
|
stream_chat/async_chat/__init__.py,sha256=V6x7yDCdXbP3vMuSan6Xm7RE_njZUvflImqOxfKRt4Y,67
|
|
9
9
|
stream_chat/async_chat/campaign.py,sha256=Bc3iHZigxserUycZK4wDuXU0wXVH2G6fIDiYNVYPkeE,1885
|
|
10
10
|
stream_chat/async_chat/channel.py,sha256=yn9P7u1lJdwoCVw9gKotadq6s1rdYSM_wnxhdaZpnTI,8124
|
|
11
|
-
stream_chat/async_chat/client.py,sha256=
|
|
11
|
+
stream_chat/async_chat/client.py,sha256=_Dz-FA8KLNpCpczuW5bxWBkn35JeaRRFCqm6QiTdwGk,31052
|
|
12
12
|
stream_chat/async_chat/segment.py,sha256=G_YEwW2SXIE7huTW3Zu_rim2XkYcuFNYekLZZGDjFkA,2777
|
|
13
13
|
stream_chat/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
stream_chat/base/campaign.py,sha256=dAVkTYyirEpgyOPn8JyDebNMKeJu02vTuqgmPvdQoWU,1449
|
|
15
15
|
stream_chat/base/channel.py,sha256=G6thUgND74z0gvI-N3b3vEsrDJ-D4MrAfW2um_E4x9w,13788
|
|
16
|
-
stream_chat/base/client.py,sha256=
|
|
16
|
+
stream_chat/base/client.py,sha256=0INKl5FkF9o7xZyxy2BDn2fTOSrN3eOkEPG66GiRAH0,41114
|
|
17
17
|
stream_chat/base/exceptions.py,sha256=eh1qW5d6zjUrlgsHNEBebAr0jVH2UupZ06w8sp2cseI,819
|
|
18
18
|
stream_chat/base/segment.py,sha256=X82DX8Y-cERJ1OvF2tz9iIM4CBNW6tx8HGaTEXBva9I,2364
|
|
19
19
|
stream_chat/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -22,8 +22,8 @@ stream_chat/types/campaign.py,sha256=JyAn08oMaEsxPSqmVTdsfJK4xpfErPQV7Xr7zLQm99M
|
|
|
22
22
|
stream_chat/types/rate_limit.py,sha256=v3Z4Ur0yoEdFLiHa1CNABEej2nxPlHQ6Bpy2XxW-TYQ,165
|
|
23
23
|
stream_chat/types/segment.py,sha256=KzOi5N-VzLfj0m4zeZ9U_29ey9dxDtewtcNv9g4Aums,1273
|
|
24
24
|
stream_chat/types/stream_response.py,sha256=jWKPrOU7u6dZ2SyOK53uQCXTstrL1HshO9fA7R6Bt_A,2391
|
|
25
|
-
stream_chat-4.
|
|
26
|
-
stream_chat-4.
|
|
27
|
-
stream_chat-4.
|
|
28
|
-
stream_chat-4.
|
|
29
|
-
stream_chat-4.
|
|
25
|
+
stream_chat-4.16.0.dist-info/LICENSE,sha256=H66SBDuPWSRHzKPEdyjAk3C0THQRcGPfqqve4naQuu0,14424
|
|
26
|
+
stream_chat-4.16.0.dist-info/METADATA,sha256=r_oAMWV8d6qT7Ihrst3DFCS01nad7-piG5JMcSBqbh4,7405
|
|
27
|
+
stream_chat-4.16.0.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
28
|
+
stream_chat-4.16.0.dist-info/top_level.txt,sha256=26uTfg4bWcEaFrVKlzGGgfONH1p5DDe21G07EKfYSvo,12
|
|
29
|
+
stream_chat-4.16.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|