class ResourceReader: (source)
Known subclasses: setuptools._vendor.importlib_resources.abc.TraversableResources
, setuptools._vendor.importlib_resources.tests.util.Reader
Abstract base class for loaders to provide resource reading support.
Method | contents |
Return an iterable of entries in `package`. |
Method | is |
Return True if the named 'path' is a resource. |
Method | open |
Return an opened, file-like object for binary reading. |
Method | resource |
Return the file system path to the specified resource. |
setuptools._vendor.importlib_resources.abc.TraversableResources
, setuptools._vendor.importlib_resources.tests.util.Reader
Return an iterable of entries in `package`.
setuptools._vendor.importlib_resources.abc.TraversableResources
, setuptools._vendor.importlib_resources.tests.util.Reader
Return True if the named 'path' is a resource. Files are resources, directories are not.
setuptools._vendor.importlib_resources.abc.TraversableResources
, setuptools._vendor.importlib_resources.tests.util.Reader
Return an opened, file-like object for binary reading. The 'resource' argument is expected to represent only a file name. If the resource cannot be found, FileNotFoundError is raised.
setuptools._vendor.importlib_resources.abc.TraversableResources
, setuptools._vendor.importlib_resources.tests.util.Reader
Return the file system path to the specified resource. The 'resource' argument is expected to represent only a file name. If the resource does not exist on the file system, raise FileNotFoundError.