{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/8"}],"enrichment":{"capability":"Parses RFC 6266 Content-Disposition headers to extract filename and disposition information from HTTP responses and header strings.","skillfed_tags":["http-headers","rfc-compliance"],"use_cases":["Extract download filenames from HTTP responses when the filename comes from a Content-Disposition header","Parse attachment headers in email or HTTP contexts to determine disposition type and parameters","Build download managers or file-handling utilities that need RFC 6266 compliant filename extraction"],"what_it_does":"pyrfc6266 is a Python parser for RFC 6266 Content-Disposition headers, designed as a replacement for older implementations that relied on the LEPL parsing library. It uses pyparsing to extract structured information from HTTP Content-Disposition headers, which are commonly used to specify how browsers should handle file downloads and attachments.\n\nThe package provides three main functions: parsing a header into its disposition type and parameters, extracting just the filename from a header, and extracting the filename directly from a requests response object. It's useful when handling file downloads where you need to recover the intended filename from HTTP response headers rather than relying on URLs.","worth_installing":"Yes, if you need RFC 6266 parsing and can accept abandoned maintenance. The package is stable for its narrow use case, has no known vulnerabilities, and low install friction. However, be aware it will not receive updates or bug fixes\u2014only install if the current implementation meets your needs and you're comfortable maintaining a fork if issues arise."},"id":"pyrfc6266","links":{"html":"https://skillfed.io/packages/pyrfc6266","md":"https://skillfed.io/packages/pyrfc6266.md","pypi":"https://pypi.org/project/pyrfc6266/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-04-29","license_spdx":null,"license_treatment":"permissive","name":"pyrfc6266","python_support":"unspecified","summary":"RFC6266 implementation in Python"},"popularity":{"monthly_downloads":76775,"position":14591,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.2"}
