Repo to upload / download scripts to S3
Setup the S3 AWS credentials. For best practice see this :
https://aws.amazon.com/blogs/security/a-new-and-standardized-way-to-manage-credentials-in-the-aws-sdks/
virtualenv -p python3 venv
. venv/bin/activate
pip install -r requirements.txt
We will share two envornment variables, scife_client_bucket
and scife_client_folder
please set them before executing the script.
For download set scife_read_bucket
and scife_read_folder
envornment variable. We will share them as well.
python upload_file.py --file_path=pnl_daily.csv --report_date=2019/01/02
Here file_path
is the path to any CSV file. report_date
is the day for till which the PNL is computed. Please note, if you execute the same command again, the old file will be overwritten.
Ideally you should generate your PNL file after UTC 12 Noon. Say right now UTC date is 2019-12-25 and time is 12:30 PM UTC. Then set report date as 2019/12/25
ie year (YYYY/MM/DD
), month and date.
python download_file.py --report_date=2020/01/10