Wrapper around Requests to add logging
Project description
[![PyPI](https://img.shields.io/pypi/v/requests_logger.svg?style=flat-square)](https://pypi.python.org/pypi/requests_logger) [![Travis](https://img.shields.io/travis/mdmedley/requests_logger.svg?style=flat-square)](https://travis-ci.org/mdmedley/requests_logger)
# Requests Logging
This package is a wrapper around Requests to log http requests in a human readable format.
### Version
v0.1.0
### Installation
```sh
pip install requests_logger
```
### Quickstart
```python
import logging
from requests_logger import LoggingRequests
logger = logging.getLogger('my_logger')
# Setup logger how you see fit
req = LoggingRequests(logger)
req.request('GET', 'http://google.com')
```
### Development
Want to contribute? Great! Fork and submit a pull request!
### Todos
- Format json and xml request/response bodies
- Rename package (maybe)
- Rename Class (maybe)
- Write more tests
# Requests Logging
This package is a wrapper around Requests to log http requests in a human readable format.
### Version
v0.1.0
### Installation
```sh
pip install requests_logger
```
### Quickstart
```python
import logging
from requests_logger import LoggingRequests
logger = logging.getLogger('my_logger')
# Setup logger how you see fit
req = LoggingRequests(logger)
req.request('GET', 'http://google.com')
```
### Development
Want to contribute? Great! Fork and submit a pull request!
### Todos
- Format json and xml request/response bodies
- Rename package (maybe)
- Rename Class (maybe)
- Write more tests
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
requests_logger-0.1.0.tar.gz
(1.9 kB
view hashes)