Skip to main content

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) or SEEK_END (2); or
  • If the given whence value is SEEK_END but 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.1.1

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

Source distribution (sdist)

Source distribution for requests-seekable 0.1.1
File Size Uploaded
requests_seekable-0.1.1.tar.gz 15.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for requests-seekable 0.1.1
File Interpreter ABI Platform
requests_seekable-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 30.1 kB

Release files / requests_seekable-0.1.1.tar.gz

Download URL requests_seekable-0.1.1.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
450aed05d55960c5d60ea709a7c0d90ef78eb9da79d380a39cd8be1d75cca4cc
BLAKE2b-256 checksum
How to use checksums
a9c80b1c1c419a6994e93b92e77808637f3e447192b5df6078a1db55e3e1c1df
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 Sep 29, 2026.

Transparency log

Release files / requests_seekable-0.1.1-py3-none-any.whl

Download URL requests_seekable-0.1.1-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
689c6dbbc9d8a078032d914d198ba052137498db855ef435da8bea4d4bda575e
BLAKE2b-256 checksum
How to use checksums
0ba10f542e29bec138acdac19fc22a7dd09750d4fcbc10cc21996f3cc335ef68
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 Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

0.2.1

2 release files

0.2.0

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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