Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Library for streaming http get or post request's responses

Project description

StreamedRequests

Build Status

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

Install

$ pip install StreamedRequests

Basic Usage

from streamedrequests import get, post

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

get('https://example.com/', 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.

Contact

https://chaoswebs.net/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for streamedrequests, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size streamedrequests-1.0.3-py3-none-any.whl (19.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size streamedrequests-1.0.3.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page