class TraversableResources(ResourceReader): (source)
Known subclasses: setuptools._vendor.importlib_resources.readers.FileReader
, setuptools._vendor.importlib_resources.readers.NamespaceReader
, setuptools._vendor.importlib_resources.readers.ZipReader
, setuptools._vendor.importlib_resources.simple.TraversableReader
The required interface for providing traversable resources.
Method | contents |
Return an iterable of entries in `package`. |
Method | files |
Return a Traversable object for the loaded 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.readers.FileReader
, setuptools._vendor.importlib_resources.readers.NamespaceReader
, setuptools._vendor.importlib_resources.readers.ZipReader
, setuptools._vendor.importlib_resources.simple.TraversableReader
Return a Traversable object for the loaded package.
setuptools._vendor.importlib_resources.readers.ZipReader
Return True if the named 'path' is a resource. Files are resources, directories are not.
setuptools._vendor.importlib_resources.readers.ZipReader
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.readers.FileReader
, setuptools._vendor.importlib_resources.readers.NamespaceReader
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.