{ "info": { "author": "Richard Case", "author_email": "rich@racitup.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP" ], "description": "static-ranges\n=============\n\nWSGI middleware for handling HTTP byte-ranges, i.e.\n\n- Request header: ``Range: bytes=0-1``\n- Response header: ``Accept-Ranges: bytes`` or ``none``\n- Response status: ``206 Partial Content`` or ``416 Requested range not satisfiable`` with Content-Range of *\n- Response header: ``Content-Range: bytes 0-1/2333748``\n- Response header: ``Content-Length: 2``\n\nImplemented originally for use with waitress or gunicorn, django, dj-static and static3 because\nSafari requires byte-range support when requesting HTML5 videos.\n\nStatus and caveats\n------------------\n\nstatic-ranges has been developed as a quick way to get an app up and running on Heroku for testing with\nall static and media files served from the same place. Probably not production ready.\n\nstatic-ranges only supports single ranges (or overlapping ranges that condense to a single range) but that\nprobably covers 99.9% of usage.\n\nInstall\n-------\n\nIt is available from pypi like so:\n\n.. code:: shell\n\n $ pip install static-ranges\n\nUsage\n-----\n\nWrap your application in wsgi.py with Ranges as the outermost layer, for example:\n\n.. code:: python\n\n from static_ranges import Ranges\n\n application = Ranges(Cling(MediaCling(application)))\n\nOptionally you can disable support which will send the ``Accept-Ranges: none`` header using:\n\n.. code:: python\n\n application = Ranges(Cling(MediaCling(application)), enable=False)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/racitup/static-ranges", "keywords": "WSGI", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "static-ranges", "package_url": "https://pypi.org/project/static-ranges/", "platform": "OS Independent", "project_url": "https://pypi.org/project/static-ranges/", "project_urls": { "Homepage": "https://github.com/racitup/static-ranges" }, "release_url": "https://pypi.org/project/static-ranges/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "WSGI middleware for handling HTTP byte-ranges", "version": "0.2.0" }, "last_serial": 3220980, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8e3dae27cbfe856802e0d5da969643e1", "sha256": "a249845d629dc8459e3996d7f7fb7d9853c24016bdfaaef84fcf765b445b0311" }, "downloads": -1, "filename": "static-ranges-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8e3dae27cbfe856802e0d5da969643e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5182, "upload_time": "2017-10-02T05:12:17", "url": "https://files.pythonhosted.org/packages/dc/2d/905f1f5828c15800f2b5ae6f8cafb5c92edc75a36e5a1001c896eedd025b/static-ranges-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6ff1eaddecb6103d6c9cb0a0f089ce42", "sha256": "c9eb86adfc27d1aefa6619cff7c8d5043937873c08eb86073cd822d4e32cae86" }, "downloads": -1, "filename": "static-ranges-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6ff1eaddecb6103d6c9cb0a0f089ce42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5180, "upload_time": "2017-10-03T03:34:20", "url": "https://files.pythonhosted.org/packages/1d/45/bbbdf8d5576da8f841ecdfac674159d259462d8449277a85c47808bd5b29/static-ranges-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ff1eaddecb6103d6c9cb0a0f089ce42", "sha256": "c9eb86adfc27d1aefa6619cff7c8d5043937873c08eb86073cd822d4e32cae86" }, "downloads": -1, "filename": "static-ranges-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6ff1eaddecb6103d6c9cb0a0f089ce42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5180, "upload_time": "2017-10-03T03:34:20", "url": "https://files.pythonhosted.org/packages/1d/45/bbbdf8d5576da8f841ecdfac674159d259462d8449277a85c47808bd5b29/static-ranges-0.2.0.tar.gz" } ] }