$npx skillfedfor your agent

Chameleon

Fast HTML/XML Template Compiler.

Worth itPyPI Dynamic ContentReleased Dec 2024358.2K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — Chameleon-4.6.0-py3-none-any.whl
v4.6.0 · released 2024-12-31 · Python >=3.9

Yes. Chameleon is a mature, actively maintained template engine with zero runtime dependencies, permissive licensing, and broad Python version support (3.9 and up, plus PyPy 3). It is well-suited for projects requiring compiled, high-performance HTML/XML templating. Install it if you need a self-contained template solution; avoid it only if your project already standardizes on a different templating approach.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; PyPy 3 is also supported.
  • Low friction installation with no runtime dependencies.
  • The project is actively maintained with recent releases addressing Python 3.13 compatibility and performance improvements.

License · maintenance · safety

permissive license (permissive) — Licensed under a permissive BSD-like license, allowing use in both open-source and proprietary projects with minimal restrictions.

last release 2024-12-31 (591 days) · last repo commit 2026-03-12 · 185 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 358,222 downloads/mo, #7,264 on PyPI

Verify before relying

pip install Chameleon

from chameleon import PageTemplateLoader
loader = PageTemplateLoader('templates', auto_reload=True)
template = loader['mytemplate.pt']
output = template(name='World')
  • Whether the package includes built-in support for macros, slots, or inheritance beyond what the description excerpt covers.
  • Performance characteristics compared to other template engines in typical web application scenarios.
  • Whether the i18n/translation features mentioned in the changelog are production-ready or experimental.
Same gist for agents: .md · .json

What it is and what it does

Chameleon is a template engine that compiles HTML and XML templates written in the page templates language into optimized Python code. It runs on Python 3.9 and later, including PyPy, and is designed to be embedded in any Python application without external dependencies. The engine parses template markup and generates bytecode-compiled Python functions, making rendering fast and suitable for high-throughput web applications.

The package handles both HTML and XML modes, supports dynamic content interpolation, conditional rendering, looping, variable scoping, and internationalization. Recent versions have focused on startup-time optimization, Python 3.13 compatibility, and removal of slower legacy dependencies in favor of importlib.resources. It is production-stable and has been maintained since 2009.

Use it for

  • Render dynamic HTML pages in web frameworks by compiling template files into callable Python functions.
  • Generate XML documents or feeds from template definitions with variable substitution and conditional blocks.
  • Build server-side templated responses in REST APIs where template compilation overhead should be minimized.
  • Internationalize web content by leveraging built-in i18n support for translation context and target language handling.
  • Embed templating in Python applications that need fast, compiled template execution without external runtime dependencies.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Chameleon is a mature, actively maintained template engine with zero runtime dependencies, permissive licensing, and broad Python version support (3.9 and up, plus PyPy 3). It is well-suited for projects requiring compiled, high-performance HTML/XML templating. Install it if you need a self-contained template solution; avoid it only if your project already standardizes on a different templating approach.

Install

chameleon on PyPI

Before you install

Low friction installation with no runtime dependencies. The project is actively maintained with recent releases addressing Python 3.13 compatibility and performance improvements.

Requires Python 3.9 or later; PyPy 3 is also supported.

License in practice

Licensed under a permissive BSD-like license, allowing use in both open-source and proprietary projects with minimal restrictions.

Quickstart

pip install Chameleon

from chameleon import PageTemplateLoader
loader = PageTemplateLoader('templates', auto_reload=True)
template = loader['mytemplate.pt']
output = template(name='World')

Verify before relying

  • Whether the package includes built-in support for macros, slots, or inheritance beyond what the description excerpt covers.
  • Performance characteristics compared to other template engines in typical web application scenarios.
  • Whether the i18n/translation features mentioned in the changelog are production-ready or experimental.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 591 days since the last release
Last repo commit
First released
Downloads358,222 / month, #7,264 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: Chameleon-4.6.0-py3-none-any.whl

Tags

Capabilities
html xml template enginepage template compilerserver-side template renderingdynamic html generationtemplate language pythonxml template processorfast template compilation
Topics
template-enginehtml-xmlcompiled-templates

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 › “html xml template engine”

  • ChameleonChameleon is an HTML/XML template engine that compiles page templates…
  • GenshiGenshi is a Python library for parsing, generating, and processing…
  • zope.talzope.tal implements the Template Attribute Language (TAL) and Macro…

Give your agent the search over MCP, or paste the wish link into any chat.

More Dynamic Content packages

MarkupSafe Worth it
PyPI · Dynamic Content · released Sep 2025

MarkupSafe provides a text object that escapes special characters so untrusted strings can be safely embedded in HTML and XML without injection attacks.

BSD-3-Clausecompiled wheel · 3.9+aging
797.1Mdownloads / mo
Jinja2 Worth it
PyPI · Dynamic Content · released Mar 2025

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.

BSD-3-Clausepure Python · 3.7+aging
718.6Mdownloads / mo
soupsieve Worth it
PyPI · Python Modules · released Aug 2026

Soupsieve is a CSS selector library designed to work with Beautiful Soup 4 to select, match, and filter HTML and XML elements using modern CSS selectors from CSS level 1 through CSS level 4 specifications.

Install it if you use Beautiful Soup for HTML or XML parsing and want modern CSS selector support.

MITpure Python · 3.10+
428.6Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo
Flask Worth it
PyPI · Application Frameworks · released Feb 2026

Flask is a lightweight WSGI web application framework for building web applications in Python, from simple single-page sites to complex multi-route applications.

BSD-3-Clausepure Python · 3.9+
211.4Mdownloads / mo
Mako Worth it
PyPI · Dynamic Content · released Aug 2026

Mako compiles Python-embedded templates into Python modules for fast rendering, supporting layout inheritance, custom functions, and direct Python expressions within template syntax.

MITpure Python · 3.10+
201.7Mdownloads / mo

See also z3c.pt · zope.pagetemplate · jinja-cli · zope.tal · zope.tales · meld3 · html5tagger · jinja_partials · yattag