{"id":28173,"library":"seekablehttpfile","title":"seekablehttpfile","description":"Provides a lazy-loading, seekable file-like object for remote HTTP files using Range requests. Version 0.1.0 supports Python >= 3.7. Low release cadence.","status":"active","version":"0.1.0","language":"python","source_language":"en","source_url":"https://github.com/thatch/seekablehttpfile/","tags":["http","range-request","seek","file-like","lazy-loading"],"install":[{"cmd":"pip install seekablehttpfile","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"used for HTTP range requests","package":"requests","optional":false}],"imports":[{"symbol":"SeekableHttpFile","correct":"from seekablehttpfile import SeekableHttpFile"}],"quickstart":{"code":"from seekablehttpfile import SeekableHttpFile\n\n# Open a remote file with seek support\nwith SeekableHttpFile('https://example.com/large-file.bin') as f:\n    f.seek(1000)\n    data = f.read(1024)\n    print(len(data))","lang":"python","description":"Opens a remote file via HTTP Range requests and reads a chunk after seeking."},"warnings":[{"fix":"Call a small read or check status explicitly after construction if you want to fail fast.","message":"The file is lazy-loaded; no data is fetched until first read or seek. An erroneous URL will only raise an exception on read, not on construction.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using a different strategy for random access patterns or limit seek range.","message":"Seeking backwards may cause repeated HTTP requests if the new position is before the currently buffered data. The implementation caches entire chunks, but large backward seeks can be inefficient.","severity":"gotcha","affected_versions":"0.1.0"},{"fix":"","message":"No deprecations known at version 0.1.0.","severity":"deprecated","affected_versions":"none"}],"env_vars":null,"search_vec":"'0.1.0':20 '3.7':23 'cadenc':26 'file':9,15,33 'file-lik':8,32 'http':14,27 'lazi':5,36 'lazy-load':4,35 'like':10,34 'load':6,37 'low':24 'object':11 'provid':2 'python':22 'rang':17,29 'range-request':28 'releas':25 'remot':13 'request':18,30 'seek':31 'seekabl':7 'seekablehttpfil':1 'support':21 'use':16 'version':19","created_at":"2026-05-09T05:54:06.999736+00:00","updated_at":"2026-05-09T05:54:06.999736+00:00","problems":[{"fix":"Use: from seekablehttpfile import SeekableHttpFile","cause":"Incorrect import path (e.g., from seekablehttpfile.seekablehttpfile import ...). Only top-level import is supported.","error":"AttributeError: module 'seekablehttpfile' has no attribute 'SeekableHttpFile'"},{"fix":"Ensure the URL starts with http:// or https://.","cause":"The library expects a valid HTTP/HTTPS URL. Relative paths or missing scheme cause this.","error":"requests.exceptions.InvalidURL: Failed to parse: <url>"},{"fix":"Check the URL is reachable and returns a valid Content-Range header.","cause":"Passing an invalid URL that returns a non-200 response (e.g., 404) without proper handling. The library tries to parse response headers.","error":"TypeError: 'NoneType' object is not iterable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/thatch/seekablehttpfile","docs":null,"changelog":null,"pypi":"https://pypi.org/project/seekablehttpfile/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}