class documentation

class ResourceContainer(Traversable): (source)

View In Hierarchy

Traversable container for a package's resources via its reader.

Method __init__ Undocumented
Method is_dir Return True if self is a directory
Method is_file Return True if self is a file
Method iterdir Yield Traversable objects in self
Method open mode may be 'r' or 'rb' to open as text or binary. Return a handle suitable for reading (same as pathlib.Path.open).
Instance Variable reader Undocumented

Inherited from Traversable:

Method __truediv__ Return Traversable child in self
Method joinpath Return Traversable resolved with any descendants applied.
Method read_bytes Read contents of self as bytes
Method read_text Read contents of self as text
Property name The base name of this object without any parent references.
def __init__(self, reader: SimpleReader): (source)

Undocumented

def is_dir(self): (source)

Return True if self is a directory

def is_file(self): (source)

Return True if self is a file

def iterdir(self): (source)

Yield Traversable objects in self

def open(self, *args, **kwargs): (source)

mode may be 'r' or 'rb' to open as text or binary. Return a handle suitable for reading (same as pathlib.Path.open). When opening as text, accepts encoding parameters such as those accepted by io.TextIOWrapper.

Undocumented