Crates.io | qbit-rs |
lib.rs | qbit-rs |
version | 0.4.6 |
source | src |
created_at | 2023-04-10 05:03:57.857558 |
updated_at | 2024-10-29 20:03:32.524717 |
description | A Rust library for interacting with qBittorrent's Web API |
homepage | https://github.com/George-Miao/qbit |
repository | https://github.com/George-Miao/qbit |
max_upload_size | |
id | 834841 |
size | 119,835 |
A Rust library for interacting with qBittorrent's Web API.
Implemented according to WebUI API (qBittorrent 4.1).
Add dependency by running:
cargo add qbit-rs
or manually add to Cargo.toml
:
[dependencies]
qbit-rs = "0.4"
Then use it in your code:
use qbit_rs::Qbit;
use qbit_rs::model::Credential;
let credential = Credential::new("username", "password");
let api = Qbit::new("http://my-qb-instance.domain", credential);
let torrents = api.get_version().await;
or use the builder pattern:
use qbit_rs::Qbit;
let api = Qbit::builder()
.endpoint("http://my-qb-instance.domain")
.cookie("SID=1234567890")
.build();
let torrents = api.get_version().await;
For more methods, see Qbit
.
Most of the API is covered, except RSS
and Search
. PR is welcomed if you need that part of the API. The following is a list of the implementation status: