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.3.tar.gz
.
File metadata
- Download URL: discourse_client_in_disraptor-0.0.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bfccc43bc62975086d8bd057d83ef1f7fe7a803384866cebb30d555c1692d26 |
|
MD5 | fa35ded5caf7395ab20991b0820a5b0a |
|
BLAKE2b-256 | c804dcc24e3fb248b1dd062cb62bffc6835b2f136cb8aa10483a84fce3e1f7f8 |
File details
Details for the file discourse_client_in_disraptor-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: discourse_client_in_disraptor-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1890bdaed5574bc155c81f4e4d90ea97131203f550de07be8862f79f0e649ded |
|
MD5 | 2a53e6e89effe2e410e9cc70c60e3327 |
|
BLAKE2b-256 | 024e04fc92ad314b8e9c016fea938c64445e431fc03187f64802e32665404e7b |