Import and Packaging Modules
importlib.resources.abc
Defines interfaces for traversing package resources and supplying resource readers. Traversable describes path-like objects that may not correspond to native filesystem paths. TraversableResources supersedes the older ResourceReader interface; custom loaders can support resources through these abstractions.
Formal Syntax & Structure
python syntaxpython
import importlib.resources.abcReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from importlib.resources import filesfrom importlib.resources.abc import Traversableprint(isinstance(files("email"), Traversable))