HTTP resources as random-access file-like objects
Project description
HTTP resources as random-access file-like objects
httpio is a small Python library that allows you to access files served over HTTP as file-like objects. It differs from libraries like urllib and requests in that it supports seek() (which moves an internal pointer), and that read() makes a request with the Range header set. It also supports caching of contents using a configurable block size, and will reuse TCP connections where possible.
Installation
Use pip to install httpio:
$ pip install httpio
Usage
import zipfile
import httpio
url = "http://some/large/file.zip"
with httpio.open(url) as fp:
zf = zipfile.ZipFile(fp)
print(zf.namelist())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpio-0.1.3.tar.gz
(3.5 kB
view details)
File details
Details for the file httpio-0.1.3.tar.gz.
File metadata
- Download URL: httpio-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b44b8c12d2cc8b7534d2d6151d4620ef38b335635e7dc4623b61c0ea42751f64
|
|
| MD5 |
00d4fc2ac9e706cd159dffceca3df378
|
|
| BLAKE2b-256 |
7db78f089b9f6f511d1594c9cfa249f07e674a54808026aecdfc16cdc7b5ead8
|