Python SDK for FinanFut Watchtower.
Project description
FinanFut Watchtower SDK
Python SDK for sending application errors to FinanFut Watchtower.
Install the published package with FastAPI support:
pip install "finanfut-watchtower-sdk[fastapi]==0.1.0"
Until 0.1.0 is published, use the temporary Git dependency:
finanfut-watchtower-sdk[fastapi] @ git+https://github.com/erovirafinanfut/FinanFut_WatchTower.git@main#subdirectory=packages/finanfut-watchtower-sdk
import finanfut_watchtower as watchtower
watchtower.configure_from_env(
service="billing-api",
environment="development",
)
try:
raise RuntimeError("boom")
except RuntimeError as exc:
watchtower.capture_exception(exc, event="example_failed")
Recommended environment:
WATCHTOWER_SDK_ENDPOINT=http://localhost:8000
WATCHTOWER_SDK_PROJECT_KEY=pk_dev_watchtower
WATCHTOWER_SDK_SECRET_KEY=sk_dev_watchtower_change_me
WATCHTOWER_SDK_SERVICE=finanfut-billing-api
WATCHTOWER_SDK_ENVIRONMENT=development
Integrations:
finanfut_watchtower.integrations.fastapi.WatchtowerMiddlewarefinanfut_watchtower.integrations.logging.WatchtowerLoggingHandlerfinanfut_watchtower.monitor_job
Project details
Release history Release notifications | RSS feed
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 finanfut_watchtower_sdk-0.1.0.tar.gz.
File metadata
- Download URL: finanfut_watchtower_sdk-0.1.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed389a305edceb20e8c669e94a18e61d49374ca67b168da723b2f278d8196578
|
|
| MD5 |
6edfa1fcf3405062cb85add758ef2b8d
|
|
| BLAKE2b-256 |
2d6bfbdae057f2628e83c18bcd23daa3ebd1098f5e888e15c75a6710ce83f9d2
|
File details
Details for the file finanfut_watchtower_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: finanfut_watchtower_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39fbabbf40aff2afdd45c6582d1a930ad0dc22d6b35333fa5df17e018b16f651
|
|
| MD5 |
0186b41370c568a381c7365fbcdb34bb
|
|
| BLAKE2b-256 |
3ed8b496f986b0b5b7e05793687092388d80d6d19a6f9c3fb3b752cb0b62c358
|