gotisink
Send Bugsink (or Sentry) error alerts to Gotify from Django with built-in cooldown throttling and minimal settings.py boilerplate.
Installation
pip install gotisink
export BUGSINK_DSN="https://<public_key>@bugs.example.com/1"
export GOTIFY_URL="https://gotify.example.com/message?<app_token>"
Add the lines to settings.py:
import gotisink
gotisink.init(app_name="MyProject")
Automatically get the values from environment.
Configuration options
To further configure the stack, e.g. using a .env file and Django environ, change the parameters for the function call:
$ cat .env
bugsink_dsn="https://<public_key>@bugsink.example.com/1"
gotify_url="https://gotify.example.com/message?token=<token>"
settings.py:
import environ
...
env = environ.Env()
...
bugsink_dsn = env.get("bugsink_dsn")
gotify_url = env.get("gotify_url")
gotisink.init(
dsn=bugsink_dsn,
gotify_url=gotify_url,
app_name="MyProject", # shown in notification title & header
cooldown_seconds=300, # minimum seconds between Gotify alerts (default: 300)
max_request_body_size="always",
)
Metadata
Release files for gotisink 0.1.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 |
|---|---|---|---|---|
| gotisink-0.1.1.tar.gz | 3.3 kB | Without provenance | Details for gotisink-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gotisink-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gotisink-0.1.1-py3-none-any.whl |
Total release size: 7.0 kB
Release files / gotisink-0.1.1.tar.gz
| Download URL | gotisink-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b0554fa63fe6c09261411289ab70dbf9361b2fa2de8cabc85adab47c2c8957f
|
|
BLAKE2b-256 checksum How to use checksums |
bdb311308f3b738e2a0e2d215f494d06520040b777b5ace2eb3004bf751a166e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Release files / gotisink-0.1.1-py3-none-any.whl
| Download URL | gotisink-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6c81207241f6a0a21b166e3df5bb42edab844c2399eb1d52e23fddb2795cc4b
|
|
BLAKE2b-256 checksum How to use checksums |
b75d9eef73e590c1763a6910ddf7d1f4c17a67afbefee355b152c5819048cb45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.16
|
Security for gotisink 0.1.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.