No project description provided
Project description
Chat
Create a mattermost chat for discussing superevents.
Usage
This current version uses a simple superevent_dictionary containing superevent_id to make mattermost channels. It only works if the .netrc file has a "mattermost-bot" login with appropiate token as password.
A response
object gets the response form the mattermost api
If there is no response, the channel creation succeeded
The new channel name will be RRT {superevent_id}
A post will be made in this channel with a corresponding
grace_db playground url.
from ligo.rrt_chat import channel_creation
import json
res = channel_creation.rrt_channel_creation(superevent_dict)
if res is not None:
print("channel creation failed {}".format(json.loads(res.text)))
else:
print("channel creation succeded")
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
Close
Hashes for ligo_rrt_chat-0.1.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a39a1d298e89d89a6b779426ffa93eb1a3b1cf97878bd77868a8de0bc40ab5 |
|
MD5 | 703a5eb47e898d6b6b89a66872b72f07 |
|
BLAKE2b-256 | 795c90c5b8b01034e5d717d7dee4860b15556bac402c4d57a24f47e06359b44b |