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.10.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.10.tar.gz.

File metadata

File hashes

Hashes for discourse_client_in_disraptor-0.0.10.tar.gz
Algorithm Hash digest
SHA256 50a81eedfd15c2aefb8f2ea81913b663f261be1e580a706811d5b43d4abe83dd
MD5 8cb283c71a9d31d9168bf741ac54eeee
BLAKE2b-256 30122a18a8bc0ab17358855b73d8508a19e49cf1fa6ad41f9aaa1c2f328921e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for discourse_client_in_disraptor-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 a5487c4244588db9a37246609acc1388703cc38b688ab792eafb9fc571919ef7
MD5 574c2901e9758e470ec06a689d43c390
BLAKE2b-256 e35270d80e56da9d18dbb0cbdc77f9cf23c05a0d1b69b76de96e87d3c2bc84af

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