You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-3
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,16 @@
2
2
3
3
[](https://github.com/GetStream/stream-chat-python/actions)[](http://badge.fury.io/py/stream-chat)[](http://mypy-lang.org/)
4
4
5
-
the official Python API client for [Stream chat](https://getstream.io/chat/) a service for building chat applications.
5
+
---
6
+
> ### :bulb: Major update in v4.0 <
7
+
> The returned response objects are instances of [`StreamResponse`](https://github.com/GetStream/stream-chat-python/blob/master/stream_chat/types/stream_response.py) class. It inherits from `dict`, so it's fully backward compatible. Additionally, it provides other benefits such as rate limit information (`resp.rate_limit()`), response headers (`resp.headers()`) or status code (`resp.status_code()`).
8
+
---
6
9
7
-
You can sign up for a Stream account at https://getstream.io/chat/get_started/.
10
+
The official Python API client for [Stream chat](https://getstream.io/chat/) a service for building chat applications.
8
11
9
-
You can use this library to access chat API endpoints server-side, for the client-side integrations (web and mobile) have a look at the Javascript, iOS and Android SDK libraries (https://getstream.io/chat/).
12
+
You can sign up for a Stream account on our [Get Started](https://getstream.io/chat/get_started/) page.
13
+
14
+
You can use this library to access chat API endpoints server-side, for the client-side integrations (web and mobile) have a look at the Javascript, iOS and Android SDK libraries.
10
15
11
16
### Installation
12
17
@@ -34,6 +39,7 @@ pip install stream-chat
34
39
- User search
35
40
- Channel search
36
41
- Campaign API (alpha - susceptible changes and even won't be available in some regions yet)
42
+
- Rate limit in response
37
43
38
44
### Quickstart
39
45
@@ -58,6 +64,20 @@ def main():
58
64
# add a first message to the channel
59
65
channel.send_message({"text": "AMA about kung-fu"}, "chuck")
60
66
67
+
# we also expose some response metadata through a custom dictionary
0 commit comments