stream-chat 4.15.0__tar.gz → 4.16.0__tar.gz

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 (37) hide show
  1. {stream-chat-4.15.0/stream_chat.egg-info → stream-chat-4.16.0}/PKG-INFO +2 -2
  2. {stream-chat-4.15.0 → stream-chat-4.16.0}/setup.py +1 -1
  3. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/__pkg__.py +1 -1
  4. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/async_chat/client.py +12 -0
  5. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/base/client.py +9 -0
  6. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/client.py +7 -0
  7. {stream-chat-4.15.0 → stream-chat-4.16.0/stream_chat.egg-info}/PKG-INFO +2 -2
  8. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat.egg-info/requires.txt +1 -1
  9. {stream-chat-4.15.0 → stream-chat-4.16.0}/LICENSE +0 -0
  10. {stream-chat-4.15.0 → stream-chat-4.16.0}/MANIFEST.in +0 -0
  11. {stream-chat-4.15.0 → stream-chat-4.16.0}/README.md +0 -0
  12. {stream-chat-4.15.0 → stream-chat-4.16.0}/pyproject.toml +0 -0
  13. {stream-chat-4.15.0 → stream-chat-4.16.0}/setup.cfg +0 -0
  14. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/__init__.py +0 -0
  15. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/async_chat/__init__.py +0 -0
  16. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/async_chat/campaign.py +0 -0
  17. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/async_chat/channel.py +0 -0
  18. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/async_chat/segment.py +0 -0
  19. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/base/__init__.py +0 -0
  20. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/base/campaign.py +0 -0
  21. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/base/channel.py +0 -0
  22. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/base/exceptions.py +0 -0
  23. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/base/segment.py +0 -0
  24. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/campaign.py +0 -0
  25. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/channel.py +0 -0
  26. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/py.typed +0 -0
  27. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/segment.py +0 -0
  28. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/types/__init__.py +0 -0
  29. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/types/base.py +0 -0
  30. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/types/campaign.py +0 -0
  31. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/types/rate_limit.py +0 -0
  32. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/types/segment.py +0 -0
  33. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat/types/stream_response.py +0 -0
  34. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat.egg-info/SOURCES.txt +0 -0
  35. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat.egg-info/dependency_links.txt +0 -0
  36. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat.egg-info/not-zip-safe +0 -0
  37. {stream-chat-4.15.0 → stream-chat-4.16.0}/stream_chat.egg-info/top_level.txt +0 -0
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stream-chat
3
- Version: 4.15.0
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.15.0
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
@@ -8,7 +8,7 @@ install_requires = [
8
8
  "pyjwt>=2.0.0,<3",
9
9
  "typing_extensions; python_version < '3.8'",
10
10
  ]
11
- tests_require = ["pytest", "pytest-asyncio <= 0.21.1"]
11
+ tests_require = ["pytest == 8.1.1", "pytest-asyncio <= 0.21.1"]
12
12
  ci_require = [
13
13
  "black",
14
14
  "flake8",
@@ -1,6 +1,6 @@
1
1
  __author__ = "Tommaso Barbugli"
2
2
  __copyright__ = "Copyright 2019-2022, Stream.io, Inc"
3
- __version__ = "4.15.0"
3
+ __version__ = "4.16.0"
4
4
  __maintainer__ = "Tommaso Barbugli"
5
5
  __email__ = "support@getstream.io"
6
6
  __status__ = "Production"
@@ -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:
@@ -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
@@ -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.15.0
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.15.0
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
@@ -17,5 +17,5 @@ mypy
17
17
  types-requests
18
18
 
19
19
  [test]
20
- pytest
20
+ pytest==8.1.1
21
21
  pytest-asyncio<=0.21.1
File without changes
File without changes
File without changes
File without changes