4 releases (breaking)

0.4.0 Apr 27, 2023
0.3.0 Apr 3, 2023
0.2.0 Dec 4, 2022
0.1.0 Dec 4, 2022

#816 in Science

Apache-2.0

67KB
1K SLoC

Client lib for OSS Vizier

Rust Crates.io Documentation Crates.io

Unofficial client library for the OSS Vizier service.

License

Licensed under Apache-2.0. See LICENSE for details.

Examples

conda env create -f environment.yml
conda activate oss-vizier

python run_server.py & 

cargo run --example e2e

Or:

docker build -t oss-vizier .
docker run -ti --rm -p 28080:28080 oss-vizier

and:

cargo run --example e2e

For more, see examples.


lib.rs:

Unofficial OSS Vizier Client API.

See https://github.com/google/vizier for OSS Vizier backend.

let endpoint = std::env::var("ENDPOINT").unwrap_or_else(|_| "http://localhost:28080".to_string());

let service = VizierServiceClient::connect(endpoint).await.unwrap();

let owner = "owner".to_string();

let mut client = VizierClient::new_with_service(owner, service)

let request = client
    .mk_list_studies_request_builder()
    .with_page_size(2)
    .build();

let studies = client.service.list_studies(request).await.unwrap();
let study_list = &studies.get_ref().studies;
for t in study_list {
    println!("- {}", &t.display_name);
}

Dependencies

~8–17MB
~218K SLoC