{"id":43281738,"url":"https://github.com/thruflo/pyramid_raven","last_synced_at":"2026-02-01T17:11:40.442Z","repository":{"id":9147441,"uuid":"10940676","full_name":"thruflo/pyramid_raven","owner":"thruflo","description":"A specific way to integrate raven and raven-js with a Pyramid web application.","archived":false,"fork":false,"pushed_at":"2017-05-10T08:58:39.000Z","size":17,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-04T02:17:54.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thruflo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-25T14:31:26.000Z","updated_at":"2018-03-27T08:58:47.000Z","dependencies_parsed_at":"2022-09-06T14:40:17.998Z","dependency_job_id":null,"html_url":"https://github.com/thruflo/pyramid_raven","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thruflo/pyramid_raven","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_raven","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_raven/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_raven/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_raven/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thruflo","download_url":"https://codeload.github.com/thruflo/pyramid_raven/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thruflo%2Fpyramid_raven/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28983667,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T16:29:42.054Z","status":"ssl_error","status_checked_at":"2026-02-01T16:29:41.428Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-01T17:11:39.726Z","updated_at":"2026-02-01T17:11:40.430Z","avatar_url":"https://github.com/thruflo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[pyramid_raven][] integrates the [raven python client][] and [raven-js][] with\na [Pyramid][] web application. It provides a configured [raven client][] at\n`request.raven` and a [pyramid_layout][] panel called `raven-js`.\n\nRaven has [built in support for Pyramid applications][] via a Paste filter and\nlogging handler. [pyramid_raven][] is an alternative integration, useful when:\n\n1. you handle exceptions within your application -- i.e.: you register a catch\n   all `Exception` view that renders an error page within your application, thus\n   preventing errors reaching the WSGI pipeline\n1. you also want to log javascript errors\n\n## Setup\n\nInstall using [pip][]:\n\n    pip install pyramid_raven\n\nConfigure Raven DSN address in the INI configuration of your application:\n\n    raven.dsn = https://xxx:yyy@sentry.example.com/1\n\n... or provide a [SENTRY_DSN environment variable][]:\n\n    SENTRY_DSN=http://public:secret@example.com/1\n\n[Configure your application][] to include the package:\n\n    config.include('pyramid_raven')\n\n## Configure\n\nAny `raven.*` namespaced settings in your `.ini` [configuration file][] will\nbe passed to the [raven client][] constructor -- although it's your\nresponsibility to coerce them to the right type, e.g.:\n\n    raven.timeout=3\n\nYou can augment the (already fairly comprehensive set of) request attributes\nsent with the logged server side exceptions by adding space seperated request\nproperty or method names (called with no args) to:\n\n    pyramid_raven.additional_request_properties=foo bar\n    pyramid_raven.additional_request_methods=baz bam\n\nYou can also override the panel template:\n\n    pyramid_raven.panel_tmpl=mypkg:templates/foo.tmpl\n\n## Use\n\nYou can use it to record server side errors:\n\n    @view_config(context=Exception)\n    def system_error_view(context, request):\n        \"\"\"Example catch all exception handler.\"\"\"\n        \n        # Notify sentry.\n        request.raven.captureException()\n        \n        # XXX E.g.: render error page.\n        # ...\n\n### Client side JavaScript errors\n\nClient side error tracking requires that you have\n[pyramid_layout](http://pyramid-layout.readthedocs.org/)\nconfigured before `pyramid_raven`.\n\nAnd client side errors:\n\n    \u003c!-- in production, in the head of your main layout, above all other js --\u003e\n    ${panel('raven-js')}\n\nE.g.: then in any of your subsequently loaded scripts:\n\n    throw new Error('This javascript error will be logged.')\n\nNote that if you load your scripts from an external domain (e.g.: from a CDN)\nthen errors will not be logged by many browsers, due to cross origin security\n(not leaking information across domains). You can workaround this [using CORS][]\nbut browser support is, at the time of writing, wobbly to say the least.\n\n## Tests\n\nTo run the tests, `pip install nose coverage mock` and e.g.:\n\n    $ nosetests --with-doctest --with-coverage --cover-tests --cover-package pyramid_raven pyramid_raven\n    ......\n    Name                      Stmts   Miss  Cover   Missing\n    -------------------------------------------------------\n    pyramid_raven                 9      0   100%   \n    pyramid_raven.client         69      0   100%   \n    pyramid_raven.constants       5      0   100%   \n    pyramid_raven.panel          39      0   100%   \n    -------------------------------------------------------\n    TOTAL                       122      0   100%   \n    ----------------------------------------------------------------------\n    Ran 6 tests in 0.143s\n    \n    OK\n\n[built in support for Pyramid applications]: http://raven.readthedocs.org/en/latest/config/pyramid.html\n[configuration file]: http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/paste.html\n[configure your application]: http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/configuration.html\n[pip]: http://www.pip-installer.org\n[pyramid]: http://pyramid.readthedocs.org\n[pyramid_layout]: http://pyramid_layout.readthedocs.org/en/latest/\n[pyramid_raven]: https://github.com/thruflo/pyramid_raven\n[raven client]: http://raven.readthedocs.org/en/latest/usage.html#raven.base.Client\n[raven python client]: http://raven.readthedocs.org/en/latest\n[raven-js]: http://raven-js.readthedocs.org/en/latest\n[sentry_dsn environment variable]: http://raven.readthedocs.org/en/latest/config/index.html#the-sentry-dsn\n[using cors]: http://enable-cors.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthruflo%2Fpyramid_raven","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthruflo%2Fpyramid_raven","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthruflo%2Fpyramid_raven/lists"}