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
- Host: GitHub
- URL: https://github.com/meilisearch/strois
- Owner: meilisearch
- Created: 2023-09-26T16:47:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T10:25:13.000Z (about 1 year ago)
- Last Synced: 2025-06-25T23:11:46.248Z (7 months ago)
- Topics: http-based, rust, s3-client, sdk
- Language: Rust
- Homepage: https://docs.rs/strois
- Size: 89.8 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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>(())
```