Pithub...:Stats(3pm)

πŸ“¦
version 0.01043 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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 🫢


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