NAME
cpan-dist-counts - display graph of different CPAN dists released by year for single user or all users
SYNOPSIS
cpan-dist-counts [--user NEILB] [--char =] [--width 40] [--year YYYY] [-monthly]
[--neo | -n] [--distprefix Moose]
DESCRIPTION
cpan-dist-counts generates a text graph of the number of different CPAN distributions released each year, either across all users, or for a specific user. The most likely usage is to see your personal release history -- how many different distribution you released each year:
% cpan-dist-counts --user PJF
2000 ( 2) ##
2001 ( 1) #
2002 ( 1) #
2003 ( 1) #
2004 ( 3) ###
2005 ( 3) ###
2006 ( 3) ###
2007 ( 2) ##
2008 ( 4) ####
2009 ( 2) ##
2010 ( 2) ##
2011 ( 0)
2012 ( 3) ###
2013 ( 5) #####
2014 (12) ############
2015 ( 1) #
If you don't specify a user, you'll get a graph of all distinct CPAN distributions each year. You can also change the character used when drawing the bars, and the maximum width used for the longest bar:
% cpan-dist-counts --char = --width 30
1995 ( 125)
1996 ( 267) =
1997 ( 472) =
1998 ( 727) ==
1999 (1017) ====
2000 (1293) =====
2001 (1924) =======
2002 (2611) ==========
2003 (3403) =============
2004 (3844) ===============
2005 (4343) =================
2006 (4436) =================
2007 (4812) ===================
2008 (5792) ======================
2009 (6169) ========================
2010 (6411) =========================
2011 (6554) =========================
2012 (6775) ==========================
2013 (7438) =============================
2014 (7581) ==============================
2015 (7176) ============================
2016 (4363) =================
If you use the --monthly switch, you'll get the counts broken down by month. You can also restrict the data to a particular year:
% cpan-dist-counts --year 2015 --monthly -width 40
201501 (1486) ########################################
201502 (1036) ###########################
201503 (1157) ###############################
201504 (1071) ############################
201505 ( 916) ########################
201506 ( 974) ##########################
201507 ( 923) ########################
201508 ( 964) #########################
201509 (1109) #############################
201510 ( 979) ##########################
201511 ( 937) #########################
201512 (1215) ################################
You can use the --distprefix (or -d) option to only consider releases where the distribution's name matches the given prefix:
% cpan-dist-counts -d Moose
2006 ( 3) #
2007 ( 29) ##########
2008 ( 83) ###############################
2009 (132) ##################################################
2010 (120) #############################################
2011 (112) ##########################################
2012 (123) ##############################################
2013 ( 98) #####################################
2014 (102) ######################################
2015 ( 65) ########################
2016 ( 23) ########
You can use the --neo option to only count the initial releases of new distributions:
% cpan-dist-counts -n --user RJBS
2003 ( 2) #
2004 (33) ###############################
2005 (12) ###########
2006 (52) ##################################################
2007 (29) ###########################
2008 (46) ############################################
2009 (51) #################################################
2010 (29) ###########################
2011 ( 7) ######
2012 (10) #########
2013 (16) ###############
2014 ( 4) ###
2015 (14) #############
2016 ( 5) ####
SEE ALSO
CPAN::ReleaseHistory is used to get data for all CPAN releases.
REPOSITORY
https://github.com/neilbowers/CPAN-ReleaseHistory
AUTHOR
Neil Bowers <neilb@cpan.org>
Prompted by a tweet from Paul Fenwick.
And the -neo
option was prompted by a request from RJBS.
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Neil Bowers <neilb@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.