Functionality:
- upload file on s3
- download file from s3
- check if file exists on s3
How it works: AWS software development kits - SDKs
git clone https://github.com/Vitalikys/AWS_s3_app.git
cd AWS_s3_app/
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
- AWS_BUCKET_NAME='vitalii-bucket-custom-2' # bucket would be created, don't use _
- AWS_ACCESS_KEY_ID='AKXXXXXXXXXXXXXXXXXXX'
- AWS_SECRET_ACCESS_KEY='6xxxxxxxxxxxxxxxxxxxxxxx5WiNGo'
Only one file should exist in folder (before test) /media/file_3
python -m unittest
run only specific test file:
python -m unittest tests/tests_s3service_moto.py
coverage run -m unittest tests/tests_s3service_moto.py
coverage report
coverage html