sgmllib3k
Py3k port of sgmllib.
Decision gist · record as of 2026-08-14
No. This package is abandoned (no updates since 2010-08-24, no maintenance commitment) and the maintainer explicitly recommends finding an alternative. Install only if you are maintaining legacy code with a hard dependency on sgmllib3k and cannot refactor to a maintained alternative.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- No Python version constraint specified; compatibility with modern Python 3 versions is unverified.
- High install friction: the package is abandoned (last release 2010-08-24, no activity for 5834 days) with no runtime dependencies.
- The maintainer explicitly states they do not intend to maintain it and recommend finding an alternative module.
License · maintenance · safety
BSD License (permissive) — BSD License (permissive) imposes no significant restrictions on use or redistribution.
last release 2010-08-24 (5834 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 10,088,849 downloads/mo, #1,482 on PyPI
Alternatives
Verify before relying
pip install sgmllib3k
from sgmllib3k import SGMLParser
class MyParser(SGMLParser):
def handle_data(self, data):
print(data)
parser = MyParser()
parser.feed('<html><body>Hello</body></html>')- Whether sgmllib3k actually works on modern Python 3 versions or only those contemporary with 2010
- Whether the 2to3 conversion was complete and handles Python 3 string/bytes distinctions correctly
- What specific parsing tasks drive the 10088849 monthly downloads given the abandoned status
What it is and what it does
sgmllib3k is a minimal port of Python's old sgmllib module to Python 3, created by running 2to3 on the original code. It provides an event-driven SGML/HTML parser that works by subclassing and overriding handler methods for different document elements. The module was dropped from the stdlib because more robust alternatives exist, and the maintainer explicitly disclaims any intention to maintain this port.
The package has not been updated since its initial release on 2010-08-24 and is classified as abandoned. While it shows substantial download volume, this likely reflects transitive dependencies or legacy codebases still relying on it rather than active new adoption. The maintainer recommends finding another module for new projects.
Use it for
- Porting old Python 2 code that depended on sgmllib to Python 3 with minimal changes
- Parsing legacy SGML documents in Python 3 when the original module is unavailable
- Maintaining existing projects with hard dependencies on sgmllib3k that cannot be refactored
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
This package is abandoned (no updates since 2010-08-24, no maintenance commitment) and the maintainer explicitly recommends finding an alternative. Install only if you are maintaining legacy code with a hard dependency on sgmllib3k and cannot refactor to a maintained alternative.
Install
sgmllib3k on PyPI
Before you install
High install friction: the package is abandoned (last release 2010-08-24, no activity for 5834 days) with no runtime dependencies. The maintainer explicitly states they do not intend to maintain it and recommend finding an alternative module.
No Python version constraint specified; compatibility with modern Python 3 versions is unverified.
License in practice
BSD License (permissive) imposes no significant restrictions on use or redistribution.
Quickstart
pip install sgmllib3k
from sgmllib3k import SGMLParser
class MyParser(SGMLParser):
def handle_data(self, data):
print(data)
parser = MyParser()
parser.feed('<html><body>Hello</body></html>')
Verify before relying
- Whether sgmllib3k actually works on modern Python 3 versions or only those contemporary with 2010
- Whether the 2to3 conversion was complete and handles Python 3 string/bytes distinctions correctly
- What specific parsing tasks drive the 10088849 monthly downloads given the abandoned status
Package facts
| License | BSD License permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 5,834 days since the last release |
| First released | |
| Downloads | 10,088,849 / month, #1,482 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: Python :: 3 |
Evidence: sgmllib3k-1.0.0.tar.gz
Tags
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 › “sgml parser python 3”
- sgmllib3kA Python 3 port of the deprecated stdlib sgmllib module for parsing…
- feedparser-sgmllibProvides the sgmllib SGML parser from Python 2.7 for use with…
- ofxtoolsParses, generates, and converts Open Financial Exchange (OFX) data in…
Give your agent the search over MCP, or paste the wish link into any chat.
More HTML packages
MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.
Jinja2 is a templating engine that renders dynamic content by combining templates with Python-like syntax and data, supporting template inheritance, macros, autoescaping, and sandboxed execution.
Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.
Install it if you need to parse or extract data from markup documents.
lxml provides Python bindings to libxml2 and libxslt, enabling parsing, validation, and transformation of XML and HTML documents through an ElementTree-compatible API with support for XPath, XSLT, and schema validation.
Install it if you need robust XML/HTML parsing, validation, or transformation; avoid it only if you must stay pure-Python and can accept slower performance.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
Converts Markdown text to HTML using a Python implementation of John Gruber's Markdown specification, with support for extensions.
Install it if you need to parse Markdown in Python.
See also feedparser-sgmllib · DocumentTemplate · audioop-lts · BeautifulSoup · standard-sunau · standard-imghdr · stdlibs · mjml · standard-chunk