Library for streaming http get or post request's responses
Project description
StreamedRequests
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee68417a1522e75c35b1b2d5f3b6f7e76a3a1a6c0ef5e0c573d08307910079d8
|
|
| MD5 |
ddb30fd04f05a8e4e781aafaddfc29d9
|
|
| BLAKE2b-256 |
6ee5286bdaa87eda49bedb10d44b9527b093ea34e6a5bb79647e0260e4bd3885
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4388ffc0ee94dda719dafc4324b8ddd108cb2231ec59871de79e2592bf4eef0a
|
|
| MD5 |
a57dd884c7624b4af0b8355d8bcd046f
|
|
| BLAKE2b-256 |
2db3767d20400b87f72300d86d51519658ab400c551bc9f840d76162a4941fc8
|