Access your gotify server
Project description
python-gotify
This python module allows to manage and send messages to your gotify server without handling requests manually.
To send messages:
import gotify
gotify.config(
base_url="https://gotify.example.com",
app_token="AsWIJhvlHb.xgKe",
)
gotify.create_message(
"Hello you wonderful people!",
title="Hello World",
priority=0,
)
Note: To send messages you need to create a new application and set app_token accordingly.
You can also manage things like applications:
import gotify
gotify.config(
base_url="https://gotify.example.com",
client_token="CoLwHBCAr8z2MMA",
)
app = gotify.create_application("foobar", description="test application")
print("Created new application:", app)
would result in
Created new application: {'id': 42, 'token': 'ArHD_yGYf63-A13', 'name': 'fooba
r', 'description': 'test application', 'internal': False, 'image': 'static/def
aultapp.png'}
Note: For most things you need to create a new client and set client_token accordingly.
More details about the capabilities of gotify's API can be found in its API documentation.
Note: since I don't use any gotify plugins, plugin-related functions are completely untested.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gotify-0.1.tar.gz.
File metadata
- Download URL: gotify-0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2b30e937a5730ad601c3fdc28e5fc29e8e16bd8c7272a0200da7ad36d454793
|
|
| MD5 |
543b5ccbaf8e096ba501fe05e57fc5e1
|
|
| BLAKE2b-256 |
c445d84a8cbf9051efba47588041064d12c6f0f7f9f7c9bf34bbda62c141c7ae
|
File details
Details for the file gotify-0.1-py3-none-any.whl.
File metadata
- Download URL: gotify-0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bdf4abd80bf5625216f39fcb5506ac3ae819499ecb8c4aecbe7b21ed5035659
|
|
| MD5 |
4a4c8ff9854c49168b7f1ca30ad475e2
|
|
| BLAKE2b-256 |
ef4246237d5634e52266b99f1ffdebf9f4cb6024bebd1b35c67d82d3b718d908
|