{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/8"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"}],"enrichment":{"capability":"Parses and matches MIME types against media-ranges according to RFC 7231, determining quality scores for content negotiation in HTTP applications.","skillfed_tags":["http-content-negotiation","mime-type-handling"],"use_cases":["REST API servers selecting response format (JSON vs XML vs HTML) based on client Accept headers","Web frameworks implementing HTTP content negotiation during request routing","Middleware that must parse and rank media-ranges to determine the best response encoding","Testing HTTP clients that need to verify correct Accept header handling","Proxy or gateway applications filtering or transforming responses by MIME type preference"],"what_it_does":"Python-MimeParse is a lightweight utility for parsing and matching MIME types in HTTP content negotiation. It implements the media-range matching logic from RFC 7231 Section 5.3.2, allowing applications to determine which content type best satisfies a client's Accept header. The package provides functions to parse MIME types into components, extract quality parameters, and select the highest-quality match from a list of candidates.\n\nIt has no external runtime dependencies and supports Python 3.8 through 3.13 on both CPython and PyPy. The module is mature (first released in 2012) and actively maintained, making it a stable choice for any HTTP framework or API server that needs to negotiate content types with clients.","worth_installing":"Yes. This is a stable, dependency-free utility for a standard HTTP task. Install it if your application handles content negotiation or needs to parse media-ranges; the low friction and active maintenance make it a safe choice. Skip it only if your framework already provides this functionality built-in."},"id":"python-mimeparse","links":{"html":"https://skillfed.io/packages/python-mimeparse","md":"https://skillfed.io/packages/python-mimeparse.md","pypi":"https://pypi.org/project/python-mimeparse/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-08-25","license_spdx":null,"license_treatment":"permissive","name":"python-mimeparse","python_support":"supports_current","summary":"A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges."},"popularity":{"monthly_downloads":865700,"position":4863,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
