Skip to main content

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


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.3.0.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lush_sentryx-0.3.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file lush_sentryx-0.3.0.tar.gz.

File metadata

  • Download URL: lush_sentryx-0.3.0.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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

Hashes for lush_sentryx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0c2c75219d9ca6012bdd95155b0772a5e447eb673a36c61087bbd592586e378c
MD5 94535377b8b6f6c4f178e09443ff0e98
BLAKE2b-256 9db3e06433195022ab4a46a24470368ecbe6eca5147e36ca0915aad668239e7b

See more details on using hashes here.

File details

Details for the file lush_sentryx-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: lush_sentryx-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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

Hashes for lush_sentryx-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa5af8e2824825ba8fb1746d8f76e85b7df13d3925a7d905f3f95346d04746a6
MD5 b15544dd4e4cb175944b3af0949e920f
BLAKE2b-256 d464ee483380e4380827a6606259d3d68d12ef08d6f3e9f04be72b9b31358ec8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page