Chameleon

Latest version: v4.6.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 19

4.2.0

------------------

- An XML document provided as a string (i.e. decoded) now correctly
has its content encoding parsed.

- Boolean attributes are now automatically configured for templates in
non-XML mode, presuming that we're being used to generate HTML.

This means that the same loading mechanism can be used for both XML-
and HTML-based templates.

4.1.0

------------------

- Boolean attributes (those configured using the optional
`boolean_attributes` parameter) now work with $-expression
interpolation.

Unlike content and regular attributes, a special check for a falsy
value is now done for boolean attributes, such that boolean logic
can be used for interpolation expressions (only a truthy value will
include the attribute).

This reverts a change in behavior introduced in 3.8.0.

Additionally, dynamic attributes now respect the boolean attributes
configuration as well.

4.0.1

------------------

- Fix format spec applying for f-strings.
(`376 <https://github.com/malthe/chameleon/issues/376>`_)

4.0.0

------------------

- Drop support for Python 2.7, 3.5, 3.6.

- Add support for set- and dict comprehensions
(`367 <https://github.com/malthe/chameleon/issues/367>`_)

- Remove the following functions resp. modules:

+ ``.utils.text_()``
+ ``.utils.unescape()``
+ ``.compat``

3.10.2

-------------------

- Fix handling of eager compilation with subclassing (e.g. Pyramid integration).

3.10.1

-------------------

- Fix __str__ method of chameleon.exc.TemplateError
(`356 <https://github.com/malthe/chameleon/issues/356>`_)

Page 3 of 19

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.