http-sfv
Parse and serialise HTTP Structured Field Values
What it is and what it does
http-sfv is a Python library for parsing and serializing HTTP Structured Field Values as defined by the IETF specification. It provides three top-level types—Dictionary, List, and Item—each capable of parsing byte-string header values and exposing their structure through Pythonic interfaces (list/dict methods, .value and .params properties). The library supports multiple value types including tokens, strings, display strings, dates, and inner lists, with parameters accessible as dictionaries on items.
The package is explicitly deprecated. The maintainer recommends using http-sf instead and has archived the repository. While security updates are promised, no active development occurs. The library was designed to validate the specification algorithms rather than optimize for production use, making it suitable mainly for specification compliance testing or legacy systems already depending on it.
Use it for:
- Validate HTTP header field values against the IETF Structured Fields specification in test suites or compliance checkers.
- Parse and inspect structured HTTP headers (e.g., Accept, Content-Type variants) that follow the specification format.
- Serialize programmatically-built HTTP header structures back into compliant byte-string format for transmission.
- Command-line inspection of header values using the -d, -l, -i flags to examine their data model in JSON format.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses and serializes HTTP Structured Field Values according to the IETF specification, supporting Dictionary, List, and Item types with parameters and multiple value types.
No. The package is abandoned and explicitly deprecated in favor of http-sf. Unless you are maintaining legacy code already using http-sfv, migrate to http-sf instead. No new projects should adopt this package.
Install
http-sfv on PyPI
pip
pip install http-sfvuv
uv add http-sfvpoetry
poetry add http-sfvInstalling http-sfv
Before you install
Low friction to install; single pure-Python dependency (typing-extensions). However, the package is abandoned—the repository is archived, last commit was 2026-05-18, and the maintainer explicitly directs users to http-sf as a replacement. Security-only updates promised but no active development.
License in practice
Licensed under MIT (permissive), so no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
from http_sfv import List, Token
my_list = List()
my_list.parse(b"foo; a=1, bar; b=2")
print(my_list[0].value) # 'foo'
print(my_list[0].params['a']) # 1
Requires Python 3.8 or later. Input to .parse() must be bytes-like; strings must be .encode()d first.
Verify before relying
- Whether http-sf is a true drop-in replacement or requires code changes for migration.
- Current security posture and timeline for potential yanking of this package.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — typing-extensions |
| Maintenance | abandoned — 932 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 110,066/month — #12,485 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: http_sfv-0.9.9-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
http-sfParses and serializes HTTP Structured Fields as…
permissive · top 15,000 on PyPI
dicttoxmlConverts Python dictionaries and other native…
copyleft · top 5,000 on PyPI
rfc3339Formats and parses dates according to RFC 3339,…
unclear · top 5,000 on PyPI
urlcanonParses and normalizes URLs according to WHATWG…
permissive · top 15,000 on PyPI
avro-python3Serializes and deserializes data in Apache Avro…
permissive · top 5,000 on PyPI
jwskateImplements the JOSE family of IETF standards…
permissive · top 5,000 on PyPI
pyrfc6266Parses RFC 6266 Content-Disposition headers to…
permissive · top 15,000 on PyPI
www-authenticateParses WWW-Authenticate HTTP headers into…
permissive · top 15,000 on PyPI
mail-parserParses raw email messages into structured…
permissive · top 5,000 on PyPI