MetaCPAN::Clients - Some useful stand-alone scripts to access MetaCPAN
Command-line tools:
metacpan_meta.pl N [PAUSEID] metacpan_namespace.pl --module Module::Name metacpan_namespace.pl --distro Distro-Name (or partial name) metacpan_impact.pl --distro Distribution-Name metacpan_reverse_dependencies.pl --distro Distro-Name metacpan_favorite.pl <token> <file> metacpan_old.pl metacpan_full_dependency_list.pl Module::Name [more Module::Names] metacpan_dependency_tree.pl Module::Name
... or read the articles and check out MetaCPAN::API.
For an explanation of the metacpan_meta.pl script see Fetching META data from Meta CPAN.
For the metacpan_namespace.pl see List all the Perl modules and distributions in a name-space using Meta CPAN.
The metacpan_reverse_dependencies.pl show the list of distributions that use the given distribution. Code taken from Test::DependentModules of Dave Rolsky.
The metacpan_favorite.pl was created by David Golden and it is explained in How to mass-favorite modules on MetaCPAN
The token is taken from https://api.metacpan.org/user (assuming you are logged in) from the key access_token, token. The input file contains lines of "Distro-Name AUTHOR release" but it can work with "Distro-Name" alone too.
metacpan_dependency_tree.pl was originally described in How to fetch the CPAN dependency tree of a Perl module?
Some results using these scripts show:
On December 28, 2012 we found that 17.4% of CPAN uploads have no license in the META files
On January 3, 2013 we found that 50% of the new CPAN uploads have a repository link
On February 5, 2013 we found that still about 16.6% of the recent CPAN uploads have no license and 50% no repository link in their META files.
If you are interested in other examples using the MetaCPAN::API, check out the list of distributions using MetaCPAN::API
Gabor Szabo
David Golden
This software is copyright (c) 2013- by Gabor Szabo.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MetaCPAN::Clients, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MetaCPAN::Clients
CPAN shell
perl -MCPAN -e shell install MetaCPAN::Clients
For more information on module installation, please visit the detailed CPAN module installation guide.