A library for client JSON REST requests
Project description
JSONRequester is a wrapper around Httplib2 to interact with JSON APIs. It works similarly to Httplib2 but converts request and response data to and from JSON.
Installing
pip install jsonrequester
Create a new requester
from jsonrequester import JsonRequester
requester = JsonRequester(’http://example.com’)
Make a request
requester.post(‘/post_handler’, {‘example’: ‘data’})
Methods
Methods for GET and POST are provided as .get and .post methods on the requester. Any additional HTTP methods you need can be made using the request method on the requester.
requester.request(‘PUT’, ‘/put_handler’, {‘example’: ‘data’})
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
File details
Details for the file jsonrequester-0.1.3.tar.gz
.
File metadata
- Download URL: jsonrequester-0.1.3.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c40ac86f8eaa2152216ea684ead7da4ffe3b184932f206cf826bf6e4bd4f8af |
|
MD5 | 4f53b9289dc780b412184e79ab5cab33 |
|
BLAKE2b-256 | 8b2cf13350289c61c56c8dc1de12b4b9dc69696c2b32267d6c5c70bc477ddb28 |