file_system_s3
Classes:
Name | Description |
---|---|
FileSystemS3 |
Handles data storage and retrieval for file-based data in an AWS S3 bucket. |
S3Object |
|
Classes#
FileSystemS3 #
Bases: FileSystem
Handles data storage and retrieval for file-based data in an AWS S3 bucket.
Classes:
Name | Description |
---|---|
Parameters |
Additional parameters for S3 storage. |
Methods:
Name | Description |
---|---|
last_modified |
Returns the datetime of the last modification to the datastream's storage |
modified_since |
Returns the data datetimes of all files modified after the specified time. |
save_ancillary_file |
Saves an ancillary filepath to the datastream's ancillary storage area. |
save_data |
|
Attributes:
Name | Type | Description |
---|---|---|
parameters |
Parameters
|
File-system and AWS-specific parameters, such as the path to where files should |
Attributes#
parameters
class-attribute
instance-attribute
#
File-system and AWS-specific parameters, such as the path to where files should be saved or additional keyword arguments to specific functions used by the storage API. See the FileSystemS3.Parameters class for more details.
Classes#
Parameters #
Bases: Parameters
Additional parameters for S3 storage.
Note that all settings and parameters from Filesystem.Parameters
are also
supported by FileSystemS3.Parameters
.
Attributes:
Name | Type | Description |
---|---|---|
bucket |
str
|
The name of the S3 bucket that the storage class should use. |
region |
str
|
The AWS region of the storage bucket. |
Attributes#
class-attribute
instance-attribute
#The name of the S3 bucket that the storage class should use.
Note
This parameter can also be set via the TSDAT_S3_BUCKET_NAME
environment
variable.
class-attribute
instance-attribute
#The AWS region of the storage bucket.
Note
This parameter can also be set via the AWS_DEFAULT_REGION
environment
variable.
Defaults to us-west-2
.
Functions#
last_modified #
Returns the datetime of the last modification to the datastream's storage area.
Source code in tsdat/io/storage/file_system_s3.py
modified_since #
Returns the data datetimes of all files modified after the specified time.
Source code in tsdat/io/storage/file_system_s3.py
save_ancillary_file #
Saves an ancillary filepath to the datastream's ancillary storage area.
NOTE: In most cases this function should not be used directly. Instead, prefer
using the self.uploadable_dir(*args, **kwargs)
method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filepath
|
Path
|
The path to the ancillary file. This is expected to have a standardized filename and should be saved under the ancillary storage path. |
required |
target_path
|
str
|
The path to where the data should be saved. |
required |