Python module to push messages to gotify server
Project description
gotify_message
Description
Python module to push messages to gotify server
Gotify is messaging service that can be installed in LAN network and used without Internet access.
Example use
>>> from gotify_message import GotifyNotification
>>> message=GotifyNotification("http://10.0.0.7:8090", "AiOLxxDxYOCc7bY", "test_title", "test_message")
>>> print(message.json)
{
"url": "http://10.0.0.7:8090/message",
"headers": {
"X-Gotify-Key": "AiOLxxDxYOCc7bY",
"Content-type": "application/json"
},
"payload": {
"title": "test_title",
"priority": 5,
"message": "test_message",
"extras": {
"client::display": {
"contentType": "text/plain"
}
}
}
}
>>> message.send()
<Response [200]>
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
gotify_message-0.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for gotify_message-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60feab2f9a8b99cc422bba6334e29bf5074b09864a0529b9e15b02bb7f617c42 |
|
MD5 | 518ecd0e44aa0876d5db517a13d222b6 |
|
BLAKE2b-256 | 711c420a0c796890f53a80bff5257dce7208cb40c21c40d27fb00deec9f4b7c8 |