{ "info": { "author": "Barney Gale", "author_email": "barney@barneygale.co.uk", "bugtrack_url": null, "classifiers": [], "description": "httpio\n======\n\nHTTP resources as random-access file-like objects\n\nhttpio is a small Python library that allows you to access files\nserved over HTTP as file-like_ objects (which is to say that they\nsupport the interface of the standard library's BufferedIOBase_\nclass). It differs from libraries like ``urllib`` and ``requests`` in\nthat it supports ``seek()`` (which moves an internal pointer), and\nthat ``read()`` makes a request with the ``Range`` header set. It also\nsupports caching of contents using a configurable block size, and will\nreuse TCP connections where possible.\n\nInstallation\n------------\n\nUse ``pip`` to install httpio:\n\n.. code-block:: console\n\n $ pip install httpio\n\nUsage\n-----\n\n.. code-block:: python\n\n import zipfile\n import httpio\n\n url = \"http://some/large/file.zip\"\n with httpio.open(url) as fp:\n zf = zipfile.ZipFile(fp)\n print(zf.namelist())\n\n.. _file-like: https://docs.python.org/3/glossary.html#term-file-object\n\n.. _BufferedIOBase: https://docs.python.org/3/library/io.html#io.BufferedIOBase\n\nUnit Tests\n----------\n\nUnit tests are provided for the standard behaviours implemented by\nthe library. They can be run with\n\n.. code-block:: console\n \n $ python -m unittest discover -s tests\n\nor a ``tox.ini`` file is provided which allows the tests to be run in\nvirtual environments using the ``tox`` tool:\n\n.. code-block:: console\n \n $ tox", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/barneygale/httpio", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "httpio", "package_url": "https://pypi.org/project/httpio/", "platform": "", "project_url": "https://pypi.org/project/httpio/", "project_urls": { "Homepage": "https://github.com/barneygale/httpio" }, "release_url": "https://pypi.org/project/httpio/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "HTTP resources as random-access file-like objects", "version": "0.3.0" }, "last_serial": 5398606, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "1fbd2b933c72b584db96904653f89803", "sha256": "677aaaaa58d9c7624a13770962a57317741557cc89636187d47ced5ebe5ab8e5" }, "downloads": -1, "filename": "httpio-0.1.2.tar.gz", "has_sig": false, "md5_digest": "1fbd2b933c72b584db96904653f89803", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3047, "upload_time": "2016-06-09T23:27:00", "url": "https://files.pythonhosted.org/packages/57/58/06b5e84f3b404083d8ac28a85062b3da8e4863af1524a17b4555ecea2bc1/httpio-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "00d4fc2ac9e706cd159dffceca3df378", "sha256": "b44b8c12d2cc8b7534d2d6151d4620ef38b335635e7dc4623b61c0ea42751f64" }, "downloads": -1, "filename": "httpio-0.1.3.tar.gz", "has_sig": false, "md5_digest": "00d4fc2ac9e706cd159dffceca3df378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3529, "upload_time": "2016-06-09T23:41:11", "url": "https://files.pythonhosted.org/packages/7d/b7/8f089b9f6f511d1594c9cfa249f07e674a54808026aecdfc16cdc7b5ead8/httpio-0.1.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "9891b99c86ecd3f1c7c29a669f774ee9", "sha256": "38dafc07874b5033499af9f1465e2b31f93e6934c52effa76d43695a98af1ae8" }, "downloads": -1, "filename": "httpio-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9891b99c86ecd3f1c7c29a669f774ee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6347, "upload_time": "2019-06-14T03:15:32", "url": "https://files.pythonhosted.org/packages/b2/01/04e1fe7470139d5fe39be055c0defde4b80ef42878cee4706664046d87d1/httpio-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9891b99c86ecd3f1c7c29a669f774ee9", "sha256": "38dafc07874b5033499af9f1465e2b31f93e6934c52effa76d43695a98af1ae8" }, "downloads": -1, "filename": "httpio-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9891b99c86ecd3f1c7c29a669f774ee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6347, "upload_time": "2019-06-14T03:15:32", "url": "https://files.pythonhosted.org/packages/b2/01/04e1fe7470139d5fe39be055c0defde4b80ef42878cee4706664046d87d1/httpio-0.3.0.tar.gz" } ] }