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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamedrequests-1.0.3.tar.gz | 3.4 kB | Without provenance | Details for streamedrequests-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamedrequests-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for streamedrequests-1.0.3-py3-none-any.whl |
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
|
Security for streamedrequests 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.