eegprep.ExtensionResource#

class eegprep.ExtensionResource(package, path)#

Bases: object

Packaged resource declared by an extension.

Parameters:
__init__(package, path)#
Parameters:
Return type:

None

Methods

__init__(package, path)

exists()

Return whether the packaged resource exists.

read_bytes()

Read this resource as bytes.

read_text([encoding])

Read this resource as text.

Attributes

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