Metadata-Version: 2.4
Name: veghe-sdk
Version: 1.0.0
Summary: Veghe SDK for Python — minimal, dependency-free error reporting to Veghe.ro
Author-email: "Veghe.ro" <admin@veghe.ro>
License: MIT
Project-URL: Homepage, https://veghe.ro/en/features/error-tracking
Project-URL: Documentation, https://veghe.ro/docs/error-tracking/
Project-URL: Dashboard, https://i.veghe.ro
Keywords: error-tracking,monitoring,exceptions,veghe,crash-reporting
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Monitoring
Classifier: Topic :: Software Development :: Bug Tracking
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# veghe-sdk

Minimal, dependency-free error reporting for Python apps, sending to
[Veghe.ro](https://veghe.ro) error tracking. One module, stdlib only.

## Install

```bash
pip install veghe-sdk
```

## Use

```python
import veghe_sdk

veghe_sdk.init(
    "https://<key>@i.veghe.ro/<project-id>",   # your project DSN
    release="myapp@1.4.2",                     # enables regression detection
    environment="production",
)

# Uncaught exceptions are now reported automatically. You can also:
veghe_sdk.capture_exception()                       # inside an except block
veghe_sdk.capture_message("webhook lagging", level="warning")
veghe_sdk.set_tag("region", "eu-central")
veghe_sdk.set_user({"email": "user@example.com"})

# For short-lived scripts, flush before exit:
veghe_sdk.flush()
```

Events are sent on background threads and failures are swallowed —
monitoring never breaks the app it watches.

Get a DSN by creating an error project in your
[Veghe dashboard](https://i.veghe.ro) under **Errors**. Grouped issues,
stack traces with code context, releases and regression detection,
threshold alerts and JS source maps are documented in the
[error tracking docs](https://veghe.ro/docs/error-tracking/).

Veghe also speaks the Sentry ingestion protocol, so official Sentry SDKs
(any platform) work against the same DSN.
