turbolib

Crates.ioturbolib
lib.rsturbolib
version0.3.3
sourcesrc
created_at2022-07-31 14:57:15.08115
updated_at2022-07-31 14:57:15.08115
descriptionlibrary for turbocharged S3 uploads and downloads
homepage
repositoryhttps://github.com/benjaminjellis/turbo/tree/main/turbolib
max_upload_size
id636183
size17,000
benjamin (benjaminjellis)

documentation

README

turbolib CI

turbolib is a library for uploading and downloading many files to AWS S3 quickly. It's used as a backend for a cli tool called turbo and for a python library called turbos3-py

Usage

turbolib exposes two functions

  • downloader
  • uploader

These are used to download and upload.

E.g. to download an entire bucket (e.g. my_bucket) into a local directory called data

use turbolib::{uploader, downloader};


downloader(my_bucket.into(), "data'.into(), None).await?;

you can also use regex filters, i.e. to download files that start end with ".txt"

use turbolib::{uploader, downloader};


downloader(my_bucket.into(), "data'.into(), Some("*.txt).into())).await?;
Commit count: 0

cargo fmt