#compute-cloud #lrz-specific #cloud-compute #api-bindings

lrzcc

Rust client library for the LRZ-specific features of the Openstack-based LRZ Compute Cloud

10 stable releases

1.7.1 Jun 5, 2025
1.7.0 Feb 5, 2025
1.6.0 Dec 29, 2024
1.4.0 Nov 22, 2024
1.0.0 Aug 16, 2024

#446 in Web programming

Download history 27/week @ 2025-06-07 5/week @ 2025-06-14 1/week @ 2025-06-21 1/week @ 2025-08-16 2/week @ 2025-08-23

583 downloads per month
Used in lrzcc-cli

MIT license

145KB
4.5K SLoC

lrzcc-lib

ATTENTION: This has been renamed to avina.

API bindings written in Rust for LRZ-specific features of the Openstack-based LRZ Compute Cloud, https://cc.lrz.de, first and foremost the budgeting system.

Usage

To use the library add the following to your Cargo.toml under [dependencies]:

lrzcc = 1

After that you create a Token and Api object to interact with the API:

use lrzcc::{Token, Api};

// let token = Token::from_str("abcdefg...").unwrap();
let token = Token::new(
                auth_url.as_str(),
                username.as_str(),
                password.as_str(),
                project_name.as_str(),
                user_domain_name.as_str(),
                project_domain_id.as_str(),
            ).unwrap();
let api = Api::new("https://cc.lrz.de:1337/api", token, None, None).unwrap();
println!("{:?}", api.user.me());

Dependencies

~18–32MB
~476K SLoC