Python gitlab reporter
A custom exception handler that can be used to (re)open issues on Gitlab for projects written in Python.
The aim was to build a very small module that is easy to use and that works with a local Gitlab instance. This module is useful for those who want to aggregate runtime errors in a central location without using third-party software (e.g. sentry.io, etc).
Duplicate errors will be tracked in a single issue and will not be duplicated to avoid error-spamming.
The script is thread-safe and handles errors from Thread.run().
Installation
The module is available on Pypi:
pip install python-gitlab-reporter
In your Python project call:
from reporter.core import Reporter
Reporter.init("https://gitlab.com", private_token="12345657678890", project_id=123456)
How does it work?
The script adds custom hooks to sys.excepthook and
threading.excepthook.
These wrap around the original hooks and send issues to Gitlab. Any error that is caused by python-gitlab-reporter
itself is ignored. The original sys.excepthook and threading.excepthook will always be called, so that
the exceptions still terminate the program, etc.
Metadata
Release files for python-gitlab-reporter 0.0.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 | |
|---|---|---|---|---|
| python-gitlab-reporter-0.0.1.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_gitlab_reporter-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / python-gitlab-reporter-0.0.1.tar.gz
| Download URL | python-gitlab-reporter-0.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02fb01a6c050bdde53d902c7ed7f8086d9153818574a26aed07c36679e0ca89b
|
|
BLAKE2b-256 checksum How to use checksums |
90c6f143222dec8ff4578b15a05dd77a302634ce1932f5b61b918a2bc9a668d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Release files / python_gitlab_reporter-0.0.1-py3-none-any.whl
| Download URL | python_gitlab_reporter-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9cce502a81dd770279b67ac8a644797ecefa873b98a12689d145599de5467ea
|
|
BLAKE2b-256 checksum How to use checksums |
2d505bbfbe08531e2bf671f7374a173ff4a08e72d4002d401e36e81042fd7282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
|
Security for python-gitlab-reporter 0.0.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.