Importlib-resources

Latest version: v6.5.2

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

Scan your dependencies

Page 5 of 14

5.10.3

=======

* Packaging refresh, including fixing EncodingWarnings
and some tests cleanup.

5.10.2

=======

* 274: Prefer ``write_bytes`` to context manager as
proposed in gh-100586.

5.10.1

=======

* 274: Fixed ``ResourceWarning`` in ``_common``.

5.10.0

=======

* 203: Lifted restriction on modules passed to ``files``.
Now modules need not be a package and if a non-package
module is passed, resources will be resolved adjacent to
those modules, even for modules not found in any package.
For example, ``files(import_module('mod.py'))`` will
resolve resources found at the root. The parameter to
files was renamed from 'package' to 'anchor', with a
compatibility shim for those passing by keyword.

* 259: ``files`` no longer requires the anchor to be
specified and can infer the anchor from the caller's scope
(defaults to the caller's module).

5.9.0

======

* 228: ``as_file`` now also supports a ``Traversable``
representing a directory and (when needed) renders the
full tree to a temporary directory.

5.8.1

======

* 253: In ``MultiplexedPath``, restore expectation that
a compound path with a non-existent directory does not
raise an exception.

Page 5 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.