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.2.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.2.1
File Size Uploaded Provenance Actions
requests_seekable-0.2.1.tar.gz 15.2 kB With provenance Details for requests_seekable-0.2.1.tar.gz

Built distribution (wheel)

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

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 log

Release 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

Security for requests-seekable 0.2.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for requests_seekable-0.2.1.tar.gz

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

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.

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