Saravanan666/pypi-org huggingface dataset:
Package: sentry-kavenegar
Project Statussentry-kavenegarA plugin forSentrythat sends SMS notifications viaKavenegarNote: Only works with IR numbers, mostly because I'm too lazy to think about international phone numbers and what to do with them. Feel free to submit a pull request.Installation$ pip install sentry-kavenegarSentry will automagically detect that it has been installed.Configurationsentry-kavenegarneeds 2 pieces of information to set this up correctly.Account SID & Auth TokenThe Account API KEY can both be found on yourKavenegar account dashboard.SMS FromThis is the number that was purchased through Kaveneger.Kavenegar documentation for more information.Examples:+98935XXXXXXX
// or
0912XXXXXXXXSMS To #'sA list of phone numbers to send to separated by commas.Example:+98935XXXXXXX, 0912XXXXXXXX
Package: sentry-lark
Plugin for Sentry which allows sending notification viaLarkmessenger.Presented plugin tested with Sentry from 8.9 to 9.1.2.DISCLAIMER: Sentry API is under development andis not frozen.InstallationInstall this packagepipinstallsentry-larkRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findLark Notificationsplugin and enable it.Configure plugin onConfigure pluginpage.SeeDocumentationto know how to createBot Webhook.Done!
Package: sentrylog
SentryLog基于 Python-Logging 日志拓展封装了 Sentry日志输出增加了 默认的日志出颜色安装步骤pip install -r requirements.txt环境要求１.Win 系统: 请查看文档 https://www.python.org/ftp/python/ 

２.Linux　系统：

1)下载
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

2)解压Python-3.7.0.tgz
tar -zxvf Python-3.7.0.tgz

3)建立一个空文件夹，用于存放python3程序　
mkdir /usr/local/python3 

4)执行配置文件，编译，编译安装　
cd Python-3.7.0
./configure --prefix=/usr/local/python3
make && make install

5)建立软连接
ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3

6)测试一下python3是否可以用　
python3案例log_test : 存在小部分测试用例配置说明由于logging配置文件种类较多，以conf文件做一下说明
日志的大致流程:

输入--- 加载配置 ---- 加载处理器 ---- 加载格式 ---- 输出

通常来配置的有

1. 处理的配置
 -1- 输出的位置
 -2- 自定义输出
2. 格式的配置
 -1- 输出消息的格式
 -2- 自定义输出

需要注意：
由于logging 中源码中的Config对格式读取有一定的局限性，比如说自定义传参可能无法满足，如果需要请自行修改源码做适配loggers[loggers]
keys=x,y,z
x,y,z : 代表logging-name,也就是对应logging的名称，再配置文件中充当实例的身份上下文做分类,支持多个配置，根据不同的环境实例化供选择

比如说
logger_x : 属于x的配置

-------

[handlers]
keys=h1,h2,h3
h1,h2,h3 : 代表logging-handler, 用来处理日志输出的位置，同样支持多个配置，执行流程先进先出的流程，

比如说指定了h1,h2,h3 handlers同时都引用了，那么日志的输出顺序是 h1-->h2-->h3

-------


[logger_x]
handlers=h1,h2,h3
propagate # 传播，如果子handler中没有输出会默认找父类的输出
qualname # 身份辨识

作用就是引用handlers 


-------

[handler_x]
class # 指定 处理日志的处理器 ,支持自定义
level # 日志过滤级别
formatter # 指定 处理后日志输出的格式，这里是一个身份识别的上下文，
args # 处理器的所需要的参数，详情见官网

-------

[formatter_x]
class # 默认的话走原生的格式出书，支持自定义
format # 指定日志输出的格式

