Importlib-resources

Latest version: v6.4.5

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

Scan your dependencies

Page 5 of 14

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.

5.8.0

======

* 250: Now ``Traversable.joinpath`` provides a concrete
implementation, replacing the implementation in ``.simple``
and converging with the behavior in ``MultiplexedPath``.

5.7.1

======

* 249: In ``simple.ResourceContainer.joinpath``, honor
names split by ``posixpath.sep``.

5.7.0

======

* 248: ``abc.Traversable.joinpath`` now allows for multiple
arguments and specifies that ``posixpath.sep`` is allowed
in any argument to accept multiple arguments, matching the
behavior found in ``zipfile.Path`` and ``pathlib.Path``.

``simple.ResourceContainer`` now honors this behavior.

Page 5 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.