Pithub...:Stats(3pm)
β¨ NAME β¨
okay so bestie, welcome to Pithub::Repos::Stats β it's the Github v3 repos / stats API module from the Pithub family π like, it's the lil corner of the library that goes and fetches the numbers and the charts and the "who even wrote all this" energy for a repo.
πΈ VERSION πΈ
this is version 0.01043 β¨ (yes she has a version, she's official, she's got lore)
π¦ METHODS π¦
π contributors
π Extra arguments
wait_for_200β bestie, listen, sometimes Github is like "hmm not ready yet, come back later" and throws a 202 at you π so if you set this, and we receive the 202 status from github, we will sleep for this many seconds before trying the request again. and we will keep trying until we get anything else than 202 status, no cap. she's persistent. she's committed. she's not leaving without the data πͺ
π List contributors with stats
the endpoint she hits is:
GET /repos/:user/:repo/stats/contributors
β Examples
my $repos = Pithub::Repos::Stats->new;
my $result = $repos->contributors( user => 'plu', repo => 'Pithub' );
look at her go πβοΈβ¨ that's literally the whole vibe. new object, call contributors, pass user and repo, get stats back. iconic behaviour, truly.
π AUTHOR π
Johannes Plunien <plu@cpan.org> β the main character who wrote this π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2011 by Johannes Plunien.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π fr fr, go wild, just keep the same terms, iykyk.
okay that's the whole page bestie, go forth and fetch those contributor stats π
perl v5.40.1 Β· 2025-06-08 β mwah, that's a wrap ππβ¨
π¦ where this page comes from
- debian trixie: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms