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
File details
Details for the file discourse_client_in_disraptor-0.0.8.tar.gz
.
File metadata
- Download URL: discourse_client_in_disraptor-0.0.8.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b639730e49f571f5e13085410269aaa26fa546805e93d45138b99949ccdc1259 |
|
MD5 | 4c36cca44869dececb7b813c3c9c3287 |
|
BLAKE2b-256 | 2b61b89952e6d2dd6ec6ba4a6ef6ac75e872be14583f5cde7e332e69a4be1251 |
File details
Details for the file discourse_client_in_disraptor-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: discourse_client_in_disraptor-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 212895db84da04453fb09586f95c2fdcce286e05404e58ccc1b03d8fad9f1a0d |
|
MD5 | 3f0c6d4e620707f4184ed14031728086 |
|
BLAKE2b-256 | 082a46d2b51700895554add5a9b824e8f337c76e2b135cf2411a9999a538fa2b |