#client #fake #ratio #peer-id #torrent

fake-torrent-client

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

1 unstable release

0.9.6 Oct 30, 2022
0.9.5 Oct 30, 2022

#7 in #peer-id

Download history 10/week @ 2024-02-18 10/week @ 2024-02-25 4/week @ 2024-03-03 69/week @ 2024-03-10 82/week @ 2024-03-31

151 downloads per month

MIT/Apache

115KB
1.5K SLoC

Rust 1.5K SLoC // 0.0% comments Python 191 SLoC // 0.1% comments Shell 98 SLoC // 0.2% 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

~7MB
~169K SLoC