Skip to main content

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

discourse_client_in_disraptor-0.0.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file discourse_client_in_disraptor-0.0.4.tar.gz.

File metadata

File hashes

Hashes for discourse_client_in_disraptor-0.0.4.tar.gz
Algorithm Hash digest
SHA256 635b96782f017f7a8763c037d19f5cb8f9c6acc4b304281db69aa50726625500
MD5 fd3f3adb49b8e4b9207ce431855585c5
BLAKE2b-256 622c3ed6a525582456b99fe276aae7177bf2043348ebbcee45f306489f343a0b

See more details on using hashes here.

File details

Details for the file discourse_client_in_disraptor-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for discourse_client_in_disraptor-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d1391617fc6a0e820c252e401f69739e191b0642ed7ed17cbe78e09f5825c881
MD5 0e3cbd7533cae535db93144e6b6bd415
BLAKE2b-256 f483e7737397d54af49bf1d85bd1aa033c0b7d0b5a1b0ff9245bafab73f80c84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page