class documentation
class TraversableReader(TraversableResources, SimpleReader): (source)
A TraversableResources based on SimpleReader. Resource providers may derive from this class to provide the TraversableResources interface by supplying the SimpleReader interface.
Method | files |
Return a Traversable object for the loaded package. |
Inherited from TraversableResources
:
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. |
Inherited from SimpleReader
(via TraversableResources
, ResourceReader
):
Method | children |
Obtain an iterable of SimpleReader for available child containers (e.g. directories). |
Method | open |
Obtain a File-like for a named resource. |
Method | resources |
Obtain available named resources for this virtual package. |
Property | name |
Undocumented |
Property | package |
The name of the package for which this reader loads resources. |