safwanrahman / chatkit-server-python

Unofficial Python SDK for the Pusher ChatKit Server APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatkit-server-python

The Unofficial Python server SDK for Pusher Chatkit.

Installation

$ pip install pusher-chatkit-server

Usage

from pusher_chatkit import PusherChatKit
from pusher_chatkit.backends import RequestsBackend, TornadoBackend

chatkit = PusherChatKit(
    'instance-locator',
    'api-key',
    RequestsBackend or TornadoBackend
)

# Requests Example
data = chatkit.create_user(...)
print(data)

# Tornado Example
data = await chatkit.create_user(...)
print(data)

Credits

This work is sponsored by LedgerX

About

Unofficial Python SDK for the Pusher ChatKit Server APIs


Languages

Language:Python 100.0%