{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/5"}],"enrichment":{"capability":"Parses and serializes HTTP Structured Fields as defined by RFC 9651, converting between bytes and Python data structures (dictionaries, lists, items) with support for parameters and multiple field types.","skillfed_tags":["http-headers","rfc-9651","structured-fields"],"use_cases":["Parse HTTP Cache-Control, Accept, or other structured headers in web servers or HTTP clients","Validate and debug HTTP header values from the command line using the built-in CLI","Migrate existing code from deprecated libraries without rewriting imports via the compat layer","Build HTTP middleware or proxies that need to inspect and manipulate structured field values","Implement RFC 9651 compliance in custom HTTP protocol handlers"],"what_it_does":"http-sf is a Python library that implements RFC 9651 for parsing and serializing HTTP Structured Fields. It converts HTTP header values (provided as bytes) into Python data structures\u2014dictionaries, lists, and items\u2014and back again. The library handles the full range of structured field types: integers, decimals, strings, tokens, byte sequences, booleans, dates, and display strings, along with parameters attached to any of these types.\n\nThe package provides a functional API via `parse()` and `ser()` functions, with detailed error reporting through `StructuredFieldError` exceptions that include position and context information. It also includes a compatibility layer and a command-line tool for validating and inspecting field values. Requires Python 3.10 or later.","worth_installing":"Yes. The package has low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. It fills a clear need for RFC 9651 compliance in Python HTTP tooling. The functional API is straightforward, error handling is detailed, and a compatibility layer eases migration. Suitable for production use in HTTP-related projects."},"id":"http-sf","links":{"html":"https://skillfed.io/packages/http-sf","md":"https://skillfed.io/packages/http-sf.md","pypi":"https://pypi.org/project/http-sf/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-25","license_spdx":"MIT","license_treatment":"permissive","name":"http-sf","python_support":"supports_current","summary":"Parse and serialise HTTP Structured Fields"},"popularity":{"monthly_downloads":189741,"position":9924,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
