Giter VIP home page Giter VIP logo

pyramid_straw's Introduction

Pyramid Straw

The first tool you should use to analyze whats going on with your database.


screenshots/cover.png screenshots/new_functionalily_on_sql_explained_modal.jpg screenshots/pev_modal.png

Installing

Include project after debug_toolbar.

pyramid.includes =
    pyramid_straw.profiler
    pyramid_straw.panel

Configuration

Project consists of two parts

Config options

pyramid_straw.only_paths
pyramid_straw.report_hook
pyramid_straw.disable_inspect

pyramid_straw.only_paths

If you want to limit what is backtraced for each query (defaults to package where it is included). You can override pyramid_straw.only_paths.

For example:

pyramid_straw.only_paths = ['/home/dz0ny/ebn/src/']

pyramid_straw.report_hook

And if you want to send reports somewhere else you can use report hook that needs to be callable and accepts data dict for each query. This would be little expensive in production so beware.

For example:

def report_hook(data):
    requests.post(config.my_report_url, json=data)

config.add_settings({
    'pyramid_straw.report_hook': report_hook
})

pyramid_straw.disable_inspect

You can also disable query inspection with setting disable_inspect to false. For example:

config.add_settings({
    'pyramid_straw.disable_inspect': False
}) ```

pyramid_straw's People

Contributors

dz0ny avatar enkidulan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.