Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 583 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 583 Bytes

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