$npx skillfedfor your agent

http-sf

Parse and serialise HTTP Structured Fields

Worth itPyPI WWW/HTTPReleased May 2026189.7K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — http_sf-1.3.0-py3-none-any.whl
v1.3.0 · released 2026-05-25 · Python >=3.10 · 1 runtime deps: typing_extensions

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.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction: pure Python wheel with a single runtime dependency (typing_extensions).
  • Actively maintained with recent release activity.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

last release 2026-05-25 (81 days) · last repo commit 2026-08-03 · 10 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 189,741 downloads/mo, #9,924 on PyPI

Verify before relying

pip install http-sf

from http_sf import parse, ser
result = parse(b"foo; a=1, bar; b=2", tltype="dictionary")
output = ser(result)
  • Whether the library handles all edge cases in RFC 9651 or if certain field types remain unimplemented
  • Performance characteristics when parsing very large or deeply nested structured fields
  • Compatibility guarantees for the compat layer with all legacy use patterns
Same gist for agents: .md · .json

What it is and 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—dictionaries, lists, and items—and 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.

The 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.

Use it for

  • 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

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

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.

Install

http-sf on PyPI

Before you install

Low friction: pure Python wheel with a single runtime dependency (typing_extensions). Actively maintained with recent release activity.

Requires Python 3.10 or later.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.

Quickstart

pip install http-sf

from http_sf import parse, ser
result = parse(b"foo; a=1, bar; b=2", tltype="dictionary")
output = ser(result)

Verify before relying

  • Whether the library handles all edge cases in RFC 9651 or if certain field types remain unimplemented
  • Performance characteristics when parsing very large or deeply nested structured fields
  • Compatibility guarantees for the compat layer with all legacy use patterns

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing_extensions
MaintenanceActively maintained 81 days since the last release
Last repo commit
First released
Downloads189,741 / month, #9,924 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaOperating System :: OS Independent

Evidence: http_sf-1.3.0-py3-none-any.whl

Tags

Capabilities
HTTP structured fields parsingRFC 9651 implementationHTTP header parsingstructured field serializationHTTP field value parsingdictionary list item parsingHTTP header structured data
Topics
http-headersrfc-9651structured-fields

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “HTTP structured fields parsing”

  • http-sfParses and serializes HTTP Structured Fields as defined by RFC 9651,…
  • http-sfvParses and serializes HTTP Structured Field Values according to the…
  • itemloadersItemloaders extracts and standardizes structured data from HTML and…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also http-sfv · dicttoxml · urlcanon · pyrfc6266 · python-rapidjson · pycstruct · mail-parser · jxmlease · cbor2