Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install dozer

How to install Dozer

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install dozer
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1
0.4Never BuiltWhy not?
0.1 Available View build log
Windows (64-bit)
0.1
0.4Never BuiltWhy not?
0.1 Available View build log
Mac OS X (10.5+)
0.4 Available View build log
0.1 Available View build log
Linux (32-bit)
0.4 Available View build log
0.1 Available View build log
Linux (64-bit)
0.4 Available View build log
0.1 Available View build log
0.4 Available View build log
 
License
Public Domain
Dependencies
Depended by
Imports
Lastest release
version 0.4 on Mar 26th, 2013

Dozer

Dozer was originally a WSGI middleware version of Robert Brewer's Dowser CherryPy tool that displays information as collected by the gc module to assist in tracking down memory leaks. It now also has middleware for profiling and for looking at logged messages.

Tracking down memory leaks

Usage:

from dozer import Dozer

# my_wsgi_app is a WSGI application
wsgi_app = Dozer(my_wsgi_app)

Assuming you're serving your application on the localhost at port 5000, you can then load up http://localhost:5000/_dozer/index to view the gc info.

Profiling requests

Usage:

from dozer import Profiler

# my_wsgi_app is a WSGI application
wsgi_app = Profiler(my_wsgi_app)

Assuming you're serving your application on the localhost at port 5000, you can then load up http://localhost:5000/_profiler to view the list of recorded request profiles.

Here's a blog post by Marius Gedminas that contains a longer description of Dozer's profiler.

Inspecting log messages

Usage:

from dozer import Logview

# my_wsgi_app is a WSGI application
wsgi_app = Logview(my_wsgi_app)

Every text/html page served by your application will get some HTML and Javascript injected into the response body listing all logging messages produced by the thread that generated this response.

Here's a blog post by Marius Gedminas that contains a longer description of Dozer's logview.

Dozer Changelog

0.4 (March 21, 2013)
  • 100% test coverage.
  • Add support for Python 3.2 or newer.
  • Drop dependency on Paste.
0.3.2 (February 10, 2013)
0.3.1 (February 6, 2013)
0.3 (December 13, 2012)
  • Emit the "PIL is not installed" only if the Dozer middleware is actually used.
  • Give a name to the Dozer memleak thread.
  • You can now supply a function directly to Logview(stack_formatter=fn)
  • New configuration option for Logview middleware: tb_formatter, similar to stack_formatter, but for exception tracebacks.
0.2 (December 5, 2012)
  • Adding logview that appends log events for the current request to the bottom of the html output for html requests.
  • Adding profiler for request profiling and call tree viewing.
  • Refactored Dozer into its own leak package.
  • New maintainer: Marius Gedminas.
0.1 (June 14, 2008)
  • Initial public release, port from Dowser, a CherryPy tool.

Subscribe to package updates

Last updated Mar 26th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.