Skip to main content

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

jsonrequester-0.1.2.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file jsonrequester-0.1.2.tar.gz.

File metadata

File hashes

Hashes for jsonrequester-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c327d3c196e004fc22ce89fcc0a45eaee57ae9d3d737a0dc100219d82ff58d58
MD5 75da80918439419257fcc4d27ba85a86
BLAKE2b-256 aa8d4825a142b67fbdd8d40d80901d98a95032c4c1ed26d0338f66e94c67ca55

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