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 details)

Uploaded Source

Built Distribution

File details

Details for the file django-debug-toolbar-requests-1.0.5.tar.gz.

File metadata

File hashes

Hashes for django-debug-toolbar-requests-1.0.5.tar.gz
Algorithm Hash digest
SHA256 2203160f235fdb6562e9188f65cb86902858208a238dc1a06bd9eb991f00fdfb
MD5 ea4d2519e65cd6559fc91a5183d81e7e
BLAKE2b-256 5fc2a10c12d08d4c1de6caf41d020fbc8cd5c7db6f5822d6bc3286e4e555d356

See more details on using hashes here.

File details

Details for the file django_debug_toolbar_requests-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_debug_toolbar_requests-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ff0348ab86e1200c8cb4662e39bbe697f7606e754a7ab2d4bb2780c7ea37f0ef
MD5 710d1ec700e45c6938e2bae2104755c0
BLAKE2b-256 702c9c6700bbf7eb390db903ea5a5906b560330afefc81e58f2645a4fcb69fb6

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