Skip to main content

Library for streaming http get or post request's responses

Project description


Build Status

Python module to stream HTTP requests in order to ensure content length sanity.


$ pip install StreamedRequests

Basic Usage

from streamedrequests import get, post

def my_func(data):
    # prints every 5 bytes of data from site

get('', callback=my_func, chunk_size=5)

sync: bool (default True) when set to false creates and starts a new thread for streaming

request_headers param can be used to set req headers

post() is the same, but use post_data to set request body.


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

streamedrequests-1.0.3.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

streamedrequests-1.0.3-py3-none-any.whl (19.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page