这里需要注意的： 如果自定义通过args传参的话，并非适配所有的参数，源码比较固定
Package: sentry-mailagain
sentry-mailagain is a Sentry plugin to resend the mail notification on
receiving new events in an unresolved group. The mail notification will be
handled in the same manner as would a regression.Installation> pip install sentry-mailagainConfigurationConfiguration is per-project, and has one setting: You may configure how long
the plugin should wait before treating new events for a group as needing a new
notification.Licensesentry-mailagain is licensed under the BSD license.ResourcesBug tracker:https://github.com/simonpercivall/sentry-mailagain/issuesSource:https://github.com/simonpercivall/sentry-mailagain/
Package: sentry-msteams
Microsoft Teams Plugin for SentryMicrosoft Teams Integration forSentry Error Tracking Software.Based off theSentry Pluginswritten by the Sentry Team. Thanks for the excellent tool guys!Installation InstructionsNow Available on PyPi!sentry-msteamsIn yourrequirements.txtfile, add the below package name to install the MS Teams Plugin.sentry-msteamsFor local development you can install using the below command:pip install https://github.com/Neko-Design/sentry-msteams/archive/master.zipImportant Note for Sentry 9Sentry 9 introduced some additional dependencies on specific versions of Redis which appear to cause issues installing plugins.To work around this issue, you can add the below line to the top of yourrequirements.txtfile.redis-py-cluster==1.3.4ConfigurationIn your project, locate the Integrations management screen and click 'Configure Plugin' below the 'Microsoft Teams' item.There is only one configuration option at the moment, the WebHook URL to send messages to. Create a new Incoming Webhook in Microsoft Teams and paste the URL into the configuration screen, then click 'Save Changes'.When ready, click 'Test Plugin' to generate an exception and send a message to your chosen WebHook URL.
Package: sentry-msteams-plugin
Microsoft Teams Plugin for SentryMicrosoft Teams Integration forSentry Error Tracking Software.Based off theSentry Pluginswritten by the Sentry Team. Thanks for the excellent tool guys!Installation InstructionsThe Sentry MS Teams plugin is available in PyPi assentry-msteams. To install it, in yourrequirements.txtfile, add the below package name:sentry-msteams-pluginConfigurationIn your project, locate the Integrations management screen and click 'Configure Plugin' below the 'Microsoft Teams' item.There are two configuration options, the WebHook URL to send messages to, and a toggle to include additional metadata about the error in the Teams message.To add Sentry alerts to your channel, configure a new Incoming Webhook connector in Microsoft Teams and paste the URL into the configuration screen, then click 'Save Changes'. Make sure to use the standard webhook connector when configuring MS Teams, as there is also a Micsorosft provided 'Sentry' connector but this requires a specific Microsoft provided integration which is not supported by sentry-msteams.When ready, click 'Test Plugin' to generate an exception and send a message to your chosen WebHook URL.TroubleshootingWhen running in Docker, Sentry occasionally fails to load the plugin on the worker container. This can result in not sending alerts when triggered, and you'll often see a KeyError in the logs such asKeyError(u'msteams',). To resolve, restart the worker container and fire another alert.Important Note for Sentry 9Sentry 9 introduced some additional dependencies on specific versions of Redis which appear to cause issues installing plugins.To work around this issue, you can add the below line to the top of yourrequirements.txtfile.redis-py-cluster==1.3.4
Package: sentry-nameko
# sentry-namekoThis library provides an custom Data Interface for Sentry allowing you to betterintegrate [Nameko](https://github.com/onefinestay/nameko) Call ID Stacks in yourlogged events.## Installing and PrerequisitesYou need Sentry installed. Instructions can be found[here](http://sentry.readthedocs.org/en/latest/quickstart/index.html).Install sentry-nameko into the virtualenv that your Sentry instance is installedin:```bashpip install sentry-nameko```In your sentry config (by default, at `~/.sentry/sentry.conf.py`), you need toextend the `SENTRY_ALLOWED_INTERFACES` setting to include our custom interface.You'll probably want something like this:```pythonSENTRY_ALLOWED_INTERFACES = SENTRY_ALLOWED_INTERFACES.union(['sentry_nameko.CallIdStack',])```## Logging events examplePresuming you're using built-in `logging`, and you've set up handlers to hitsentry, you can provide Call ID data to Sentry like so:```python# worker_ctx is a WorkerContext instancelogger.log(log_level,message,extra={'tags': {'call_id': worker_ctx.call_id,'parent_call_id': worker_ctx.immediate_parent_call_id,},'sentry_nameko.CallIdStack': {'call_id_stack': worker_ctx.call_id_stack,},},)```The tagging of the `call_id` and `parent_call_id` fields enables searches to beperformed on events accordingly. The use of `sentry_call_id_stack.CallIdStack`triggers the custom data interface.The `WorkerContext` class provides an `extra_for_logging` property where youcan provide a default value for the `extra` parameters of log statements. It'srecommended that you create an application specific sub-class where you returnthe extra data above, as well as anything else you'd like logged. Nameko'sbuilt-in log statements will automatically take advantage of this:```pythonclass MyApplicationWorkerContext(WorkerContext):@propertydef extra_for_logging(self):return {'tags': {'call_id': worker_ctx.call_id,'parent_call_id': worker_ctx.immediate_parent_call_id,'my_custom_tag': 'tag value',},'sentry_nameko.CallIdStack': {'call_id_stack': worker_ctx.call_id_stack,},}logger.log(log_level, message, extra=worker_ctx.extra_for_logging)```## Contributing`sentry-nameko` is developed on GitHub, primarily by the development team at[onefinestay](http://www.onefinestay.com). The GitHub repository ishttps://github.com/onefinestay/sentry-nameko.You are welcome and encouraged to contribute comments, suggestions, patchesand feature requests.## LicenseApache 2.0. See LICENSE for details.
Package: sentry-notify-github-issues
# sentry-notify-github-issuesA Sentry notification plugin for GitHub Issues.## Installation```shpip install git+https://github.com/yoshiori/sentry-notify-github-issues```## Configuration- Repository Name- Github's repository name. (required)- e.g. user_name/project_name- access token- Personal access token (required)- create [here](https://github.com/settings/tokens/new)- API endpoint- GitHub API endpoint. (default: https://api.github.com/)- This is required only if you are using Github Enterprise.- label- Issues label text.- Separated by a comma if you want to specify more than one.- e.g. sentry,error
Package: sentry-oss-nodestore
Example Packagesentry==21.6.1
oss2==2.14.0This is a simple example package. You can useGithub-flavored Markdown测试命令行工具tfd a1 a2测试脚本内容>>> import sentry_oss_nodestore
    >>> sentry_oss_nodestore.__version__用法，配置SENTRY_NODESTORE = 'sentry_oss_nodestore.backend.OSSNodeStorage'
