Pythonaccept
Pythonaccept is an open-source Python library that implements HTTP content negotiation in accordance with RFC 7231. It provides a programmatic way to parse client Accept headers (as well as related headers such as Accept-Language and Accept-Encoding) and to select the most appropriate representation from the server’s available resources. The project aims to make content negotiation predictable and framework-friendly for web services and APIs.
Its core features include parsing and normalizing q-values, support for type and language wildcards, and a configurable
Usage patterns include core library integration in custom HTTP handlers, and adapters for popular Python web
Pythonaccept is maintained by an open-source community and has seen regular releases since its initial release.