Skip to main content

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.

Source Distribution

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file streamedrequests-1.0.3.tar.gz.

File metadata

  • Download URL: streamedrequests-1.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for streamedrequests-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ee68417a1522e75c35b1b2d5f3b6f7e76a3a1a6c0ef5e0c573d08307910079d8
MD5 ddb30fd04f05a8e4e781aafaddfc29d9
BLAKE2b-256 6ee5286bdaa87eda49bedb10d44b9527b093ea34e6a5bb79647e0260e4bd3885

See more details on using hashes here.

File details

Details for the file streamedrequests-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: streamedrequests-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

File hashes

Hashes for streamedrequests-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4388ffc0ee94dda719dafc4324b8ddd108cb2231ec59871de79e2592bf4eef0a
MD5 a57dd884c7624b4af0b8355d8bcd046f
BLAKE2b-256 2db3767d20400b87f72300d86d51519658ab400c551bc9f840d76162a4941fc8

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