Resumable S3 download
Project description
S3Resumable
This modules provides a helper class to download files from S3 using boto3. To be able to recover incomplete downloads, it downloads files in parts of the configured size.
Installation
Using pip
:
pip install s3resumable
Using docker-compose
:
docker-compose build
Usage
The basic usage of s3resumable module can be summarized as declare a boto3
client and pass it on S3Resumable
class:
import boto3
from s3resumable import S3Resumable
s3client = boto3.client('s3')
s3resumable = S3Resumable(s3client)
s3resumable.download_file('my_bucket', 'my_key', 'my_download_dir')
This will download the file in parts (15mb by default) and once downloaded all the parts will join them in one file.
A CLI can also be used. Check the help:
s3resumable --help
QA
In order to check QA, you can use docker-compose:
docker-compose build
docker-compose run py27 qa
docker-compose run py37 qa
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
s3resumable-0.0.3.tar.gz
(6.2 kB
view details)
File details
Details for the file s3resumable-0.0.3.tar.gz
.
File metadata
- Download URL: s3resumable-0.0.3.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08eb6772768a00d8acd5d407fd947a4527ba4fd8531f83fbafb99bda471c222c |
|
MD5 | f6b8e08565220c1ed3342370a159276e |
|
BLAKE2b-256 | 00e9584b8b568b4419ffda670a57cc21a29a616d9c4773cbfc39bd8191c38617 |