sbucket package
Submodules
sbucket.environment module
sbucket.main module
XXX: placeholder for the main command
sbucket.s3bucket module
- class sbucket.s3bucket.S3Bucket(bucket_name)[source]
Bases:
object
- compare_file(path, local_file)[source]
Return True if the file at path in the S3 bucket is the same as the local file.
- compare_file_to_s3(path, local_file)[source]
Return True if the file at path in the S3 bucket is different from the local file.
- compare_timestamps(local_file, path)[source]
Return the number of seconds older the local file is than the file at path in the S3 bucket.
- copy_files_from(paths, local_dir)[source]
Copy the files at paths in the local directory to the S3 bucket.
- copy_files_to(paths, local_dir)[source]
Copy the files at paths in the S3 bucket to the local directory.
- copy_to_s3(local_file, path=None)[source]
Copy the file at path in the local directory to the S3 bucket.
- get_tags(path)[source]
Return the tags of the file at path in the S3 bucket.
Ref. tags set in
copy_to_s3()
.
sbucket.s3file module
- class sbucket.s3file.File(path)[source]
Bases:
ABC
- abstract property exists
- abstract property hash
- abstract property timestamp
- class sbucket.s3file.LocalFile(path)[source]
Bases:
File
- property exists: bool
- property hash: str
- property timestamp: int
- class sbucket.s3file.S3File(bucket, path)[source]
Bases:
File
- property exists
- property hash
- property timestamp