Silk

Silk is a live profiling and inspection tool for the Django framework. Silk intercepts and stores HTTP requests and database queries before presenting them in a user interface for further inspection:

_images/1.png

A live demo is available here.

Features

  • Inspect HTTP requests and responses
    • Query parameters
    • Headers
    • Bodies
    • Execution Time
    • Database Queries
      • Number
      • Time taken
  • SQL query inspection
  • Profiling of arbritary code blocks via a Python context manager and decorator
    • Execution Time
    • Database Queries
    • Can also be injected dynamically at runtime e.g. if read-only dependency.
  • Authentication/Authorisation for production use

Requirements

  • Django: 1.5, 1.6
  • Python: 2.7, 3.3, 3.4