zope.structuredtext
StructuredText parser
What it is and what it does
zope.structuredtext is a parser and renderer for STX, a lightweight markup language where indentation carries semantic meaning rather than explicit markup tags. It converts plain-text documents into structured output, primarily HTML. The package is part of the Zope ecosystem and has been maintained since its early releases, with recent updates adding support for modern Python versions (3.12, 3.13) and dropping older versions. It depends only on setuptools at runtime.
The package is useful when you need to parse or render documents written in the STX dialect—a format historically used in Zope documentation and legacy systems. It provides multiple output renderers and maintains backward compatibility while modernizing its internal structure (recent versions replaced pkg_resources with PEP 420 namespaces).
Use it for:
- Parse and render Zope documentation or legacy STX-formatted documents into HTML.
- Convert indentation-based plain-text markup to structured output formats for documentation pipelines.
- Integrate STX parsing into Zope-based applications or content management systems.
- Maintain or migrate legacy systems that rely on Zope's structured text format.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses and renders Zope structured text (STX), a plain-text markup dialect where document structure is signaled primarily by indentation.
Yes, if you work with Zope or legacy STX-formatted documents. The package is actively maintained, has low install friction, and supports current Python versions. However, verify ZPL-2.1 license compatibility first (marked unclear in metadata). Not recommended for new projects seeking a general-purpose markup parser—consider Markdown or reStructuredText instead.
Install
zope-structuredtext on PyPI
pip
pip install zope-structuredtextuv
uv add zope-structuredtextpoetry
poetry add zope-structuredtextInstalling zope.structuredtext
Before you install
Low friction; single runtime dependency (setuptools). Active maintenance with recent release (6.0 in September 2025) and current Python support (3.9–3.13). Repository shows ongoing commits.
License in practice
Licensed under ZPL-2.1 (Zope Public License); treatment marked unclear in metadata. Verify compatibility with your project's license policy before use.
Quickstart
pip install zope.structuredtext
from zope.structuredtext import stx
html = stx.html("Your structured text here")
Requires Python 3.9 or later.
Verify before relying
- Whether ZPL-2.1 is compatible with your project's license requirements (marked unclear in metadata).
- Specific renderers available beyond HTML (e.g., DocBook, XML output formats).
- Whether this package is actively used outside the Zope ecosystem or primarily maintained for legacy support.
Package facts
| License | ZPL-2.1 (unclear) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — setuptools |
| Maintenance | actively maintained — 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 129,031/month — #11,686 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: zope_structuredtext-6.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
zope.taleszope.tales provides an expression language for…
unclear · top 15,000 on PyPI
zope.exceptionsProvides general-purpose exception classes and…
unclear · top 15,000 on PyPI
zope.pagetemplatezope.pagetemplate provides a templating system…
unclear · top 15,000 on PyPI
zope.talzope.tal implements the Template Attribute…
unclear · top 15,000 on PyPI
DocumentTemplateDocumentTemplate implements the Document…
unclear · top 15,000 on PyPI
zope.ptresourceProvides a resource class that processes Zope…
unclear · top 15,000 on PyPI
zope.datetimeParses and formats date/time strings in common…
unclear · top 15,000 on PyPI
zope.indexzope.index provides indexing structures for…
unclear · top 15,000 on PyPI
zope.browserProvides a set of standard interfaces for…
unclear · top 15,000 on PyPI
ZConfigZConfig is a schema-driven configuration…
unclear · top 15,000 on PyPI