Metadata-Version: 2.0
Name: asparagus
Version: 0.1.0
Summary: Django middleware to log object leaks
Home-page: https://github.com/wildfoundry/django-asparagust
Author: Wildfoundry
Author-email: will.mcgugan@wildfoundry.com
License: LGPL
Keywords: django leak
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Bug Tracking
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
Classifier: Programming Language :: Python :: 3.5
Requires-Dist: objgraph

Django Asparagus
----------------

This is a Django middleware to track down object leaks in your Django application.

To use it, add ``asparagus.middleware.TrackObjectLeaks`` to ``MIDDLEWARE_CLASSES``. It should be in the first position.

    MIDDLEWARE_CLASSES = ['asparagus.middleware.TrackObjectLeaks'] + MIDDLEWARE_CLASSES

The middleware will print a summary of any objects created but not garbage collected.

if you set the settings ``ASPARAGUS_TRACK_CLASS`` to a name of an object (e.g. ``Thread``, then the middleware will render a PNG of the references to any newly created objects.

Note, this is not something you ever want in production. Best to use it to find leaks then remove it from settings entirely.


