norfs.copy package

Submodules

norfs.copy.base module

class norfs.copy.base.Copier(default_copy_strategy: norfs.copy.base.CopyStrategy)[source]

Bases: object

copy(src: norfs.copy.base.CopyFileSystemObject, dst: norfs.copy.base.CopyFileSystemObject) → None[source]
set_copy_policy(src_fs: norfs.fs.base.BaseFileSystem, dst_fs: norfs.fs.base.BaseFileSystem, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
class norfs.copy.base.CopyDirectory(fs: norfs.fs.base.BaseFileSystem, path: norfs.fs.base.Path)[source]

Bases: norfs.copy.base.CopyFileSystemObject

copy(dst: norfs.copy.base.CopyFileSystemObject, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
copy_from_dir(src: norfs.copy.base.CopyDirectory, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
copy_from_file(src: norfs.copy.base.CopyFile, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
file(suffix: str)norfs.copy.base.CopyFile[source]
subdir(suffix: str)norfs.copy.base.CopyDirectory[source]
exception norfs.copy.base.CopyError[source]

Bases: Exception

class norfs.copy.base.CopyFile(fs: norfs.fs.base.BaseFileSystem, path: norfs.fs.base.Path)[source]

Bases: norfs.copy.base.CopyFileSystemObject

copy(dst: norfs.copy.base.CopyFileSystemObject, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
copy_from_dir(src: norfs.copy.base.CopyDirectory, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
copy_from_file(src: norfs.copy.base.CopyFile, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
class norfs.copy.base.CopyFileSystemObject(fs: norfs.fs.base.BaseFileSystem, path: norfs.fs.base.Path)[source]

Bases: object

copy(dst: norfs.copy.base.CopyFileSystemObject, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
copy_from_dir(src: norfs.copy.base.CopyDirectory, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
copy_from_file(src: norfs.copy.base.CopyFile, copy_strategy: norfs.copy.base.CopyStrategy) → None[source]
property fs
property path
class norfs.copy.base.CopyStrategy[source]

Bases: object

copy_dir_to_dir(src: norfs.copy.base.CopyDirectory, dst: norfs.copy.base.CopyDirectory) → None[source]
copy_file_to_file(src: norfs.copy.base.CopyFile, dst: norfs.copy.base.CopyFile) → None[source]
class norfs.copy.base.GenericCopyStrategy[source]

Bases: norfs.copy.base.CopyStrategy

copy_dir_to_dir(src: norfs.copy.base.CopyDirectory, dst: norfs.copy.base.CopyDirectory) → None[source]
copy_file_to_file(src: norfs.copy.base.CopyFile, dst: norfs.copy.base.CopyFile) → None[source]

norfs.copy.local module

class norfs.copy.local.LocalToLocalCopyStrategy[source]

Bases: norfs.copy.base.GenericCopyStrategy

copy_file_to_file(src: norfs.copy.base.CopyFile, dst: norfs.copy.base.CopyFile) → None[source]
class norfs.copy.local.LocalToS3CopyStrategy(s3_client: Any)[source]

Bases: norfs.copy.base.GenericCopyStrategy

copy_file_to_file(src: norfs.copy.base.CopyFile, dst: norfs.copy.base.CopyFile) → None[source]

norfs.copy.s3 module

class norfs.copy.s3.S3ToLocalCopyStrategy(s3_client: Any)[source]

Bases: norfs.copy.base.GenericCopyStrategy

copy_file_to_file(src: norfs.copy.base.CopyFile, dst: norfs.copy.base.CopyFile) → None[source]
class norfs.copy.s3.S3ToS3CopyStrategy(s3_client: Any)[source]

Bases: norfs.copy.base.GenericCopyStrategy

copy_dir_to_dir(src: norfs.copy.base.CopyDirectory, dst: norfs.copy.base.CopyDirectory) → None[source]
copy_file_to_file(src: norfs.copy.base.CopyFile, dst: norfs.copy.base.CopyFile) → None[source]

Module contents