Chameleon

Latest version: v4.5.4

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

Scan your dependencies

Page 2 of 19

4.4.3

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

- Remove `zope.interface`.

- Fix an issue where `auto_reload` is enabled and a file is loaded
from a package that wasn't zip-compressed.
(`402 <https://github.com/malthe/chameleon/issues/402>`_)

4.4.2

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

- Fix brown bag release.

4.4.1

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

- Fix brown bag release.

4.4.0

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

- Add optional parameter ``package_name`` which allows loading a
template relative to a package.

- Drop support for Python 3.7.

- Fix regression where Chameleon would not load templates correctly on
Windows.

- Fix names of dependencies for ``importlib_resources`` and
``importlib_metadata``.
(`394 <https://github.com/malthe/chameleon/pull/394>`_)

4.3.0

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

- Local variable scope is now iterable, completing dict interface.
(`390 <https://github.com/malthe/chameleon/pull/390>`_)

- Minor optimizations to rendering logic.

- Implicit translation now provides the translation context, domain,
and target language to the translation function (if applicable). Previously,
the target language was provided, but this did not respect a change via
`i18n:target`.
(`369 <https://github.com/malthe/chameleon/issues/369>`_)

- Replace ``pkg_resources`` with newer and faster ``importlib.resources`` and
``importlib.metadata``. Just importing ``pkg_resources`` becomes slower and
slower the more packages are installed.

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.

Page 2 of 19

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.