An open API service indexing awesome lists of open source software.

https://github.com/meilisearch/strois

A simple non-async S3 client based on the REST API
https://github.com/meilisearch/strois

http-based rust s3-client sdk

Last synced: 5 months ago
JSON representation

A simple non-async S3 client based on the REST API

Awesome Lists containing this project

README

          

Strois
======

An S3 synchronous SDK based on rusty_s3 and ureq.

## Usage

### Sending and retrieving a document on S3

```rust
use strois::{Builder, Error, S3ErrorCode};

let bucket = Builder::new("http://localhost:9000")?
.key("minioadmin")
.secret("minioadmin")
.with_url_path_style(true)
.bucket("tamo")?
.get_or_create()?;

bucket.put_object("tamo", b"kero")?;

let content = bucket.get_object_string("tamo")?;
assert_eq!(content, "kero");
# Ok::<(), strois::Error>(())
```