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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discourse_client_in_disraptor-0.0.4.tar.gz.
File metadata
- Download URL: discourse_client_in_disraptor-0.0.4.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
635b96782f017f7a8763c037d19f5cb8f9c6acc4b304281db69aa50726625500
|
|
| MD5 |
fd3f3adb49b8e4b9207ce431855585c5
|
|
| BLAKE2b-256 |
622c3ed6a525582456b99fe276aae7177bf2043348ebbcee45f306489f343a0b
|
File details
Details for the file discourse_client_in_disraptor-0.0.4-py3-none-any.whl.
File metadata
- Download URL: discourse_client_in_disraptor-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1391617fc6a0e820c252e401f69739e191b0642ed7ed17cbe78e09f5825c881
|
|
| MD5 |
0e3cbd7533cae535db93144e6b6bd415
|
|
| BLAKE2b-256 |
f483e7737397d54af49bf1d85bd1aa033c0b7d0b5a1b0ff9245bafab73f80c84
|