{"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,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","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,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}