Skip to main content

Django debug extension

Project description

The Everbug is a lightweight Django middleware for Chrome extension with easy install. One of the advantages: the response body of target page remains clean and unchanged.

Special summary: * Database queries with explains (Multiple database support) * Context variables * Profiles functions (cProfile through decorator) * Support ajax requests

Installing

For Django:

Run "pip install everbug".
Add "everbug" to your INSTALLED_APPS in settings.py.
Append "everbug.middleware.Tracer" to MIDDLEWARE or MIDDLEWARE_CLASSES in settings.py.

For Chrome: _chrome_ext_ For Firefox: _firefox_ext_

Usage

“Context” works for any view which has a “context_data”. “Queries” works as-is for all databases in “DATABASES” section. “Profile” works through decorator (based on builtin cProfile). By default, profile output is truncated to 20 lines.

Example usage:

from everbug.shortcuts import profile

@profile
def sample_method():
    // some code here ...

Call @profile with argument for full view, for example:

@profile(short=False)
def sample_method():
    // some code here ...

Running the tests

docker-compose  up -d
docker exec -it everbug tox

Requirements

Python >= 3.5
Django >= 1.11

License

This project is licensed under the MIT License - see the LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

everbug-1.24.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

everbug-1.24-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file everbug-1.24.tar.gz.

File metadata

  • Download URL: everbug-1.24.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.5

File hashes

Hashes for everbug-1.24.tar.gz
Algorithm Hash digest
SHA256 401454da85216a979b099ae1f89b353b7d726e291448324cf33e1db2d623b07d
MD5 aa0e0652ec9acc82575da4fecc1ff853
BLAKE2b-256 38405780920a236252ec2c3dbcfcf14a8a4fcb3d7690fcad639fec4968d608c7

See more details on using hashes here.

File details

Details for the file everbug-1.24-py3-none-any.whl.

File metadata

  • Download URL: everbug-1.24-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.5

File hashes

Hashes for everbug-1.24-py3-none-any.whl
Algorithm Hash digest
SHA256 13c81fcf44175a5131f3b0d2591a20ea1c646017bbcf4d20d3bc29176d9a82ef
MD5 c7a1efad0abc077e3dd5a7b1523f3f2a
BLAKE2b-256 50ac70141f92ced3a2b2d287086ad25f05cae2aee992b8b686aa21507423108f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page