feedparser-sgmllib
sgmllib from Python 2.7. For feedparser use only.
What it is and what it does
feedparser-sgmllib is a backport of Python 2.7's sgmllib module to modern Python versions, packaged specifically for feedparser's internal use. The sgmllib module is a simple SGML parser that was removed from the Python standard library in Python 3. This package restores that functionality for feedparser and other tools that depend on SGML parsing, allowing them to work with Python 3.10 and later without modification.
The package has no external runtime dependencies and installs cleanly. It is maintained actively and supports Python versions 3.10 through 3.14. The codebase is recent (first released in late July 2026) and receives regular updates, indicating ongoing maintenance.
Use it for:
- Use it as a dependency when feedparser requires sgmllib for parsing SGML-based feed formats.
- Use it to parse legacy SGML markup in feed documents that modern HTML parsers may not handle correctly.
- Use it in Python 3 projects that need sgmllib functionality without reimplementing the parser.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides the sgmllib SGML parser from Python 2.7 for use with feedparser, enabling parsing of SGML-based feed formats in modern Python versions.
Yes, if you are using feedparser or another tool that explicitly requires sgmllib. The package is lightweight, has no dependencies, is actively maintained, and carries a permissive license. Install it only if feedparser or your application explicitly needs it; it is not a general-purpose parser for new projects.
Install
feedparser-sgmllib on PyPI
pip
pip install feedparser-sgmllibuv
uv add feedparser-sgmllibpoetry
poetry add feedparser-sgmllibInstalling feedparser-sgmllib
Before you install
Low friction installation with no runtime dependencies. Active maintenance with a recent release; repository is not archived and receives regular commits.
License in practice
Licensed under PSF-2.0 (permissive), imposing no significant restrictions on use or redistribution.
Quickstart
pip install feedparser-sgmllib
import sgmllib
parser = sgmllib.SGMLParser()
Requires Python 3.10 or later; this is a compatibility shim for feedparser and is not a general-purpose SGML parser.
Verify before relying
- Whether this package is intended for end-user installation or only as a transitive dependency of feedparser.
- Whether sgmllib functionality is complete or limited to feedparser's specific use cases.
Package facts
| License | PSF-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 12 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,660,500/month — #3,675 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: feedparser_sgmllib-2.1.0-py3-none-any.whl
Tags
More Markup packages
PyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
markdown-it-pyA Python markdown parser that converts markdown…
permissive · top 100 on PyPI
beautifulsoup4Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
et-xmlfileet_xmlfile writes large XML files with minimal…
permissive · top 1,000 on PyPI
tomlkitParses and edits TOML files while preserving…
permissive · top 1,000 on PyPI
docstring-parserParses Python docstrings in ReST, Google,…
permissive · top 1,000 on PyPI
sgmllib3kA Python 3 port of the deprecated stdlib…
permissive · top 5,000 on PyPI
feedparserParses Atom and RSS feeds (including RSS 0.9x,…
permissive · top 5,000 on PyPI
BeautifulSoupBeautiful Soup parses HTML and XML documents…
permissive · top 15,000 on PyPI
feedgenGenerates web feeds in ATOM and RSS formats,…
copyleft · top 15,000 on PyPI
importlibProvides importlib.import_module() for Python…
unclear · top 15,000 on PyPI
ofxtoolsParses, generates, and converts Open Financial…
copyleft · top 15,000 on PyPI
feedfinder2Feedfinder2 detects and returns feed URLs (RSS,…
permissive · top 15,000 on PyPI
georss-generic-clientProvides generic access to GeoRSS feeds with…
permissive · top 15,000 on PyPI
DocumentTemplateDocumentTemplate implements the Document…
unclear · top 15,000 on PyPI