requests-seekable
Open HTTP responses as seekable file objects. When seek() is called, a new request is made with
the Range header set.
This is useful for extracting files from large web-based .zip archives.
Usage
If your existing code looks like this:
import requests
response = requests.get('https://example.com', stream=True)
fileobj = response.raw # not seekable :(
Then replace response.raw with SeekableResponse(response):
import requests
import requests_seekable
response = requests.get('https://example.com', stream=True)
fileobj = requests_seekable.SeekableResponse(response) # seekable :)
If the server doesn't support Range headers, then SeekableResponse initializer raises a
SeekError exception. This type of exception (a subclass of OSError) is also raised from
SeekableResponse.seek() in the following cases:
- If the given whence value isn't
SEEK_SET(0),SEEK_CUR(1) orSEEK_END(2); or - If the given whence value is
SEEK_ENDbut the content length isn't known; or - If the response status isn't 206 "Partial Content" or 416 "Range Not Satisfiable".
Metadata
Release files for requests-seekable 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| requests_seekable-0.2.1.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| requests_seekable-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.6 kB
Release files / requests_seekable-0.2.1.tar.gz
| Download URL | requests_seekable-0.2.1.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ed73df5bc3842dd69be5ae72ca1fb9d4812b715b0385df95d624a3cbc66ef8d
|
|
BLAKE2b-256 checksum How to use checksums |
965a47bcf89b366c071373c7e5a5ce5c205a28b74823241ef23931fbf7177501
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / requests_seekable-0.2.1-py3-none-any.whl
| Download URL | requests_seekable-0.2.1-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f408d55e801c0070b7ed4bd7d901b1b8be2acb0c11537ebaf72ca869c06e82b
|
|
BLAKE2b-256 checksum How to use checksums |
75b3d87b95c34583649209570e9ea2a960801af618a7526df81432b695e02abb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log