2 stable releases

1.1.7 Jul 25, 2023
1.1.2 Jul 24, 2023
1.0.1 Jul 24, 2023

#26 in #solution

32 downloads per month

MIT/Apache

52KB
1.5K SLoC

Lakefs Client

lakefs-rs is a high-performance Rust library designed to seamlessly interact with the lakeFS REST API. If you're working with data lakes and need a reliable way to manage versioning, branching, and data operations, this library is your ultimate solution.

crates.io Documentation

Install

cargo add lakefs-rs

Usage

  • ENV
LAKEFS_ENDPOINT=http://localhost:8000
LAKEFS_ACCESS_KEY=access_key
LAKEFS_ACCESS_KEY=secret_key
  • Config from env
let cfg = Config::from_env().unwrap();
let client = LakeFsClient::new(cfg);
let test_repo = client.get_repository("test".to_string()).await
  • Config manual
let config = Config::new("http://localhost:8000", "access_key", "secret_key", None);
let client = LakeFsClient::new(cfg);
let test_repo = client.get_repository("test".to_string()).await
  • API
    • client.setup_api api setup lakefs for admin
    • client.repositories_api api repositories
    • client.user_api api user
    • client.user_group_api manager group users

Todo!

-[ ] Manager Object -[ ] Manager Actions -[ ] Manager Retention -[ ] Manager MataData -[ ] Manager Import -[ ] Manager Auth Policies

Dependencies

~10–23MB
~346K SLoC