class documentation

Undocumented

Method __init__ Undocumented
Method contents Return an iterable of entries in `package`.
Method get_resource_reader Undocumented
Method is_resource Return True if the named 'path' is a resource.
Method open_resource Return an opened, file-like object for binary reading.
Method resource_path Return the file system path to the specified resource.
Instance Variable _path Undocumented
def __init__(self, **kwargs): (source)

Undocumented

def contents(self): (source)

Return an iterable of entries in `package`.

def get_resource_reader(self, package): (source)

Undocumented

def is_resource(self, path_): (source)

Return True if the named 'path' is a resource. Files are resources, directories are not.

def open_resource(self, path): (source)

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.

def resource_path(self, path_): (source)

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.

Undocumented