Saravanan666/pypi-org huggingface dataset:
Package: sentry-sdk-pubsub
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
Package: sentry-sdk-scrapy
scrapy-sentry-sdkA Scrapy extension for integration of Sentry SDK to Scrapy projects.This package provides a Scrapy extension for convenient initialization of Sentry SDK.Installationpipinstallscrapy_sentry_sdkUsageTo use the extension add the following to you projectsettings.py:# Send exceptions to Sentry# replace SENTRY_DSN by you own DSNSENTRY_DSN="XXXXXXXXXX"# Optionally, additional configuration options can be providedSENTRY_CLIENT_OPTIONS={"release":"you-project@version"# these correspond to the sentry_sdk.init kwargs}# Enable or disable extensions# See https://doc.scrapy.org/en/latest/topics/extensions.htmlEXTENSIONS={'scrapy_sentry_sdk.extensions.SentryLogging':1,# Load SentryLogging extension before others}ConfigurationCurrently, this extension uses two Scrapy settings keys:SENTRY_DSN: your project DSN (string, required)SENTRY_CLIENT_OPTIONS: additional SDK options (dict, optional)More details on configuring the SDK can be found inSentry documentation.
Package: sentry-sms-ru
A [Sentry](https://www.getsentry.com/) plugin that sends notofications throught a [SMS.ru].LicenseCopyright 2013 Yevgeniy ShchemelevThis file is part of Sentry-SMS-ru.Sentry-SMS-ru is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.Sentry-SMS-ru is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with Sentry-SMS-ru.  If not, see <http://www.gnu.org/licenses/>.
Package: sentry-sqs-transport
Simple AWS SQS sentry-sdk transport that takes ideas fromhttps://github.com/Netflix-Skunkworks/raven-sqs-proxyIt closely follows the HTTPTransport just substituting the HTTP POST section with an SQS Send Message.InstallationTo install:pipinstallsentry-sqs-transportBelow is an example of how to use the transport (note thetransportkeyword argument).importsentry_sdkfromsentry_sdk.integrations.aws_lambdaimportAwsLambdaIntegrationfromsentry_sqs_transportimportSQSTransportsentry_sdk.init(dsn="https://00000000000000000000000000000000@sentry.example.org/11",integrations=[AwsLambdaIntegration()],transport=SQSTransport,# Optionalsqs_queue_url='https://sqs.eu-west-2.amazonaws.com/000000000000/SomeQueue',sqs_client_kwargs={'region_name':'us-east-1'})ConfigurationTo configure which SQS queue to use, passsqs_queue_urlinto the SDK init function with the SQS queue url as the value.
You can also setSENTRY_SQS_QUEUE_URLenvrionment variable.The parametersqs_client_kwargsshould be a dictionary and will be passed into the boto3 client
likeboto3.client('sqs',**sqs_client_kwargs).SQS Message FormatThe format of the message that is put on an SQS queue is a JSON payload which looks like the example below. The body is a
base64’d form of what the SDK would usually post, which is also gzipped.{"method":"POST","headers":{"User-Agent":"string","X-Sentry-Auth":"string","Content-Type":"application/json","Content-Encoding":"gzip",},"url":"https://sentry.example/org","body":"base64 string"}Sentry SQS ConsumerIn theresourcesfolder there is a simple lambda function that will consume these sentry events off the SQS queue and send them to sentry.TODOAdd tests
Package: sentry-sso-google
Google SSO support for Sentry 7.5 and above.UsageAddsentry_sso_googleto your Sentry config’sINSTALLED_APPS.The following settings are required to be in your Sentry configuration.
You can create a new project in theDevelopers
Console. From there, go to
APIs & Auth, Credentials and get the credentials for a web application.
You will also need to enable ‘Google+ API’ in the APIs section.GOOGLE_OAUTH2_CLIENT_IDGOOGLE_OAUTH2_CLIENT_SECRETYou can limit who can sign into Sentry using this provider by setting
theGOOGLE_WHITE_LISTED_DOMAINSto a list of allowed domains. For
example, to limit toeducreations.comusers, one could do:GOOGLE_WHITE_LISTED_DOMAINS=['educreations.com']Instead, or, in addition, you can limit only certain emails to log in
using theGOOGLE_WHITE_LISTED_EMAILSsetting. The setting should be
a list of emails that are checked. For example, to limit to a few users,
one could do:GOOGLE_WHITE_LISTED_EMAILS=['chris.streeter@educreations.com','corey.farwell@educreations.com',]Once deployed, go to the ‘Auth’ section of your organization’s sentry
settings. Click the ‘Configure’ next to ‘Google’.CopyrightCopyright © 2015, Educreations, Inc under the MIT software license. See
LICENSE for more information.
Package: sentry-stack-checker
Pylint plugin for finding logging calls inside exception handlers, and suggest they includeexc_info=True, or changeextra={'stack':True}toexc_info=Trueto get the stack from the exception instead of the one from the log statement.Installation$ pip install sentry_stack_checkerUsage$ pylint --load-plugins sentry_stack_checker <module> -E -d all -e R9501
$ pylint --load-plugins sentry_stack_checker <module> -E -d all -e R9502The optionreport-loggerscan be provided to restrict the logging methods that are checked:$ pylint --load-plugins sentry_stack_checker <module> --report-loggers=warning,error
Package: sentry-statsd
An extension for Sentry to send errors metrics to StatsD.InstallInstall the package withpip:pip install sentry-statsdConfigurationGo to your project’s configuration page (Projects -> [Project]) and select the
“StatsD” tab. Enter the StatsS host, port and prefix for metrics:After installing and configuring, make sure to restart sentry-worker for the
changes to take into effect.
Package: sentry-subscriptions
A plugin for Sentry which allows email notifications to be routed based upon the source of an exception.InstallInstall the package viapip:pip install sentry-subscriptionsProject Configurationsentry-subscriptions is configured on per-project basis. A subscription is in the format of:<module_pattern> <email_list>Example configuration:app.views.* front-end@company.com
app.models.* john@company.com,chris@company.com
Package: sentry-syslog
Thesentry-syslogcommand-line script sendsRFC 5424 IETF Syslog Protocolmessage to Sentry as events as follows:InitializesSentry’s Python logging integrationAccepts one message per-lineConverts each message into a PythonloggingmessageLogs the Python message to be handled by theSentry’s Python logging integrationInstallationInstall using any tool for installing standard Python 3 distributions such aspip:$ sudo pip3 install sentry-syslogUsageSee the command-line help for details on options and arguments:$ sentry-syslog --help
usage: sentry-syslog [-h] [--input-file INPUT_FILE]
                     [--event-level EVENT_LEVEL]
                     sentry_dsn

Send syslog messages to Sentry as events.

positional arguments:
  sentry_dsn            The DSN for your sentry DSN or client key.

optional arguments:
  -h, --help            show this help message and exit
  --input-file INPUT_FILE, -i INPUT_FILE
                        Take the syslog messages from this file, one per-line.
                        (default: stdin)
  --event-level EVENT_LEVEL, -e EVENT_LEVEL
                        Capture log messages of this level and above as Sentry
                        events. All other events are captured as Sentry
                        breadcrumbs. (default: ERROR)The script expects all the syslog lines it receives to be already filtered down to those
that should be captured in Sentry.  The level setting only determines which lines are
captured as breadcrumbs or events.The correct invocation can then be used, for example, withRsyslog’s omprog output
moduleas thebinaryto selectively forward a system’s syslog messages to Sentry as
events.  See theexample omprog configurationwhich might be installed as follows
(will require adapting to the system):$ sudo curl https://raw.githubusercontent.com/rpatterson/sentry-syslog/master/src/sentry_syslog/etc/rsyslog.d/99-sentry.conf >/etc/rsyslog.d/99-sentry.conf
$ sudo editor /etc/rsyslog.d/99-sentry.conf
$ sudo systemctl restart rsyslog.service
Package: sentry-tablestore
sentry-tablestoreAn extension for Sentry which supportAlicloud Tablestore (OTS)as anode storagebackend.ObjectivesSentry provides an abstraction called ‘nodestore’ which is used for storing key/value blobs.It's implemented byBigTable(a service of Google Cloud Platform)
insentry.io.But for self-hosted Sentry, it's implemented by Django default.
This means the large amounts of key-value data were stored in the SQL database.It's horrible, it can lead to rapid growth in the size of SQL database, and make it difficult to clean up.For more details fromhttps://forum.sentry.io/t/postgres-nodestore-node-table-124gb/12753/3.Therefore, this project came into being.
It provides a new solution in addition to Django Database or BigTable,
that isAlicloud Tablestore (OTS).FeaturesImplement the TablestoreNodeStorage backend.Support migrating data from current nodestore backend to the new one.PrerequisitesSentry 21.9.0 or higher.An Tablestore instance ofAlibaba Cloud (International)orAliyun (China).InstallationTo install, simply addsentry-tablestoreto yourrequirements.txtfor your Sentry environment (orpip install sentry-tablestore).ConfigurationTo configure Sentry to use this module, setsentry_tablestore.nodestore.backend.TablestoreNodeStorageto yourSENTRY_NODESTOREin yoursentry.conf.py, like this:fromdatetimeimporttimedeltaSENTRY_NODESTORE='sentry_tablestore.nodestore.backend.TablestoreNodeStorage'SENTRY_NODESTORE_OPTIONS={# Get help from https://www.alibabacloud.com/help/tablestore/latest/python-sdk-initialization'end_point':'','access_key_id':'','access_key_secret':'',}Then, add any applicable configuration options. Depending on your environment, and especially if you are running Sentry in containers, you might consider usingpython-decoupleso you can set these options via environment variables.Example ConfigurationfromdatetimeimporttimedeltaSENTRY_NODESTORE='sentry_tablestore.nodestore.backend.TablestoreNodeStorage'SENTRY_NODESTORE_OPTIONS={# Auto clean data for 90 days from its creation'default_ttl':timedelta(days=90),'automatic_expiry':True,# Get help from https://www.alibabacloud.com/help/tablestore/latest/python-sdk-initialization'end_point':'https://sentry-self-hosted.cn-shanghai.vpc.tablestore.aliyuncs.com','access_key_id':'LTAI****************LYhz','access_key_secret':'MKs5**********************6t0J',# A boolean whether to enable zlib-compression, or the string "zstd" to use zstd.# Use zstd compression to override the default zlib for more compact and more efficient'compression':'zstd'}# Set log-level for debugging# Make sure LOGGING.disable_existing_loggers is set to False (in sentry/conf/server.py)importlogginglogger=logging.getLogger('sentry_tablestore.kvstore.tablestore')# Logger of this projectlogger.setLevel(logging.DEBUG)logger=logging.getLogger('tablestore-client')# Logger of Alicloud SDKlogger.setLevel(logging.DEBUG)BootstrapExecute the command to bootstrap tablestore (create or update the table):sentryupgrade--with-nodestore
Package: sentry-telegram
Plugin for Sentry which allows sending notification viaTelegrammessenger.Presented plugin tested with Sentry from 8.9 to 9.1.1.DISCLAIMER: Sentry API is under development andis not frozen.How will it look likeInstallationInstall this packagepipinstallsentry-telegramRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findTelegram Notificationsplugin and enable it.Configure plugin onConfigure pluginpage.SeeTelegram’s documentationto know how to createBotAPI Token.Done!
Package: sentry-telegram-app
This is FORK PROJECT FROMhttps://github.com/butorov/sentry-telegramSentry TelegramPlugin for Sentry which allows sending notification viaTelegrammessenger.Presented plugin tested with Sentry from 8.9 to 9.1.1, 20+DISCLAIMER: Sentry API is under development andis not frozen.How will it look likeInstallationInstall this packagepipinstallsentry-telegramRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findTelegram Notificationsplugin and enable it.Configure plugin onConfigure pluginpage.SeeTelegram’s documentationto know how to createBotAPI Token.Done!
Package: sentry-telegram-aputilov
Plugin for Sentry which allows sending notification viaTelegrammessenger.Presented plugin tested with Sentry from 8.9 to 9.1.1.DISCLAIMER: Sentry API is under development andis not frozen.How will it look likeInstallationInstall this packagepipinstallsentry-telegramRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findTelegram Notificationsplugin and enable it.Configure plugin onConfigure pluginpage.SeeTelegram’s documentationto know how to createBotAPI Token.Done!
Package: sentry-telegram-notification
Plugin for Sentry which allows sending notification viaTelegrammessenger.Presented plugin tested with Sentry 21.6.3.DISCLAIMER: Sentry API is under development andis not frozen.How will it look likeInstallationInstall this package on your self-hosted Sentry.pipinstallsentry-telegram-notificationRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findTelegram Notificationsplugin and enable it.Configure plugin onConfigure pluginpage.SeeTelegram’s documentationto know how to createBotAPI Token.Done!
Package: sentry-telegram-py3
Plugin for Sentry which allows sending notification viaTelegrammessenger.Presented plugin tested with Sentry 22.12.0.DISCLAIMER: Sentry API is under development andis not frozen.How will it look likeInstallationInstall this packagepipinstallsentry-telegram-py3Restart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findTelegram Notifications Python3plugin and enable it.Configure plugin onConfigure pluginpage.SeeTelegram’s documentationto know how to createBotAPI Token.Done!
Package: sentry-telegram-python
Plugin for Sentry which allows sending notification viaTelegrammessenger.Presented plugin tested with Sentry 22.12.0.DISCLAIMER: Sentry API is under development andis not frozen.How will it look likeInstallationInstall this packagepipinstallsentry-telegram-pythonRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findTelegram Notifications Python3plugin and enable it.Configure plugin onConfigure pluginpage.SeeTelegram’s documentationto know how to createBotAPI Token.Done!
Package: sentry-trello
A Sentry plugin to add cards to a Trello board.LicenseCopyright 2012 Damian ZarembaThis file is part of Sentry-Trello.Sentry-Trello is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.Sentry-Trello is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with Sentry-Trello.  If not, see <http://www.gnu.org/licenses/>.
Package: sentry-tryton
Sentry integration for the Tryton application framework.This module creates a new LoggingHandler for registering tryton exceptions on
sentry. This exception will get some information available on tryton:Info about the current userThe list of modules activated and it’s verions.The database nameThe backend nameThe request contextIt also allows to define a custom error message and description that will be
sent to the user instead of showing the full traceback.UsageThe trytond-logconf.cfg provides an example config file for using this handler.
You only have to specify your sentry dsn on the first arg of the sentry
handler. Once you have modified this file just lunch your trytond with:trytond --logconf trytond-logconf.cfgIssuesFeel free to open Issues on thebitbucket issue trackerif you have some problems with the software or do you want to discuss some
posible improvements.Pull Request are very welcomme also!SupportYou can send me and email onsergi@koolpi.comif you encounter any problems.
I will try to reply ASAP, but it may take some time to get a reply, so please
be patient.
Package: sentry-unfuddle
sentry-unfuddleA flexible extension for Sentry which allows you to create issues in
Unfuddle based on sentry events. It is based off the implementation forsentry-jira.Currently it works with Sentry 7 and 8.InstallationThe sentry-unfuddle module ispublished on the Python Package
Index, so you can
install it usingpiporeasy_install.pip install sentry-unfuddleOr:easy_install sentry-unfuddleThis is a server plugin, so it needs to be installed into the same
Python environment you are running your Sentry instance from.ConfigurationGo to your project’s configuration page (Projects->[Project]) and
select the Unfuddle tab. Enter the Unfuddle credentials and Project
configuration and save changes. Filling out the form is a two step
process (one to fill in your instance details and credentials, one to
select the project to link to).The user you add on the configuration screen is the one used to process
API requests, so ensure that user hasAccount Administratoror at
the very leastProject Administratorprivileges.UsageOnce configured, users will see a link to “Create Unfuddle issue” on the
event page. Clicking on that brings you to a page in which you can
select a user to assign the issue to, select an upcoming milestone, and
select a priority (defaults toHigh.) The “title” and “description”
fields are prepopulated with the data from the event.The plugin will try to be smart when creating an issue on Unfuddle. If
it finds a user that matches the currently logged in Sentry user, it
will make that user the reporter of the ticket (if no match, defaults to
the user from the configuration page.)Licensesentry-unfuddleis licensed under the terms of the 3-clause BSD
license.ContributingAll contributions are welcome, including but not limited to:Documentation fixes / updatesNew features (requests as well as implementations)Bug fixes (see issues list)If you encounter any errors in the code, please file an issue on github:https://github.com/rkeilty/sentry-unfuddle/issues.AuthorAuthor: Rick KeiltyEmail:rkeilty@gmail.comRepository:http://github.com/rkeilty/sentry-unfuddleVersionVersion: 1.0.1Release Date: 2016-01-23Revision HistoryVersion 1.0.1Release Date: 2016-01-23Changes:Updated documentationConfirmed working with Sentry 8.0.xVersion 1.0.0Release Date: 2015-12-07Changes:Updated documentationMade version 1.0.0, as this has been running successfully in
several production environments.Version 0.11.0Release Date: 2015-12-06ChangesInitial port ofsentry-jiratosentry-unfuddle
Package: sentry-vsts
Sentry-VSTSThis is a plugin that can be installed on a Sentry.io server which is intended
to allow a Sentry.io user to integrate issues reported in Sentry.io with Visual
Studio Team Services work items.InstallationInstall the plugin viapip:pip install sentry-vstsOr optionally install directly from github:sudo -H pip install -e git+https://github.com/boylec/sentry-vsts#egg=sentry_vstsOnce the plugin is installed, it will be configurable on a per-project basis
within the Sentry.io UI. (Choose a project to integrate, and then go to project
settings in the top right, and find the Visual Studio Team Services Plugin.
Click configure and fill in configuration fields as needed.)
Package: sentry-wechatwork
Plugin for Sentry which allows sending notification viaWeChat Workmessenger.InstallationInstall this packagepipinstallsentry-wechatworkRestart your Sentry instance.Go to your Sentry web interface. OpenSettingspage of one of your projects.OnIntegrations(orLegacy Integrations) page, findWechatWork Notificationsplugin and enable it.Configure plugin onConfigure pluginpage.SeeDocumentationto know how to createGroup chat Bot.Done!
Package: sentry-wrapper
DESCRIPTIONsentry-wrapper calls a setuptools entrypoint and sends exceptions to sentry. It
is useful to log the exceptions of a correctly packaged but not sentry-capable
program.Usage:usage: sentry-wrapper [options] [-- entrypoint options]

positional arguments:
  name                  Entry point name (eg. my-entrypoint)
  dist                  Distribution name (eg. my-project==1.2.4, default:
                        same value than name)
  group                 Entry point group (default: console_scripts)

optional arguments:
  -h, --help            show this help message and exit
  --dsn SENTRY_DSN      Sentry DSN
  -t timeout, --timeout timeout
                        Timeout. After this value, TimeoutError is raised to
                        Sentry.For example, if thesetup.pyfile of the packagemypackagecontains:...
name='my-package',
entry_points={
    'console_scripts': [
        'my-entrypoint = mypackage:main',
    ],
},
...Callmy-entrypointwith:sentry-wrapper --dsn SENTRY_DSN my-entrypoint my-package console_scriptsINSTALLATIONTo install in a virtualenv:$> virtualenv myenv
$> source myenv/bin/activate
$> pip install sentry-wrapper
$> pip install path/to/your/project
$> sentry-wrapper -hDEVELOPTo start hacking on sentry-wrapper using Docker:$> makeThen:Visithttp://localhost:9000with the credentials test/testCreate a project and copy the DSNTest sentry-wrapper against the test project of this repository:sentry-wrapper --dsn [...] whatever_ok whatever console_scripts
sentry-wrapper --dsn [...] whatever_exception whatever console_scriptsCONTRIBUTORSBastien ChatelardJulien Castets