FinanFut Watchtower SDK
Python SDK for sending application telemetry to FinanFut Watchtower.
Install the published package with FastAPI support:
pip install "finanfut-watchtower-sdk[fastapi]==0.2.0"
Until 0.2.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",
)
watchtower.install_logging()
try:
raise RuntimeError("boom")
except RuntimeError as exc:
watchtower.capture_exception(exc, event="example_failed")
watchtower.capture_metric("cache.hits", 1, unit="count", kind="counter")
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
WATCHTOWER_LOG_LEVEL=WARNING
WATCHTOWER_ISSUE_LEVEL=ERROR
WATCHTOWER_BREADCRUMB_LEVEL=INFO
WATCHTOWER_LOG_SAMPLE_RATE=1.0
WATCHTOWER_MAX_LOGS_PER_MINUTE=300
WATCHTOWER_LOG_BATCH_SIZE=50
WATCHTOWER_LOG_FLUSH_INTERVAL_SECONDS=5
WATCHTOWER_PROMOTE_EXCEPTIONS_TO_ISSUES=true
Integrations:
finanfut_watchtower.integrations.fastapi.WatchtowerMiddlewarefinanfut_watchtower.install_logging()for Python loggingfinanfut_watchtower.integrations.logging.WatchtowerLoggingHandlerfinanfut_watchtower.monitor_jobfinanfut_watchtower.capture_metric
install_logging() keeps existing stdout/Render handlers intact, sends
WARNING+ records as structured logs and links ERROR/CRITICAL records to
issues. It is a direct SDK logging path, not Render Log Streams.
Metadata
Release files for finanfut-watchtower-sdk 0.3.0
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 | |
|---|---|---|---|---|
| finanfut_watchtower_sdk-0.3.0.tar.gz | 19.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finanfut_watchtower_sdk-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.9 kB
Release files / finanfut_watchtower_sdk-0.3.0.tar.gz
| Download URL | finanfut_watchtower_sdk-0.3.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e7e3c212f62589ebfb2a068206b51d72e60d0885fb11fe3e7d1cf8857500e01
|
|
BLAKE2b-256 checksum How to use checksums |
60ed303208bb4448b5902c834181dada4bf31c5cc56ffd29b83f9af232b8e11d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / finanfut_watchtower_sdk-0.3.0-py3-none-any.whl
| Download URL | finanfut_watchtower_sdk-0.3.0-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46cb2e5a7c1ec9e264895b1cee1858d3ea03be9292f171d9619a8f01fb7d5b41
|
|
BLAKE2b-256 checksum How to use checksums |
4943b29ff458314ec643b3352834bdd52d4b64e8626163de4901fcbcc7322da6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for finanfut-watchtower-sdk 0.3.0
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.