Skip to main content

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/

Metadata

Release files for streamedrequests 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for streamedrequests 1.0.3
File Size Uploaded
streamedrequests-1.0.3.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for streamedrequests 1.0.3
File Interpreter ABI Platform
streamedrequests-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / streamedrequests-1.0.3.tar.gz

Download URL streamedrequests-1.0.3.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ee68417a1522e75c35b1b2d5f3b6f7e76a3a1a6c0ef5e0c573d08307910079d8
BLAKE2b-256 checksum
How to use checksums
6ee5286bdaa87eda49bedb10d44b9527b093ea34e6a5bb79647e0260e4bd3885
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / streamedrequests-1.0.3-py3-none-any.whl

Download URL streamedrequests-1.0.3-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4388ffc0ee94dda719dafc4324b8ddd108cb2231ec59871de79e2592bf4eef0a
BLAKE2b-256 checksum
How to use checksums
2db3767d20400b87f72300d86d51519658ab400c551bc9f840d76162a4941fc8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

1 release file

1.0.0

2 release files

0.0.1

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page