sentry-sdk slim wrapper for more security and easier to use.
Project description
lush-sentryx
围绕 sentry-sdk 做的一层轻量封装: 把配置聚在一起,默认做脱敏,同时把“初始化失败”当成可降级事件处理.
如果你只想要脱敏/过滤能力,不依赖 sentry-sdk,看 lush-sentryx-core.
安装
按框架装 extra 会更省事:
fastapi:lush-sentryx[fastapi]flask:lush-sentryx[flask]django:lush-sentryx[django]
快速开始
from lush_sentryx import SentryConfig
from lush_sentryx.integrations.common import default_common_integrations
config = SentryConfig(
dsn="https://xxx@sentry.io/123",
enabled=True,
integrations=[*default_common_integrations()],
)
manager = config.create_manager()
manager.init()
开发
uv sync -p 3.10 --frozen
uv run -p 3.10 pytest
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
lush_sentryx-0.2.1.tar.gz
(19.0 kB
view details)
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 lush_sentryx-0.2.1.tar.gz.
File metadata
- Download URL: lush_sentryx-0.2.1.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e6f9d9b007e491c31e1ee7ec01e8b72d2839422881993e0403dd437d12952b8
|
|
| MD5 |
ceab56f72de112380bf3f1fe8a00c7f3
|
|
| BLAKE2b-256 |
b3395c38ef2721f5f5bc35aa58817813b282ed9c7823ad97ed978d8a34faa1f8
|
File details
Details for the file lush_sentryx-0.2.1-py3-none-any.whl.
File metadata
- Download URL: lush_sentryx-0.2.1-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6c6f48b00cb17f74017f7ae1a797221baa9cd02622517243d55af0289107359
|
|
| MD5 |
f86c61ef79a0ae0c2db61fbfe7686419
|
|
| BLAKE2b-256 |
3f1ff2622173f5eec4250639f1e60e1930a07c9f20b474cdd1e68ebd74e5c2aa
|