Parallel downloader from S3.
Here are 4 options for downloading files from Amazon S3. Just use (check in main.py):
run_parallel_multithreading()
for threadsrun_parallel_multiprocessing()
for processesrun_parallel_asyncio()
for asynciorun_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