{"id":21867455,"url":"https://github.com/dz0ny/pyramid_straw","last_synced_at":"2025-04-14T22:22:57.127Z","repository":{"id":62582975,"uuid":"75724575","full_name":"dz0ny/pyramid_straw","owner":"dz0ny","description":"Makes debugging SQLAlchemy in Pyramid a joy.","archived":false,"fork":false,"pushed_at":"2017-10-18T11:44:35.000Z","size":2046,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-28T10:21:22.328Z","etag":null,"topics":["debug","pyramid-framework","sqlachemy"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dz0ny.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-12-06T11:21:51.000Z","updated_at":"2019-11-04T09:03:09.000Z","dependencies_parsed_at":"2022-11-03T21:57:24.046Z","dependency_job_id":null,"html_url":"https://github.com/dz0ny/pyramid_straw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dz0ny%2Fpyramid_straw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dz0ny%2Fpyramid_straw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dz0ny%2Fpyramid_straw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dz0ny%2Fpyramid_straw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dz0ny","download_url":"https://codeload.github.com/dz0ny/pyramid_straw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248969568,"owners_count":21191287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["debug","pyramid-framework","sqlachemy"],"created_at":"2024-11-28T05:09:30.900Z","updated_at":"2025-04-14T22:22:57.101Z","avatar_url":"https://github.com/dz0ny.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pyramid Straw\n\n[![Build Status](https://travis-ci.org/dz0ny/pyramid_straw.svg?branch=master)](https://travis-ci.org/dz0ny/pyramid_straw)\n\nThe first tool you should use to analyze whats going on with\nyour database, when developing pyramid apps.\n\n\n---\n![screenshots/cover.png](screenshots/cover.png)\n![screenshots/new_functionalily_on_sql_explained_modal.jpg](screenshots/new_functionalily_on_sql_explained_modal.jpg)\n![screenshots/pev_modal.png](screenshots/pev_modal.png)\n\n## Installing\n\nInclude project after debug_toolbar.\n\n```\npyramid.includes =\n    pyramid_straw.profiler\n    pyramid_straw.panel\n```\n\n# Configuration\n\nProject consists of two parts\n\n## Config options\n\n```\npyramid_straw.only_paths\npyramid_straw.report_hook\npyramid_straw.disable_inspect\n```\n\n### pyramid_straw.only_paths\nIf you want to limit what is backtraced for  each query\n(defaults to package where it is included). You can override\n``pyramid_straw.only_paths``.\n\nFor example:\n```\npyramid_straw.only_paths = ['/home/dz0ny/ebn/src/']\n```\n\n### pyramid_straw.report_hook\nAnd if you want to send reports somewhere else you can use\n report hook that needs to be callable and accepts data dict for\n each query. This would be little expensive in production so beware.\n\nFor example:\n```\ndef report_hook(data):\n    requests.post(config.my_report_url, json=data)\n\nconfig.add_settings({\n    'pyramid_straw.report_hook': report_hook\n})\n```\n\n\n### pyramid_straw.disable_inspect\n\nYou can also disable query inspection with setting ```disable_inspect```\nto false. For example:\n\n```\nconfig.add_settings({\n    'pyramid_straw.disable_inspect': False\n}) ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdz0ny%2Fpyramid_straw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdz0ny%2Fpyramid_straw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdz0ny%2Fpyramid_straw/lists"}