simpleml.save_patterns.locations.disk

Module for Disk based locations

Module Contents

Classes

DiskIOMethods

FilestoreCopyFileLocation

FilestoreCopyFilesLocation

FilestoreCopyFolderLocation

FilestorePassthroughLocation

Attributes

__author__

simpleml.save_patterns.locations.disk.__author__ = Elisha Yadgaran[source]
class simpleml.save_patterns.locations.disk.DiskIOMethods[source]

Bases: object

static copy_directory(src, destination)[source]
Parameters
  • src (str) –

  • destination (str) –

Return type

None

static copy_file(src, destination)[source]
Parameters
  • src (str) –

  • destination (str) –

Return type

None

class simpleml.save_patterns.locations.disk.FilestoreCopyFileLocation[source]

Bases: simpleml.save_patterns.base.BaseSerializer

static deserialize(filepath, source_directory='filestore', destination_directory='system_temp', **kwargs)[source]
Parameters
  • filepath (str) –

  • source_directory (str) –

  • destination_directory (str) –

Return type

Dict[str, str]

static serialize(filepath, source_directory='system_temp', destination_directory='filestore', **kwargs)[source]
Parameters
  • filepath (str) –

  • source_directory (str) –

  • destination_directory (str) –

Return type

Dict[str, str]

class simpleml.save_patterns.locations.disk.FilestoreCopyFilesLocation[source]

Bases: simpleml.save_patterns.base.BaseSerializer

static deserialize(filepaths, source_directory='filestore', destination_directory='system_temp', **kwargs)[source]
Parameters
  • filepaths (List[str]) –

  • source_directory (str) –

  • destination_directory (str) –

Return type

Dict[str, str]

static serialize(filepaths, source_directory='system_temp', destination_directory='filestore', **kwargs)[source]
Parameters
  • filepaths (List[str]) –

  • source_directory (str) –

  • destination_directory (str) –

Return type

Dict[str, str]

class simpleml.save_patterns.locations.disk.FilestoreCopyFolderLocation[source]

Bases: simpleml.save_patterns.base.BaseSerializer

static deserialize(filepath, source_directory='filestore', destination_directory='system_temp', **kwargs)[source]
Parameters
  • filepath (str) –

  • source_directory (str) –

  • destination_directory (str) –

Return type

Dict[str, str]

static serialize(filepath, source_directory='system_temp', destination_directory='filestore', **kwargs)[source]
Parameters
  • filepath (str) –

  • source_directory (str) –

  • destination_directory (str) –

Return type

Dict[str, str]

class simpleml.save_patterns.locations.disk.FilestorePassthroughLocation[source]

Bases: simpleml.save_patterns.base.BaseSerializer

static deserialize(**kwargs)[source]
Return type

Dict[str, str]

static serialize(**kwargs)[source]
Return type

Dict[str, str]