#bindings #fantasy #league #api-bindings #fpl #pl #premier

fpl_api

Rust bindings for the Fantasy PL API

5 releases (breaking)

0.5.0 Nov 2, 2024
0.4.0 Oct 27, 2024
0.3.0 Oct 19, 2024
0.2.0 Oct 6, 2024
0.1.0 Oct 2, 2024

#1100 in Web programming

Download history 244/week @ 2024-09-30 72/week @ 2024-10-07 166/week @ 2024-10-14 111/week @ 2024-10-21 195/week @ 2024-10-28 50/week @ 2024-11-04 7/week @ 2024-11-11

400 downloads per month
Used in tfpl

MIT/Apache

36KB
965 lines

FPL API

  • Rust bindings for the Fantasy Premier League API

Example

        let client = FPLClient::new();
        let manager = client.get_manager_details("3332624").await.unwrap();
        assert_eq!(manager.player_first_name, "Vishal".to_string());
        assert_eq!(manager.name, "Gakpo Ke Gunde".to_string());

        let gw_team = client
            .get_manager_team_for_gw("3332624", "4")
            .await
            .unwrap();
        assert_eq!(gw_team.active_chip, None);

        let transfers = client.get_manager_transfers("3332624").await.unwrap();
        assert!(transfers.len() > 0);

Dependencies

~4–15MB
~195K SLoC