All Projects → getsentry → Raven Aiohttp

getsentry / Raven Aiohttp

Licence: bsd-3-clause
An aiohttp transport for raven-python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Raven Aiohttp

Python Slack Sdk
Slack Developer Kit for Python
Stars: ✭ 3,307 (+3494.57%)
Mutual labels:  asyncio, aiohttp
Aiohttp Demos
Demos for aiohttp project
Stars: ✭ 517 (+461.96%)
Mutual labels:  asyncio, aiohttp
Diy Async Web Framework
Learn how modern async web frameworks work, by writing simple clone from scratch
Stars: ✭ 309 (+235.87%)
Mutual labels:  asyncio, aiohttp
Pyfailsafe
Simple failure handling. Failsafe implementation in Python
Stars: ✭ 70 (-23.91%)
Mutual labels:  asyncio, aiohttp
Aioslacker
slacker wrapper for asyncio
Stars: ✭ 23 (-75%)
Mutual labels:  asyncio, aiohttp
Aioresponses
Aioresponses is a helper for mock/fake web requests in python aiohttp package.
Stars: ✭ 278 (+202.17%)
Mutual labels:  asyncio, aiohttp
Aiojobs
Jobs scheduler for managing background task (asyncio)
Stars: ✭ 492 (+434.78%)
Mutual labels:  asyncio, aiohttp
aiohttp traversal
Traversal based router for aiohttp.web
Stars: ✭ 21 (-77.17%)
Mutual labels:  aiohttp, asyncio
Python Dependency Injector
Dependency injection framework for Python
Stars: ✭ 1,203 (+1207.61%)
Mutual labels:  asyncio, aiohttp
Aiomixcloud
Mixcloud API wrapper for Python and Async IO
Stars: ✭ 23 (-75%)
Mutual labels:  asyncio, aiohttp
Python3 Concurrency Pics 02
爬取 www.mzitu.com 全站图片,截至目前共5162个图集,16.5万多张美女图片,使用 asyncio 和 aiohttp 实现的异步版本只需要不到2小时就能爬取完成。按日期创建图集目录,保存更合理。控制台只显示下载的进度条,详细信息保存在日志文件中。支持异常处理,不会终止爬虫程序。失败的请求,下次再执行爬虫程序时会自动下载
Stars: ✭ 275 (+198.91%)
Mutual labels:  asyncio, aiohttp
Heroku Aiohttp Web
A project starter template for deploying an aiohttp app to Heroku
Stars: ✭ 14 (-84.78%)
Mutual labels:  asyncio, aiohttp
Web Main
🎉 Ultimate Emoji Generator
Stars: ✭ 261 (+183.7%)
Mutual labels:  asyncio, aiohttp
Aiodocker
Python Docker API client based on asyncio and aiohttp
Stars: ✭ 288 (+213.04%)
Mutual labels:  asyncio, aiohttp
binance-chain-python
Binance chain SDK in Python
Stars: ✭ 22 (-76.09%)
Mutual labels:  aiohttp, asyncio
Sanic Ms
基于sanic的微服务基础架构
Stars: ✭ 336 (+265.22%)
Mutual labels:  asyncio, aiohttp
rigor
HTTP-based DSL for for validating RESTful APIs
Stars: ✭ 65 (-29.35%)
Mutual labels:  aiohttp, asyncio
aiohttp-socks
Proxy (HTTP, SOCKS) connector for aiohttp
Stars: ✭ 147 (+59.78%)
Mutual labels:  aiohttp, asyncio
Aiobotocore
asyncio support for botocore library using aiohttp
Stars: ✭ 630 (+584.78%)
Mutual labels:  asyncio, aiohttp
V3n0m Scanner
Popular Pentesting scanner in Python3.6 for SQLi/XSS/LFI/RFI and other Vulns
Stars: ✭ 847 (+820.65%)
Mutual labels:  asyncio, aiohttp

.. raw:: html

<p align="center">

.. image:: https://sentry-brand.storage.googleapis.com/sentry-logo-black.png :target: https://sentry.io :align: center :width: 116 :alt: Sentry website

.. raw:: html

</p>

=========================================================== Raven-Aiohttp - Asyncio Transport for the Sentry Python SDK

.. image:: https://img.shields.io/pypi/v/raven-aiohttp.svg :target: https://pypi.python.org/pypi/raven-aiohttp :alt: PyPi page link -- version

.. image:: https://travis-ci.org/getsentry/raven-aiohttp.svg?branch=master :target: https://travis-ci.org/getsentry/raven-aiohttp

.. image:: https://img.shields.io/pypi/l/raven-aiohttp.svg :target: https://pypi.python.org/pypi/raven-aiohttp :alt: PyPi page link -- BSD licence

.. image:: https://img.shields.io/pypi/pyversions/raven-aiohttp.svg :target: https://pypi.python.org/pypi/raven-aiohttp :alt: PyPi page link -- Python versions

A transport for the Sentry Python SDK_ which supports Python 3's asyncio interface. For more information about Sentry and the python SDK, see our Python Documentation_ for framework integrations and other goodies.

Requirements

  • raven-python>=5.4.0
  • python>=3.4.2
  • aiohttp>=2.0

Usage

raven-aiohttp ships two asyncio based transports for raven.Client: AioHttpTransport and QueuedAioHttpTransport.

AioHttpTransport

All messages to the sentry server will be produced by "Fire And Forget"

Each new message spawns it owns asyncio.Task, amount of them is not limited

.. code-block:: python

import asyncio

from raven import Client
from raven_aiohttp import AioHttpTransport

client = Client(transport=AioHttpTransport)

try:
    1 / 0
except ZeroDivisionError:
    client.captureException()

# graceful shutdown waits until all pending messages are send

loop = asyncio.get_event_loop()
loop.run_until_complete(client.remote.get_transport().close())

QueuedAioHttpTransport

All messages to the sentry server will be produced by queue system

When transport is created it spawns limited amount of asyncio.Task which sends messages one by one from internal asyncio.Queue

.. code-block:: python

import asyncio
from functools import partial

from raven import Client
from raven_aiohttp import QueuedAioHttpTransport

client = Client(transport=partial(QueuedAioHttpTransport, workers=5, qsize=1000))

try:
    1 / 0
except ZeroDivisionError:
    client.captureException()

# graceful shutdown waits until internal queue is empty

loop = asyncio.get_event_loop()
loop.run_until_complete(client.remote.get_transport().close())

Resources

  • Sentry_
  • Python Documentation_
  • Issue Tracker_
  • IRC Channel_ (irc.freenode.net, #sentry)

.. _Sentry: https://getsentry.com/ .. _Sentry Python SDK: https://github.com/getsentry/raven-python .. _Python Documentation: https://docs.getsentry.com/hosted/clients/python/ .. _Issue Tracker: https://github.com/getsentry/raven-aiohttp/issues .. _IRC Channel: irc://irc.freenode.net/sentry

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].