#torrent-client #fake #client #ratio

fake-torrent-client

A rust library to generate torrent client information (key, peer ID, query, ...)

4 releases

0.9.10 Aug 22, 2025
0.9.9 Jun 9, 2025
0.9.6 Oct 30, 2022

#1825 in Network programming

Download history 2/week @ 2025-10-26

545 downloads per month

MIT/Apache

160KB
2.5K SLoC

Rust 2K SLoC // 0.0% comments Shell 226 SLoC // 0.2% comments Python 191 SLoC // 0.1% comments

fake-torrent-client

Rust library to get client information (name, peer ID, key)

Usage

let mut client = Client::new();
client.build(ClientVersion::Qbittorrent_4_4_2);
//or tou can get the enum from a string
client.build(ClientVersion::from_str("Transmission_3_00").expect("Wrong client"));

client.get_query(); //get the query URL and HTTP headers (you have to replace fields in the url)
client.generate_key(); //generate a new key
client.generate_peer_id(); //generate a new peer ID

You can also get other information form the client (see doc)

Dependencies

~5–7MB
~119K SLoC