A Python implementation of RFC 6266 for parsing Content-Disposition headers. Version 1.0.2 is the current stable release. Low release cadence; last updated in 2021.
pip install pyrfc6266Verified import paths — ran on the pinned version, not inferred.
Parse a Content-Disposition header and extract the filename.
Always use `filename_utf8` instead of `filename` for human-readable filenames.
If you need RFC 5987 support, consider a different library or implement it yourself.
Use `cd.filename_utf8` instead of `cd.filename`.
Use `from pyrfc6266 import ContentDisposition` and call `ContentDisposition.parse(header)`.
No dependency data recorded yet.