|
1 | | -stream-python |
2 | | -============= |
| 1 | +# Official Python SDK for [Stream Feeds](https://getstream.io/activity-feeds/) |
3 | 2 |
|
4 | 3 | [](https://github.com/GetStream/stream-python/actions) [](http://badge.fury.io/py/stream-python)  |
5 | 4 |
|
6 | | -[stream-python](https://github.com/GetStream/stream-python) is the official Python client for [Stream](https://getstream.io/), a web service for building scalable newsfeeds and activity streams. |
| 5 | +<p align="center"> |
| 6 | + <img src="./assets/logo.svg" width="50%" height="50%"> |
| 7 | +</p> |
| 8 | +<p align="center"> |
| 9 | + Official Python API client for Stream Feeds, a web service for building scalable newsfeeds and activity streams. |
| 10 | + <br /> |
| 11 | + <a href="https://getstream.io/activity-feeds/docs/?language=python"><strong>Explore the docs »</strong></a> |
| 12 | + <br /> |
| 13 | + <br /> |
| 14 | + <a href="https://github.com/GetStream/stream-django">Django Code Sample</a> |
| 15 | + · |
| 16 | + <a href="https://github.com/GetStream/stream-python/issues">Report Bug</a> |
| 17 | + · |
| 18 | + <a href="https://github.com/GetStream/stream-python/issues">Request Feature</a> |
| 19 | +</p> |
7 | 20 |
|
8 | | -Note there is also a higher level [Django - Stream integration](https://github.com/getstream/stream-django) library which hooks into the Django ORM. |
| 21 | +## 📝 About Stream |
9 | 22 |
|
10 | | -You can sign up for a Stream account at https://getstream.io/get_started. |
| 23 | +You can sign up for a Stream account at our [Get Started](https://getstream.io/get_started/) page. |
11 | 24 |
|
12 | | -### Installation |
| 25 | +You can use this library to access feeds API endpoints server-side. |
| 26 | + |
| 27 | +For the client-side integrations (web and mobile) have a look at the JavaScript, iOS and Android SDK libraries ([docs](https://getstream.io/activity-feeds/)). |
| 28 | + |
| 29 | +## ⚙️ Installation |
13 | 30 |
|
14 | | -#### Install from Pypi |
15 | 31 |
|
16 | 32 | ```bash |
17 | | -pip install stream-python |
| 33 | +$ pip install stream-python |
18 | 34 | ``` |
19 | 35 |
|
20 | | -### Full documentation |
| 36 | +## 📚 Full documentation |
21 | 37 |
|
22 | 38 | Documentation for this Python client are available at the [Stream website](https://getstream.io/docs/?language=python). |
23 | 39 |
|
24 | | -### Usage |
| 40 | +## ✨ Getting started |
25 | 41 |
|
26 | 42 | ```python |
27 | 43 | import datetime |
@@ -149,44 +165,11 @@ redirect_url = client.create_redirect_url('http://google.com/', 'user_id', event |
149 | 165 |
|
150 | 166 | [JS client](http://github.com/getstream/stream-js). |
151 | 167 |
|
152 | | -### Contributing |
153 | | - |
154 | | -First, make sure you can run the test suite. Tests are run via py.test |
155 | | - |
156 | | -```bash |
157 | | -py.test |
158 | | -# with coverage |
159 | | -py.test --cov stream --cov-report html |
160 | | -# against a local API backend |
161 | | -LOCAL=true py.test |
162 | | -``` |
163 | | - |
164 | | -Install black and flake8 |
165 | | - |
166 | | -``` |
167 | | -pip install .[ci] |
168 | | -``` |
169 | | - |
170 | | -Install git hooks to avoid pushing invalid code (git commit will run `black` and `flake8`) |
171 | | - |
172 | | -### Releasing a new version |
173 | | - |
174 | | -In order to release new version you need to be a maintainer on Pypi. |
175 | | - |
176 | | -- Update CHANGELOG |
177 | | -- Update the version on setup.py |
178 | | -- Commit and push to Github |
179 | | -- Create a new tag for the version (eg. `v2.9.0`) |
180 | | -- Create a new dist with python `python setup.py sdist` |
181 | | -- Upload the new distributable with twine `twine upload dist/stream-python-VERSION-NAME.tar.gz` |
182 | | - |
183 | | -If unsure you can also test using the Pypi test servers `twine upload --repository-url https://test.pypi.org/legacy/ dist/stream-python-VERSION-NAME.tar.gz` |
184 | | - |
185 | | -### Copyright and License Information |
| 168 | +## ✍️ Contributing |
186 | 169 |
|
187 | | -Project is licensed under the [BSD 3-Clause](LICENSE). |
| 170 | +We welcome code changes that improve this library or fix a problem, please make sure to follow all best practices and add tests if applicable before submitting a Pull Request on Github. We are very happy to merge your code in the official repository. Make sure to sign our [Contributor License Agreement (CLA)](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) first. See our [license file](./LICENSE) for more details. |
188 | 171 |
|
189 | | -## We are hiring! |
| 172 | +## 🧑💻 We are hiring! |
190 | 173 |
|
191 | 174 | We've recently closed a [$38 million Series B funding round](https://techcrunch.com/2021/03/04/stream-raises-38m-as-its-chat-and-activity-feed-apis-power-communications-for-1b-users/) and we keep actively growing. |
192 | 175 | Our APIs are used by more than a billion end-users, and you'll have a chance to make a huge impact on the product within a team of the strongest engineers all over the world. |
|
0 commit comments