Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notify-events/python
Python extension to integrate your project with Notify.Events service.
https://github.com/notify-events/python
alert call notification python-client slack teams telegram viber voice
Last synced: about 2 months ago
JSON representation
Python extension to integrate your project with Notify.Events service.
- Host: GitHub
- URL: https://github.com/notify-events/python
- Owner: notify-events
- License: mit
- Created: 2020-04-26T18:41:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-28T14:10:56.000Z (almost 3 years ago)
- Last Synced: 2024-09-26T07:24:39.640Z (3 months ago)
- Topics: alert, call, notification, python-client, slack, teams, telegram, viber, voice
- Language: Python
- Homepage: https://notify.events/source/62
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python client for Notify.Events
A simple Python extension that simplifies the process of integrating your project with the [Notify.Events](https://notify.events) service to send messages to your channels.
#### Instruction on another languages
- [Русский](https://github.com/notify-events/python/blob/master/docs/ru-RU/README.md)
# Installation
You can install the Python client for Notify.Events from [PyPI](https://pypi.org/project/notify_events/):
```
pip install notify_events
```# Usage
To use this extension, you need to import the Message class into your script.
```python
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
```python
from notify_events import Message# Create a message object.
message = Message('Some important 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')
```[List of all available functions](https://github.com/notify-events/python/blob/master/docs/en-US/Message.md)