Skip to main content

Provides profiling results through console.log. Home-page: https://github.com/chromano/profilelog Maintainer: Carlos H. Romano Maintainer-email: chromano@gmail.com License: UNKNOWN Description: # ProfileLogMiddleware

This is a WSGI middleware which will profile the request and embed it in the response. The default behavior is to embed the profiling data via console.table, right before the closing <html> tag. The result is that you can then see the information by opening devtools (should work on both Chrome and Firefox):

![](https://github.com/chromano/profilelog-middleware/blob/master/sample.png “Chrome devtools”)

## Installation

pip install profilelog-middleware

## Usage

Simply wrap your WSGI application with profilelog.middleware.ProfileLogMiddleware. Below is an example for the wsgi.py file provided with Django projects:

from django.core.wsgi import get_wsgi_application from profilelog.middleware import ProfileLogMiddleware

application = ProfileLogMiddleware(get_wsgi_application())

## Config

You can specify to the middleware how far you want to go by specifying the number of function calls to display. Example:

application = ProfileLogMiddleware(get_wsgi_application(), limit=5)

The default value for limit is 25, which should suffice for most usecases.

## Caveats

If you have a compression middleware in place (for example, a gzip middleware), make sure to disable it or run it after ProfileLogMiddleware, otherwise the default profile logging function won’t be able to identify the content.

Platform: UNKNOWN

Metadata

Release files for profilelog-middleware 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for profilelog-middleware 0.0.2
File Size Uploaded Provenance Actions
profilelog-middleware-0.0.2.tar.gz 3.2 kB Without provenance Details for profilelog-middleware-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for profilelog-middleware 0.0.2
File Interpreter ABI Platform Actions
profilelog_middleware-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details for profilelog_middleware-0.0.2-py2.py3-none-any.whl

Total release size: 8.3 kB

Release files / profilelog-middleware-0.0.2.tar.gz

Download URL profilelog-middleware-0.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7b86515a303eb728000c212820a6fc486ef4e1129898b9af9e4847c0bcfb4c5b
BLAKE2b-256 checksum
How to use checksums
31fd98b987711a055eb4b8472e0642e8824bf2d99e1edfa311d4fc31366d0dac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / profilelog_middleware-0.0.2-py2.py3-none-any.whl

Download URL profilelog_middleware-0.0.2-py2.py3-none-any.whl
Size 5.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8e8a635dbea794e4da66d88b7b75c475fdc5d1e8389bfe761fb798bb3645ef03
BLAKE2b-256 checksum
How to use checksums
688f4961cae252b655853a7183bd4a1e76638477de9b4e85b45f1d1096771dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for profilelog-middleware 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page