Coder Social home page Coder Social logo

s3dl's Introduction

s3dl

s3dl is a command-line program for downloading files from S3 in parallel.

Install

You can install s3dl straight from the repository by using pip:

pip install git+https://github.com/couchbaselabs/s3dl.git

Alternatively for development purposes you can install s3dl locally:

git clone https://github.com/couchbaselabs/s3dl.git
pip install -e s3dl

Configuration

s3dl requires default boto configuration (http://boto3.readthedocs.org/en/latest/guide/configuration.html). The easiest way to do this is through awscli:

pip install awscli
aws configure [--profile profile-name]

s3dl will use AWS profile identified by the S3DL_DEFAULT_PROFILE environment variable if set; otherwise it will use the AWS default profile.

Usage

When installed with pip, s3dl will be appropriately registered and usable directly from the command line.

s3dl s3://<bucket-name>/<key-name> s3://<bucket-name2>/<key-name2>

The --no-clobber (-nc) flag can be used to prevent overwriting files which have previously been downloaded:

$ s3dl s3://my-bucket/my-key.txt
s3://my-bucket/my-key.txt 5KiB / 5KiB  (100.00%)
Total 5KiB / 5KiB  (100.00%)

$ ls
my-key.txt

$ s3dl s3://my-bucket/my-key.txt --no-clobber
Skipping s3://my-bucket/my-key.txt (no clobber)

If no URLs are specified on the command line then s3dl will check if it is being piped into from stdin and will read a list of file to download from stdin:

$ cat urls.txt
s3://my-bucket/my-key.txt
s3://my-bucket/my-key2.txt

$ cat urls.txt | s3dl
s3://my-bucket/my-key.txt 0.6KiB / 136.5KiB  (0.44%)
s3://my-bucket/my-key2.txt 1.7KiB / 143.5KiB  (1.15%)
Total 2.2KiB / 280.0KiB  (0.80%)

s3dl's People

Contributors

chippiewill avatar mcpaddy avatar almidds99 avatar dave-finlay avatar

Stargazers

 avatar Deni Bertovic avatar  avatar gebbissimo avatar Samy Djemaï avatar Sebastian Jerratsch avatar  avatar Balakumaran G avatar satish viswanatham avatar Matt Carabine avatar Sailesh Choyal avatar  avatar  avatar Adrián Moreno Peña avatar

Watchers

Sergey Avseyev avatar Steve Yen avatar Thuan Nguyen avatar Sarath Lakshman avatar evandrix avatar  avatar  avatar Mike Wiederhold avatar Jeffry Morris avatar Laurent Doguin avatar Pasin Suriyentrakorn avatar Abhishek Singh avatar James Cloos avatar Dean Proctor avatar  avatar Dipti Borkar avatar Alex Ma avatar Brett Lawson avatar Pramod S Narikuzhiyil avatar Wayne Siu avatar Sundar Sridharan avatar  avatar  avatar  avatar Sriram Ganesan avatar  avatar Jeff Dillon avatar  avatar  avatar Jim Walker avatar  avatar Dan Owen avatar Manu Dhundi avatar Andrew Reslan avatar  avatar  avatar vickiezeng avatar Couchbase Robot avatar  avatar  avatar Adam Fraser avatar Brian Williams avatar  avatar Michael Kwok avatar Keshav Murthy avatar Laura Czajkowski avatar Long avatar Liam Burnand avatar  avatar

s3dl's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.