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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e21a2d106e6d915a10881d46f2057a79f462529610306d23d9c37b6ef08ecf7f |
|
MD5 | 37ecc0109c75e79a2ab34e81fe2d4ccb |
|
BLAKE2b-256 | 7289824e2b54a33a9d102dc91f22ca019808ad5f14db4590a477cab2816602d6 |
Close
Hashes for discourse_client_in_disraptor-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fd662f4e6de2cad81009ba2ae07e7d913565f3820a3fedb2b29886556fa539 |
|
MD5 | e43c176c99ea3061c707917bbe332828 |
|
BLAKE2b-256 | cc56f5706842e6ddf0bedee2bd2dc1187829234151c35669d431554a08474af7 |