Yaki Noe
Sk Khurshid Alam
-
boto3==1.26.14 botocore==1.29.14 jmespath==1.0.1 python-dateutil==2.8.2 s3transfer==0.6.0 six==1.16.0 urllib3==1.26.12
- Set AccessKeyID to Your AWS Access Key ID
- Set SecretAccessKey to Your AWS Secret Access Key
- Region to Your AWS Region
- Set Region to Your AWS S3 Region
- Set BucketNames to Your AWS S3 Bucket Name/s
Note: You can use multiple bucket names with '|' seperated delimeter - Set Prefixes to Your AWS S3 Object Prefix/es
Note: You can use multiple prefix items with '|' seperated delimeter, and for each item you can further user ',' seperated prefix for corresponding bucket
- Set IO to Input/Output folder for storing the downloaded files
- Set FileTypesToBeDownloaded to the File Types which need to be downloaded from S3
Note: You can use multiple file types with ',' seperated delimeter
For your reference please go through example1-config.properties, example2-config.properties, example3-config.properties to have more clarity.
sudo apt-get install -y python3-pip
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
pip3 install virtualenv
sudo apt-get install -y python3-venv
cd <parent dir>/Python-AWS-S3-json-file2
virtualenv -p python3 venv
python3 -m venv venv
source venv/bin/activate
Install python packages using requirements.txt file
pip install -r requirements.txt
cd src
NOTE: Activate virtual environment each time while running the below command
python main.py