pyevoc.utils.resources#

Utilities for locating bundled and user-level PyEvoc resources.

pyevoc.utils.resources.model_path(name)[source]#

Return a path to a bundled resource in pyevoc.models.

Parameters:

name (str) – File name or relative path inside pyevoc/models.

Return type:

Path

pyevoc.utils.resources.user_model_path(name)[source]#

Return the standard user-level model path, creating the directory.

Parameters:

name (str)

Return type:

Path

pyevoc.utils.resources.list_bundled_models()[source]#

List bundled resource files.

Return type:

list[str]