SENTRY_NODESTORE_OPTIONS = {
    'prefix': '',
    'bucket_name': 'tt-sentry',
    'endpoint': 'oss-us-east-1-internal.aliyuncs.com',
    'oss_access_key_id': '1111',
    'oss_secret_access_key': '1111'
}
Package: sentry-patrol
Sentry Patrol offers a CLI (Command Line Interface) to the Sentry API.The project is still in alpha state and in active developmentTable of ContentsSetupHow to get your sentry API TokenHow to useSetuppipenvinstall--devpythonsetup.pydevelopexportSENTRY_API_TOKEN=<your-token>How to get your sentry API TokenYou have to access the Sentry API Page (https://sentry.io/api/). Then you
must log in and get you API Auth Token.How to useFor a list of commands and options, check the help output with:patrol--help
Package: sentry-plivo
Sentry plugin for SMS notifications via Plivo.Installationpip install-egit+https://github.com/dash1291/sentry-plivo.gitAfter installation, make sure to enable thePlivoplugin fromSettings->ManageIntegrations.ConfigurationAfter the plugin has been enabled you’ll be required to configure it. You will need to input theAuthentication IDandAuthentication Tokenthat can be obtained by registering an app onPlivo.You will also be required to input the sender and recipient phone numbers that will be used while sending the SMS notifications.
Package: sentry-plugin-dingtalk
sentry-plugin-dingtalkSentry 钉钉通知插件安装新版本在 self-hosted 目录的sentry/enhance-image.sh中加入pip install sentry-plugin-dingtalk老版本在 onpremise 目录的sentry/requirements.txt中添加sentry-plugin-dingtalk如果新版本中已经在使用 requirements.txt 配置了，那保持原状，在 requirements.txt 添加即可然后执行:docker-composedown
./install.sh
docker-composeup-d使用在项目的所有集成页面找到DingTalk-EX插件，启用，并设置模板
Package: sentry-processor
sentry-processorsentry event processor for protecting sensitive infos.Demo:importsentry_sdkfromsentry_sdk.integrations.loggingimportLoggingIntegrationfromsentry_processorimportDesensitizationProcessor,POSITION'''# origin:{..."vars": {"pwd": "12345!@#$%","phone": "13012341234"}...}# result:{..."vars": {"pwd": "********","phone": "130****1234"}...}'''defbefore_send(event,hint):# https://docs.sentry.io/error-reporting/configuration/filtering/?platform=python# modify event here# ...# process sensitive infosprocessor=DesensitizationProcessor(sensitive_keys=["pwd"],with_default_keys=True,partial_keys=["phone"],mask_position=POSITION.RIGHT,off_set=4)event=processor(event,hint)# or# event = processor.process(event, hint)returneventsentry_sdk.init(dsn="dsn",integrations=[LoggingIntegration()],before_send=before_send)API Referenceclass DesensitizationProcessor(sensitive_keys=None, mask=None, with_default_keys=True,
                               partial_keys=None, partial_mask=None, mask_position=POSITION.RIGHT, off_set=0)
     Parameters:
        - sensitive_keys:
            A list of sensitive information keys that need to be filtered
            required: false
        - mask:
            The string to replace sensitive informations 
            required: false
        - with_default_keys:
            Whether to use the default sensitive information keys
            required: false
            default: True
        - partial_keys:
            A list of sensitive information keys that need to partially hidden(e.g: "12345678" -> "1234****")
            required: false
        - partial_mask:
            The string to partially hidden sensitive informations
            required: false
        - off_set:
            offset of partial_mask string relative to the starting point
            required: false
            default: 0
        - mask_position:
            starting point, the left or right side of original string
            required: false
            default: POSITION.RIGHT       
    
    process(self, event, hint)
        - event
        - hint

    __call__(self, event, hint)
        - event
        - hint
