python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
./upload_file.py --fpath ./samples/pictures.zip
docker run --rm -d -p 8000:8000 amazon/dynamodb-local
aws dynamodb list-tables --endpoint-url http://localhost:8000 --region eu-west-1
aws dynamodb create-table \
--table-name Uploads \
--attribute-definitions \
AttributeName=PPK,AttributeType=S \
AttributeName=PRK,AttributeType=S \
--key-schema \
AttributeName=PPK,KeyType=HASH \
AttributeName=PRK,KeyType=RANGE \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5 \
--endpoint-url http://localhost:8000 \
--region eu-west-1
- PPK = "files", PRK = {datetime}
- PPK = "file":{uid}, PRK = "metadata"
- PPK = "file":{uid}, PRK = "chunks":{counter}
- PPK = "file":{uid}:"chunk":{counter}, PRK = "metadata"
- PPK = "file":{uid}:"chunk":{counter}:"attempts", PRK = {datetime}
- PPK = "files", PRK = {datetime}
- PPK = "files":{uid}, PRK = "meta"
- PPK = "files":{uid}, PRK = "parts":{counter}