skillfed

feedparser-sgmllib

sgmllib from Python 2.7. For feedparser use only.

feedparser-sgmllib v2.1.0 1.7M downloads/30d#3,675 on PyPI0
Permissive license PSF-2.0 Active released

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-sgmllib

uv

uv add feedparser-sgmllib

poetry

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

Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

sgml parser pythonfeedparser sgmllibsgml feed parsingpython 2.7 sgmllibfeed parser compatibilitysgml markup parsing
feedparser-compatsgml-parsinglegacy-support

More Markup packages