Importlib-resources

Latest version: v6.4.5

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

Scan your dependencies

Page 12 of 14

1.3.0

======

* Add extensibility support for non-standard loaders to supply
``Traversable`` resources. Introduces a new abstract base
class ``abc.TraversableResources`` that supersedes (but
implements for compatibility) ``abc.ResourceReader``. Any
loader that implements (implicitly or explicitly) the
``TraversableResources.files`` method will be capable of
supplying resources with subdirectory support. Closes 77.
* Preferred way to access ``as_file`` is now from top-level module.
``importlib_resources.trees.as_file`` is deprecated and discouraged.
Closes 86.
* Moved ``Traversable`` abc to ``abc`` module. Closes 87.

1.2.0

======

* Traversable now requires an ``open`` method. Closes 81.
* Fixed error on ``Python 3.5.{0,3}``. Closes 83.
* Updated packaging to resolve version from package metadata.
Closes 82.

1.1.0

======

* Add support for retrieving resources from subdirectories of packages
through the new ``files()`` function, which returns a ``Traversable``
object with ``joinpath`` and ``read_*`` interfaces matching those
of ``pathlib.Path`` objects. This new function supersedes all of the
previous functionality as it provides a more general-purpose access
to a package's resources.

With this function, subdirectories are supported (Closes 58).

The
documentation has been updated to reflect that this function is now
the preferred interface for loading package resources. It does not,
however, support resources from arbitrary loaders. It currently only
supports resources from file system path and zipfile packages (a
consequence of the ResourceReader interface only operating on
Python packages).

1.0.2

=====

* Fix ``setup_requires`` and ``install_requires`` metadata in ``setup.cfg``.
Given by Anthony Sottile.

1.0.1

=====

* Update Trove classifiers. Closes 63

1.0

===

* Backport fix for test isolation from Python 3.8/3.7. Closes 61

Page 12 of 14

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.