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]>
>>> message.send("test message")
<Response [200]>
>>> message.send("test message", "test_title")
<Response [200]>
>>> message.delivered
False
>>> message.send('test message')
<Response [200]>
>>> message.delivered
True
Metadata
Release files for gotify-message 0.2.1
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 |
|---|---|---|---|---|
| gotify_message-0.2.1.tar.gz | 3.7 kB | Without provenance | Details for gotify_message-0.2.1.tar.gz |
Release files / gotify_message-0.2.1.tar.gz
| Download URL | gotify_message-0.2.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb49e7b0bf9b29bb04db0ca8486404f2cdb4932070762f4f3337cc5558833282
|
|
BLAKE2b-256 checksum How to use checksums |
dba6d88e1909691555e93a49dea05cd60d38590e4dd9829740a3542af43c8666
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.2
|
Security for gotify-message 0.2.1
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.