Skip to main content

Adds requests debuging information

Project description

Copyright (c) 2017, Energylinx Limited
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Description: # django-debug-toolbar-requests

A Django Debug Toolbar panel for most popular http library [requests](http://docs.python-requests.org/en/master/).

# About

This is a panel for [Django Debug Toolbar](https://django-debug-toolbar.readthedocs.io/en/stable/index.html) that displays [requests](http://docs.python-requests.org/en/master/) http queries, data headers and stack trace.

### Installation

Install django-debug-toolbar-requests

```sh
$ pip install django-debug-toolbar-requests
```

Add library into your django `settings.py`

```python
INSTALLED_APPS = (
...
'requests_toolbar',
...
)
```

Add panel into `DEBUG_TOOLBAR_PANELS`

```python
DEBUG_TOOLBAR_PANELS = (
...
'requests_toolbar.panels.RequestsDebugPanel',
...
)
```


## Example

Now always if you're will use [requests](http://docs.python-requests.org/en/master/) then you will see debug information in your [Django Debug Toolbar](https://django-debug-toolbar.readthedocs.io/en/stable/index.html).


```python
requests.get('https://httpbin.org/get', headers={'X-headers': 'value of x header'})
```

## Screenshot
![Screenshot](https://raw.githubusercontent.com/ENERGYLINX/django-debug-toolbar-requests/master/screenshot.png)

Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: BSD License
Classifier: Environment :: Web Environment

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

django-debug-toolbar-requests-1.0.5.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

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