Package: sentrypy
QuickstartSentry.iois an error tracking platform that helps you monitor and
resolve issues in real-time.sentrypyis a Python wrapper for
the Sentry API to:Retrieve error dataAutomate incident responsesIntegrate with your workflowInstallationFirst create a sentry token (official tutorial).Then install by one of the options below.Installing from PyPIpip install sentrypyInstalling from sourcegit clone git@github.com:perfect-operations/sentrypy.git
pip install -e sentrypyUsagefromsentrypyimportSentry# Connect to Sentry APIsentry=Sentry(token="your-secret-token")# Retrieve a projectorg=sentry.organization("your-org-slug")project=org.project("your-project-slug")# Inspect the issuesforissueinproject.issues():print(issue.title)Example output:IndexError: list index out of range
WebDriverException: Message: unknown error: session deleted because of page crash
AttributeError: 'NoneType' object has no attribute 'startswith'Do this and much more. Install and explore!DocumentationRead the full documentationon ReadTheDocs.Feature Requests & IssuesPlease let me knowhere on GitHub!SupportWrite meon TwitterWrite meon LinkedIn
Package: sentry-quart
sentry-quartThe sentry middleware for quartSentry-asgi can't not collect the information like FlaskHow to installpip install sentry-quartHow to usefrom quart import Quart
from sentry_quart import QuartMiddleware

