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.9.tar.gz (4.4 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.9.tar.gz.

File metadata

File hashes

Hashes for discourse_client_in_disraptor-0.0.9.tar.gz
Algorithm Hash digest
SHA256 b73e5beb533aa21c9428bd0c3e5c2cf6d809822388ac461f59264157f1d0a48a
MD5 cbe02beaaf93322f7244cc4261461013
BLAKE2b-256 598d5d90ce9fef9f7ea476fc83febc0f945de7ca85d6df06b39ca76b90235353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discourse_client_in_disraptor-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fa021c3ba427ab34b82896b5e498ae92877f80fc576546b4357dfb97648d960b
MD5 838e01ee2bef27fa99e2caab884717df
BLAKE2b-256 65f7824a28ced4e2dc3e3d6672a423dd5caac8209b8baabdd2f796913fc356ce

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