Registry / web-framework / meld3
library2.0.1pypypi✓ verified 84d ago

Unmaintained templating system used by old versions of Supervisor. Current version is 2.0.1. No recent releases; the project is effectively deprecated.

pip install meld3
INSTALL
IMPORT
SIG · MELD3
M
meld3
web-frameworkpythonv2.0.1
Install
1.5s avg
Import
86ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.094s · 18MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.078s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse_xml
from meld3 import parse_xml
import meld3; meld3.parse_xml
Generally used as a direct import to avoid namespace confusion.

Parse an XML template with Genshi-like directives and render it with context data.

from meld3 import parse_xml template = '<html xmlns:py="http://genshi.edgewall.org/"><body><h1 py:content="title">Title</h1></body></html>' tree = parse_xml(template) tree.expand({'title': 'Hello, World!'}) result = tree.write() print(result)
Debug
Known issues
deprecatedmeld3 is effectively unmaintained and deprecated. It is only used internally by old versions of Supervisor. Consider switching to alternatives like Jinja2 or Tempita.
fix
Replace with Jinja2 or another modern templating engine.
affects: >=2.0.0
gotchameld3 parses XML templates and uses Genshi-like attribute directives (py:attrs, py:content, etc.). It does NOT support Genshi's full syntax; only a limited subset.
fix
Use only the documented directives: py:content, py:attrs, py:replace, py:if, py:for, py:strip.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'meld3'
meld3 is not installed, or trying to import from a virtual environment where pip install did not run.
fix
Run `pip install meld3`
AttributeError: module 'meld3' has no attribute 'parse_xml'
Old code using import meld3 and calling meld3.parse_xml, but parse_xml is a top-level function.
fix
Use `from meld3 import parse_xml` instead.
Upgrade
Version history
2.0.1latest on PyPI · released Apr 8, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
meld3 — pip install meld3 · libregistry