--- id: feedparser-sgmllib version: "2.1.0" license: PSF-2.0 license_treatment: permissive maintenance: active --- # feedparser-sgmllib — sgmllib from Python 2.7. For feedparser use only. License: permissive · Maintenance: active · Downloads: 1.7M/mo ## 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 above — 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 pip install feedparser-sgmllib uv add feedparser-sgmllib poetry add feedparser-sgmllib ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 1.7M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags sgml parser python, feedparser sgmllib, sgml feed parsing, python 2.7 sgmllib, feed parser compatibility, sgml markup parsing, feedparser-compat, sgml-parsing, legacy-support [View on SkillFed](https://skillfed.io/packages/feedparser-sgmllib) · [View on PyPI](https://pypi.org/project/feedparser-sgmllib/)