Skip to content

bilabon/s3downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

s3downloader

Parallel downloader from S3.

Here are 4 options for downloading files from Amazon S3. Just use (check in main.py):

  1. run_parallel_multithreading() for threads
  2. run_parallel_multiprocessing() for processes
  3. run_parallel_asyncio() for asyncio
  4. run_parallel_process_asyncio() for processes + asyncio

Setup:

  • use python3, tested with python3.11
  • install requirements: python3.11 -m venv .env && source .env/bin/activate && pip freeze && python -V && pip --no-cache-dir install -U pip && pip --no-cache-dir install -U setuptools && pip --no-cache-dir install -U wheel && pip --no-cache-dir install -U -r requirements.txt && pip3 list --outdated --format=columns
  • create file config.py and specify there: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, S3_BUCKET, S3_FOLDER, DB_HOST, DB_DATABASE, DB_USER, DB_PASSWORD

Releases

No releases published

Packages

No packages published

Languages