Metadata-Version: 2.1
Name: ligo.rrt-chat
Version: 0.1.5
Summary: 
Author: Sushant Sharma-Chaudhary
Author-email: sushant.sharma-chaudhary@git.ligo.org
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: requests (>=2.28.2,<3.0.0)
Requires-Dist: safe-netrc (>=1.0.1,<2.0.0)
Description-Content-Type: text/markdown

# Chat

Create a mattermost chat for discussing superevents.

## Usage

This current version uses a superevent_id information
to make mattermost channels. It only works if the .netrc 
file has a "mattermost-bot" login with appropiate token as password. 

If the channel creation succeedes, the new channel 
name will be `RRT O4 {superevent_id}`. A post will be 
made in this channel with a corresponding 
grace_db url. Raises exceptions in case of failures.

```
from ligo.rrt_chat import channel_creation
import json

channel_creation.rrt_channel_creation(superevent_id, gracedb_url)

```

