Error Reporter for Fast API
A python library for Fast API that sends error reports to messaging platforms like Slack.
When an error other than an HttpException occurs on the server. it is reported according to the configured settings.
Installation
pip install error-reporter
Usage
configuration
from error_reporter import init_error_reporter, SlackOptions
from fastapi import FastAPI
app = FastAPI()
init_error_reporter(
app=app,
options=SlackOptions(
webhook_url='',
server_name='',
)
)
slack, discord, google-chat
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| type | 'slack', 'discord', 'google-chat' | ✅ | - | type of messenger |
| webhookUrl | string | ✅ | - | Slack webhook URL to send error logs |
| serverName | string | ❌ | unknown server | Identifier for the server |
github
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
| type | 'github' | ✅ | - | type of messenger |
| githubToken | string | ✅ | - | GitHub personal access token |
| owner | string | ✅ | - | Repository owner (user or organization) |
| repository | string | ✅ | - | Repository name where issues will be created |
| serverName | string | ❌ | unknown server | Identifier for the server |
❗Warning
If an invalid or unauthorized token is provided, the application will fail to start.
The server will also fail to start if any of the required GitHub configuration values are missing or incorrect, including:
Example
slack
discord
google-chat
github
Contact
- Email: trust1204@gmail.com
Metadata
Release files for error-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 | Actions |
|---|---|---|---|---|
| error_reporter-0.0.1.tar.gz | 6.6 kB | With provenance | Details for error_reporter-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| error_reporter-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for error_reporter-0.0.1-py3-none-any.whl |
Total release size: 15.7 kB
Release files / error_reporter-0.0.1.tar.gz
| Download URL | error_reporter-0.0.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2086c8a308ab32c4f73ec95bdcc86faa7feab9f87c809b7a4f2d34856029b36d
|
|
BLAKE2b-256 checksum How to use checksums |
5cc1015aaa8ef5503d0f60f4076f6018de9b236964eb5dcb80ec79d31f06deb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logRelease files / error_reporter-0.0.1-py3-none-any.whl
| Download URL | error_reporter-0.0.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e73692cea33b1b3e67c7c0f9ea4490edc07852d1a77bee05d478546d2ed07809
|
|
BLAKE2b-256 checksum How to use checksums |
7a9f92f95b4f1baff3de02c6bcdaa996c9a847a3a04e2efd162bbf857c0147b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logSecurity for error-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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for error_reporter-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 14, 2026.
Transparency logA 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.