{ "info": { "author": "Simon Woerner", "author_email": "git@simon-woerner.de", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Internet :: WWW/HTTP" ], "description": "rfc6266-parser\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\ndifference rfc6266\n~~~~~~~~~~~~~~~~~~\n\nThis module is a fork of rfc6266 which includes the latest bugfix\n'NullHandler should be an instance, not a class' and bumped the\nversion to ``0.0.5``.\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-parser is currently tested under Python 2.7, Python 2.6,\nPython 3.4, Python 3.3, and PyPy (1.7).\n\n.. image:: https://secure.travis-ci.org/SWW13/python-rfc6266-parser.png\n :target: https://secure.travis-ci.org/SWW13/python-rfc6266-parser\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": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/SWW13/python-rfc6266-parser", "keywords": "rfc6266 parser Content-Disposition http attachments", "license": "GNU LGPL", "maintainer": "", "maintainer_email": "", "name": "rfc6266-parser", "package_url": "https://pypi.org/project/rfc6266-parser/", "platform": "OS-independent", "project_url": "https://pypi.org/project/rfc6266-parser/", "project_urls": { "Homepage": "https://github.com/SWW13/python-rfc6266-parser" }, "release_url": "https://pypi.org/project/rfc6266-parser/0.0.5.post2/", "requires_dist": null, "requires_python": "", "summary": "Parse and generate Content-Disposition headers; Fork of rfc6266 with bugfixes.", "version": "0.0.5.post2" }, "last_serial": 2581149, "releases": { "0.0.5.post2": [ { "comment_text": "", "digests": { "md5": "c5933f455fe784b262711b2fb7e7e42c", "sha256": "ff076d4d590e364f862d19e3c9276a580639d293acb88abf903bed9a8c0fb5e0" }, "downloads": -1, "filename": "rfc6266-parser-0.0.5.post2.tar.gz", "has_sig": false, "md5_digest": "c5933f455fe784b262711b2fb7e7e42c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8113, "upload_time": "2017-01-17T23:44:41", "url": "https://files.pythonhosted.org/packages/4d/3b/736916c90d3cebff44cde6407b307ad4fec6c8fb2ad2691573d340993a26/rfc6266-parser-0.0.5.post2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c5933f455fe784b262711b2fb7e7e42c", "sha256": "ff076d4d590e364f862d19e3c9276a580639d293acb88abf903bed9a8c0fb5e0" }, "downloads": -1, "filename": "rfc6266-parser-0.0.5.post2.tar.gz", "has_sig": false, "md5_digest": "c5933f455fe784b262711b2fb7e7e42c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8113, "upload_time": "2017-01-17T23:44:41", "url": "https://files.pythonhosted.org/packages/4d/3b/736916c90d3cebff44cde6407b307ad4fec6c8fb2ad2691573d340993a26/rfc6266-parser-0.0.5.post2.tar.gz" } ] }