Glider
|
Functions | |
replace_file (bucket, path, file, s3) | |
receive_path (event, s3_client) | |
src.importer.ReceivePath.receive_path | ( | event, | |
s3_client ) |
Reviews if file exists in s3 and takes actions if it doesn't or file extension is not allowed Args: event (dict): is a dictionary with all client and sales information s3_client (boto3 obj): AWS client connection Returns: (dict)
Definition at line 32 of file ReceivePath.py.
src.importer.ReceivePath.replace_file | ( | bucket, | |
path, | |||
file, | |||
s3 ) |
Removes blank spaces in the filename by underscores and update information in S3 Args: bucket (str): bucket where parquet file is storage path (str): s3 path where parquet file is storage file (str): current filename s3 (boto3 obj): AWS client connection Returns: new filename (str)
Definition at line 13 of file ReceivePath.py.