Extension to integrate your project with Notify.Events service.
Project description
Python client for Notify.Events
A simple Python extension that simplifies the process of integrating your project with the Notify.Events service to send messages to your channels.
Instruction on another languages
Installation
You can install the Python client for Notify.Events from PyPI:
pip install notify_events
Usage
To use this extension, you need to import the Message class into your script.
from notify_events import Message
After that, you can create a Message object, set the necessary parameters and send the message to the channel.
Usage example
from notify_events import Message
# Create a message object.
message = Message('Some <b>important</b> message', 'Title', Message.PRIORITY_HIGH, Message.LEVEL_WARNING)
# Attach the file to the message.
message.add_file('path\to\local\file.zip', 'filename.zip')
# Send a message to your channel in Notify.Events.
message.send('XXXXXXXX')
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
notify_events-1.1.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for notify_events-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4243be4af6402ddc850080b1d470c0359c160d4abe0bc63c28f7a521c4944261 |
|
MD5 | 265111d70d3f064a338be605480492e6 |
|
BLAKE2b-256 | c4d79b03208d5f8e49dfd51a5af5a18e7f9258f57c2a829bc72b368496eda55c |