Simple access to the discourse API required to use Disraptor.
Project description
A Lightweight Discourse Client for Disraptor Apps
Simple access to the discourse API required to use Disraptor.
Install via:
pip3 install discourse-client-in-disraptor
Usage:
Generate an API key via:
from discourse_client_in_disraptor import DiscourseApiClient
client = DiscourseApiClient(url='https://www.tira.io', api_key='<API-KEY>')
client.generate_api_key('<user>', '<description>')
Test if a user has access to a group
from discourse_client_in_disraptor.discourse_api_client import request_is_in_group
request_is_in_group(request=http_request, group=model, app='chatnoir_chat')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for discourse_client_in_disraptor-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c6c93403b53419a54b3bd99768e4d9953864c5fdd87c60a0ffcddc658723712 |
|
MD5 | f3f719145706fd4cb93c4cbd3e58e0d8 |
|
BLAKE2b-256 | 37afcc18a19981dbab63c1d5f3308d8621f33a00bcf5e3a16e1b7e66148b2366 |
Close
Hashes for discourse_client_in_disraptor-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c712b84ff6d5b8caf5fd5cc420354caecf74984bcd4d780c2af218eacc83226a |
|
MD5 | 1b8adba718c33c10a3afd2ecbeb5e1ed |
|
BLAKE2b-256 | c828959a7fbb0ec29d9f7651fc2cbd2b8ad2a00c2791e0e20246f6f7d096b36d |