Resources

See here for additional information regarding resources.

class SpellClient.resources
class ResourcesService(client)

A class for managing Spell resources.

ls(path)

Lists resources in a path.

Parameters

path (str) – resource path to list (examples: runs/419, uploads/my_files).

Returns

An iterator over LsLine objects.

Raises

ClientException – an error occured.

cp(path, dest, quiet=False)

Downloads files from path to dest.

Parameters
  • path (str) – resource path to download files from.

  • dest (str) – local path to download files to.

  • quiet (optional) – whether or not to suppress output to stdout (default: False).

Raises

ClientException – an error occured.