{ "info": { "author": "Gabriel de Perthuis", "author_email": "g2p.code+rfc6266@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "rfc6266\n~~~~~~~\n\nThis module parses and generates HTTP ``Content-Disposition`` headers.\nThese headers are used when getting resources for download;\nthey provide a hint of whether the file should be downloaded,\nand of what filename to use when saving.\n\nUsage\n~~~~~\n\nReceiver\n--------\n\n``parse_headers`` builds a ``ContentDisposition`` object from the\n``Content-Disposition`` header and (as a fallback) the document\nlocation. Shortcuts work with response objects from httplib2\nand the requests library.\n\nImportant attributes of ``ContentDisposition`` are ``is_inline``,\n``filename_unsafe``, ``filename_sanitized``.\n\nSender\n------\n\n``build_header`` builds a header value from a filename.\n\nSecurity\n~~~~~~~~\n\nThe ``Content-Disposition`` filename should be used with caution.\nDo not let the sender overwrite an arbitrary filesystem location,\npick arbitrary extensions or filenames with special meaning,\npick filenames containing unusual or misleading characters, etc.\nRead RFC 6266 section 4.3 for more details.\n\n\nTesting\n~~~~~~~\n\nTo test in the current Python implementation::\n\n py.test\n\nTo test compatibility across Python releases::\n\n tox\n\nrfc6266 is currently tested under Python 2.7, Python 2.6,\nPython 3.3, Python 3.2, and PyPy (1.7).\n\n.. image:: https://secure.travis-ci.org/g2p/rfc6266.png\n :target: https://secure.travis-ci.org/g2p/rfc6266\n\nReferences\n~~~~~~~~~~\n\n* RFC 6266 \n specifies the Content-Disposition header\n* RFC 5987 \n specifies a way to encode non-ascii filenames\n* TC 2231 \n is a test suite for Content-Disposition headers", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/g2p/rfc6266", "keywords": "rfc6266 Content-Disposition http attachments", "license": "GNU LGPL", "maintainer": null, "maintainer_email": null, "name": "rfc6266", "package_url": "https://pypi.org/project/rfc6266/", "platform": "OS-independent", "project_url": "https://pypi.org/project/rfc6266/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/g2p/rfc6266" }, "release_url": "https://pypi.org/project/rfc6266/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Parse and generate Content-Disposition headers", "version": "0.0.4" }, "last_serial": 918224, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "be9936d0f2ee6ee57866e6934da293d9", "sha256": "adc34df2dd5fed6016606aeba85252289258f94f12e800d1fcd1874dbecb217f" }, "downloads": -1, "filename": "rfc6266-0.0.1.tar.gz", "has_sig": false, "md5_digest": "be9936d0f2ee6ee57866e6934da293d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7448, "upload_time": "2012-02-01T19:41:03", "url": "https://files.pythonhosted.org/packages/91/df/a9e794146207ac813dc8c061c721100689bc6f179c99645b9d8152aaa938/rfc6266-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "8bb1d649123bb6efd4f7b1a9dc83e0cb", "sha256": "4c8fb61bb3b0ab73290a06fae6eea4b9705d1bddebc570c94eb5acdd551f7e67" }, "downloads": -1, "filename": "rfc6266-0.0.2.tar.gz", "has_sig": false, "md5_digest": "8bb1d649123bb6efd4f7b1a9dc83e0cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7972, "upload_time": "2012-05-08T22:52:10", "url": "https://files.pythonhosted.org/packages/19/b0/bff9abcf45b0ee21f5761fb211cbfea222cb8e4c1ff73a7822989b356e09/rfc6266-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "1bc959867ce992992854f131e1ae3459", "sha256": "056376cf85b38032770c33aefdf72cd1cf48d828504c71ab6c4764b504e501ef" }, "downloads": -1, "filename": "rfc6266-0.0.3.tar.gz", "has_sig": false, "md5_digest": "1bc959867ce992992854f131e1ae3459", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8090, "upload_time": "2013-09-04T17:51:39", "url": "https://files.pythonhosted.org/packages/d4/5f/dd9232c4713a3b6059e5c1124de610c62cdb2b6b24af691259c932030a27/rfc6266-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "772b711de0bf9fc9277fe91e7b53060c", "sha256": "923116bd77cf283b161a813139f5022e894e91d040686208aa33eb43db1b7703" }, "downloads": -1, "filename": "rfc6266-0.0.4.tar.gz", "has_sig": false, "md5_digest": "772b711de0bf9fc9277fe91e7b53060c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8109, "upload_time": "2013-11-13T12:07:15", "url": "https://files.pythonhosted.org/packages/b8/1e/0f014fef1b09eb0b6dc5f10c1fcee9433cf33f53cc17ce66932e6d7babe2/rfc6266-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "772b711de0bf9fc9277fe91e7b53060c", "sha256": "923116bd77cf283b161a813139f5022e894e91d040686208aa33eb43db1b7703" }, "downloads": -1, "filename": "rfc6266-0.0.4.tar.gz", "has_sig": false, "md5_digest": "772b711de0bf9fc9277fe91e7b53060c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8109, "upload_time": "2013-11-13T12:07:15", "url": "https://files.pythonhosted.org/packages/b8/1e/0f014fef1b09eb0b6dc5f10c1fcee9433cf33f53cc17ce66932e6d7babe2/rfc6266-0.0.4.tar.gz" } ] }