Skip to content

Fetch data from url, process data, create tsv, gzip tsv and upload to s3.Run pytest in docker and code coverage.

Notifications You must be signed in to change notification settings

codingyoga/PhotoDetails

Repository files navigation

PhotoDetails

Appplication is to

Configurable AWS Credentials and s3 Bucket

Add your ACCESS_KEY and SECRET_KEY in settings.py

ACCESS_KEY = ""
SECRET_KEY = ""

Change bucket name in settings.py

BUCKET_NAME = "photo-details-2021"

To Run

pip3.6 install virtualenv
virtualenv photo_details
source photo_details/bin/activate

pip3.6 install -r requirements.txt
python3.6 photo_details.py

Testing - To run pytest in docker

make test 

Output

image

Pytest and Test Coverage

image

Troubleshooting

  • if make: *** [test] Error 1 Please set SECRET_KEY and ACCESS_KEY in settings.py.
  • python version used is 3.6

About

Fetch data from url, process data, create tsv, gzip tsv and upload to s3.Run pytest in docker and code coverage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published