A supervisord process notification for rocketchat.
This project has been highly inspired from the [superslacker](https://github.com/MTSolutions/superslacker) project.
## Installation
```
pip install superrocket
```
## Current Stable Version
```
0.3.0
```
## Usage:
To use it with supervisor put this as a plugin in your `supervisor.conf`
```
[eventlistener:superslacker]
command=superslacker --webhook="your-complete-rocketchat-webhook" --channel="#notifications" --hostname="HOST"
events=PROCESS_STATE,TICK_60
```
To use it standalone:
```
from superrocket.api import Api
api = Api(channel='#general', webhook='my_webhook_url')
api.send("```This is my markdown enabled message```")
```
## Options:
```
usage: superrocket [-h] -c CHANNEL -w WEBHOOK [-a ATTACHMENT] [-n HOSTNAME]
[-b BOTNAME] [-e EMOJI] [-k]
Send messages from supervisor state changes, to RocketChat
optional arguments:
-h, --help show this help message and exit
-c CHANNEL, --channel CHANNEL
RocketChat channel to post message to
-w WEBHOOK, --webhook WEBHOOK
RocketChat WebHook URL
-a ATTACHMENT, --attachment ATTACHMENT
RocketChat attachment text
-n HOSTNAME, --hostname HOSTNAME
System Hostname
-b BOTNAME, --botname BOTNAME
Default username for the bot
-e EMOJI, --emoji EMOJI
Default emoji to show for the bot
-k, --insecure Skip RocketChat server certificate verification
```
### Development Installation
* Clone the project.
* Install in Anaconda3 environment
* This command creates a python environment and then activates it.
```
$ make recreate_pyenv && chmod +x activate-env.sh && . activate-env.sh
```
* Now install the application in editable mode and you are ready to start development
```
$ pip install -e .
```
## Test
To run the tests:
```
make test
```
## License
See the LICENSE and Copyright.txt files.
Metadata
Release files for superrocket 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| superrocket-0.3.0.tar.gz | 4.8 kB | Without provenance | Details for superrocket-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| superrocket-0.3.0-py2-none-any.whl | Python 2 | none | any | Details for superrocket-0.3.0-py2-none-any.whl |
Total release size: 11.9 kB
Release files / superrocket-0.3.0.tar.gz
| Download URL | superrocket-0.3.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2b9bb462b470dfae50338e1d0f01a33265fb3f1e32c0dea8c6b3725da66411e
|
|
BLAKE2b-256 checksum How to use checksums |
7334a755673d3b6e8f35a4efbfc172b2fbe7a548eae07f5293281b7b7eb2988d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / superrocket-0.3.0-py2-none-any.whl
| Download URL | superrocket-0.3.0-py2-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
2fcd0212473b72ad86da0d297350bf6e0d79dba441a7dc48b095b651e3a5882d
|
|
BLAKE2b-256 checksum How to use checksums |
c9f53f2c018295bf36671bed358f2a238a4cb215354f45b0afa1795faaa69e05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for superrocket 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.