noip python_GitHub - NoipyDevOPS/stream-chat-python: Stream Chat official Python API Client

stream-chat-python

68747470733a2f2f7472617669732d63692e636f6d2f47657453747265616d2f73747265616d2d636861742d707974686f6e2e7376673f746f6b656e3d577973744450503976784b6e777364384e775731266272616e63683d6d617374657268747470733a2f2f636f6465636f762e696f2f67682f47657453747265616d2f73747265616d2d636861742d707974686f6e2f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d444d377272394d374b6c68747470733a2f2f62616467652e667572792e696f2f70792f73747265616d2d636861742e73766768747470733a2f2f696d672e736869656c64732e696f2f707970692f707976657273696f6e732f73747265616d2d636861742e737667

the official Python API client for Stream chat a service for building chat applications.

You can sign up for a Stream account at https://getstream.io/chat/get_started/.

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/).

Installation

pip install stream-chat

Documentation

How to build a chat app with Python tutorial

Supported features

Chat channels

Messages

Chat channel types

User management

Moderation API

Push configuration

User devices

User search

Channel search

Quickstart

chat = StreamChat(api_key="STREAM_KEY", api_secret="STREAM_SECRET")

# add a user

chat.update_user({"id": "chuck", "name": "Chuck"})

# create a channel about kung-fu

channel = chat.channel("messaging", "kung-fu")

channel.create("chuck")

# add a first message to the channel

channel.send_message({"text": "AMA about kung-fu"}, "chuck")

Contributing

First, make sure you can run the test suite. Tests are run via py.test

STREAM_KEY=my_api_key STREAM_SECRET=my_api_secret py.test stream_chat/ -v

Install black and pycodestyle

pip install black

pip install pycodestyle

Releasing a new version

In order to release new version you need to be a maintainer on Pypi.

Update CHANGELOG

Make sure you have twine installed (pip install twine)

Update the version on setup.py

Commit and push to Github

Create a new tag for the version (eg. v2.9.0)

Create a new dist with python python setup.py sdist

Upload the new distributable with twine twine upload dist/stream-chat-VERSION-NAME.tar.gz

If unsure you can also test using the Pypi test servers twine upload --repository-url https://test.pypi.org/legacy/ dist/stream-chat-VERSION-NAME.tar.gz

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值