app = Quart(__name__)
host = "https://xxxx.com/v1"
app.asgi_app = QuartMiddleware(app, host)._run_asgi3
sentry_sdk.init(traces_sample_rate=1)
Package: sentry-redispubsub
sentry-redispubsub=============An extension for Sentry to send error metrics to a Redis pub/sub message queue.Details-------The queue will get pushed a json payload with the following fieldsproject -> Project sluglogger -> Used loggerlevel -> Error levelmsg -> Group messagetimes_seen -> Number of times seenlast_seen -> Unixtimestamp xxxxxxxx.0  #Please remove the trailing .0first_seen -> Unixtimestamp xxxxxxxx.0 #Please remove the trailing .0url -> Absolut urlchecksum -> Checksum of groupInstall-------Install the package with ``pip``::pip install sentry-redispubsubConfiguration-------------Go to your project's configuration page (Projects -> [Project]) and select the"RedisPubSub" tab. Enter the Redis host, port, db number, channel name for metrics:.. image:: https://github.com/innogames/sentry-redispubsub/raw/master/docs/images/options.pngAfter installing and configuring, make sure to restart sentry-worker for thechanges to take into effect.
Package: sentry-regressions
sentry-regressionssentry-regressionsis a Sentry plugin that allows to better control
regression handling with non-linear backport releases.In particular, this plugin considers the release versions when determining
whether an event is a regression or not, whereas stock Sentry does not. This
is of particular relevance if you’re dealing with backport releases, where
a bugfix gets backported to alowerrelease that is morerecentthan the
one the issue was tagged as to be resolved in.Consider this example:You release8.0You find a trivial bug, and fix it inmasterYou release8.1, containing that fixYou resolve the Sentry issue as “resolved in 8.1”Now you backport adifferent, crucial fix frommasterback to an8.0.xLTS branchYou release8.0.1, which contains the crucial fix, but not the trivial oneSo in chronological order you created the following releases:8.08.18.0.1If the trivial bug now occurs again in8.0.1, stock Sentry will incorrectly
flag it as a regression, and reopen the issue. It’s not a regression however,
because the trivial bug was neversupposedto be fixed in8.0.1, only
in8.1. But because stock Sentry stricly goes by chronological release
dates, it considers the release8.0.1“higher” than8.1.This regression plugin will instead take actualrelease versionsinto
account when detecting regressions, by parsing version strings and comparing
them correctly (including natural sort order for numbers).For parsing versions strings, the plugin will attempt to use thepackagingmodule (viapkg_resources.parse_version())
if available to parse versions according toPython’s PEP440.While this is certainly suited for versions used in Python packages, the
version specification outlined in PEP 440 is pretty universal in its core,
and should be applicable to many other programming languages’ versioning
conventions, unless you’re using a very exotic versioning scheme.InstallationSimply install the plugin viapip:pipinstallsentry-regressionsThe plugin then needs to be enabled on a per-project basis:Go to a Sentry projectSettingsIntegrations -> All IntegrationsEnable theRegressionPluginfor the projectCompatibilityTested with:Sentry 9.1Sentry 8.22DevelopmentCreate a virtualenv and activate itCreate aPython Install of Sentrygit clonehttps://github.com/4teamwork/sentry-regressions.gitcdsentry-regressionspip install-e.LinksGithub:https://github.com/4teamwork/sentry-regressionsIssues:https://github.com/4teamwork/sentry-regressions/issuesPypi:http://pypi.python.org/pypi/sentry-regressionsCopyrightThis package is copyright by4teamwork.sentry-regressionsis licensed under GNU General Public License, version 2.Changelog1.0.0 (2019-05-20)Initial implementation.
[lgraf]
Package: sentry-responsible
sentry-responsible is an extension to Sentry which lets you assign
responsibilities for events.This extension adds a widget on the sidebar of a event page to mark
team members as being responsible for a event. When working in teams
where everyone has an eye on incoming events that information might
save you some time by recognizing that someone else is already
investigating this issue (if not, then you are the lucky one).InstallationTo install the extension run:pip install sentry-responsibleThen restart your Sentry server to activate the plugin.Licensesentry-responsible is licensed under the BSD license.ResourcesBug trackerhttps://github.com/andialbrecht/sentry-responsible/issuesSource codehttps://github.com/andialbrecht/sentry-responsible/
Package: sentry-riemann
sentry-rienann=============An extension for Sentry to send errors metrics to riemann.Install-------Install the package with ``pip``::pip install sentry-riemannConfiguration-------------Go to your project's configuration page (Projects -> [Project]) and select the"Riemann" tab. Enter the Riemann host, port and prefix for metrics:After installing and configuring, make sure to restart sentry-worker for thechanges to take into effect.This plugin is heavily based on https://github.com/dreadatour/sentry-statsd
Package: sentry-scrapy
# sentry-scrapy[![Build Status](https://travis-ci.org/m-vdb/sentry-scrapy.svg?branch=master)](https://travis-ci.org/m-vdb/sentry-scrapy)[![Coverage Status](https://coveralls.io/repos/github/m-vdb/sentry-scrapy/badge.svg?branch=master)](https://coveralls.io/github/m-vdb/sentry-scrapy?branch=master)[![Pypi version](https://img.shields.io/pypi/v/sentry-scrapy.svg)](https://pypi.python.org/pypi/sentry-scrapy)Scrapy integration with latest Sentry SDK## Requirements- Python3- [`Scrapy`](https://docs.scrapy.org/en/latest/)- [`sentry-sdk`](https://docs.sentry.io/quickstart?platform=python)## InstallationInstall with `pip`:```bash$ pip install sentry-scrapy```And in your Scrapy settings, configure Sentry as follows:```python# configure the extensions# https://doc.scrapy.org/en/latest/topics/extensions.htmlEXTENSIONS = {"sentry_scrapy.extension.SentryExtension": 10,}# initialize Sentry# https://docs.sentry.io/quickstart?platform=pythonimport sentry_sdksentry_sdk.init(dsn='your dsn')```
Package: sentry-sdk
Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join usCheck out our open positionsOfficial Sentry SDK for PythonThis is the official Python SDK forSentryGetting StartedInstallpipinstall--upgradesentry-sdkConfigurationimportsentry_sdksentry_sdk.init("https://12927b5f211046b575ee51fd8b1ac34f@o1.ingest.sentry.io/1",# Set traces_sample_rate to 1.0 to capture 100%# of transactions for performance monitoring.traces_sample_rate=1.0,)Usagefromsentry_sdkimportcapture_messagecapture_message("Hello World")# Will create an event in Sentry.raiseValueError()# Will also create an event in Sentry.To learn more about how to use the SDKrefer to our docs.Are you coming fromraven-python?Use this migration guide.To learn about internals use theAPI Reference.Integrations(If you want to create a new integration, have a look at theAdding a new integration checklist.)Seethe documentationfor an up-to-date list of libraries and frameworks we support. Here are some examples:DjangoFlaskFastAPIAIOHTTPSQLAlchemyasyncpgRedisCeleryApache AirflowApache SparkasyncioGrapheneLoggingLoguruHTTPXAWS LambdaGoogle Cloud FunctionsMigrating Fromraven-pythonThe oldraven-pythonclient has entered maintenance mode and was movedhere.If you're usingraven-python, we recommend you to migrate to this new SDK. You can find the benefits of migrating and how to do it in ourmigration guide.Contributing to the SDKPlease refer toCONTRIBUTING.md.Getting Help/SupportIf you need help setting up or configuring the Python SDK (or anything else in the Sentry universe) please head over to theSentry Community on Discord. There is a ton of great people in our Discord community ready to help you!ResourcesLicenseLicensed under the MIT license, seeLICENSE