Bases: object
Packaged resource declared by an extension.
- Parameters:
-
-
package: str
-
path: str
-
exists()
Return whether the packaged resource exists.
- Return type:
bool
-
read_text(encoding='utf-8')
Read this resource as text.
- Parameters:
encoding (str)
- Return type:
str
-
read_bytes()
Read this resource as bytes.
- Return type:
bytes