GithubHelp home page GithubHelp logo

froggs / cpan-testers-www-reports-query-reports Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cpan-testers/cpan-testers-www-reports-query-reports

1.0 2.0 0.0 81 KB

Retrieve CPAN Testers metadata direct from the CPAN Testers website.

Home Page: http://www.cpantesters.org

Perl 100.00%

cpan-testers-www-reports-query-reports's Introduction

NAME
       CPAN::Testers::WWW::Reports::Query::Reports
       
DESCRIPTION
       This module queries the CPAN Testers website and retrieves a data set.
       For a date request, the data set returned relates to the ids that can
       be retrieved for that date. A range request will return the records for
       the requested IDs.

SYNOPSIS
           # establish the object
           my $query = CPAN::Testers::WWW::Reports::Query::Reports->new;

           # get list of ids for a particular date
           my $result = $query->date(
               '2012-02-08' # must be YYYY-MM-DD format
           );

           # $query is a hash ref
           print "From: $result->{from}, To: $result->{to}, Range: $result->{range}\n";

           # $result->{list} is an array of the actual ids posted for the given date.
           # note that this list may not include all ids within $result->{range}.
           print "List: " . join(', ',@{$result->{list}}) . "\n";


           # get metabase for a range of ids
           my $result = $query->range(
               '20080300-20120330'

               # '20120330'  # just get <id>
               # '20120330-' # from <id> until the latest [see caveat]
               # '-20120330' # previous <n> reports up to <id> [see caveat]
               # '-'         # the latest <n> reports [see caveat]
           );

           # $result is a hash ref, with the reports ids as the top level keys
           my @ids = sort keys %$result;
           my $id  = $ids[0];
           print "id = $id, dist = '$result->{$id}{dist}', version = '$result->{$id}{version}'\n";


           # get the raw data for all results, or a specific version if supplied
           my $data = $query->raw;

	   # get the last error
	   my $error = $query->error;

   Caveat
       When using the range parameter, note that at most 2500 records will be
       returned. This is to avoid accidental request for all the records!

       This value may change in the future.

INTERFACE
   The Constructor
       ·   new

           Instatiates the object CPAN::WWW::Testers. Requires a hash of
           parameters, with 'config' being the only mandatory key. Note that
           'config' can be anything that Config::IniFiles accepts for the
           -file option.

   Search Methods
       ·   date

           For the given date, returns a hash describing the IDs accessible
           for that date.

       ·   range

           For the given range, returns the metadata records stored for those
           IDs.

   Data Methods
       ·   raw

           Returns the raw content returned from the server.

       ·   error

           Returns the last recorded error.

BUGS, PATCHES & FIXES
       There are no known bugs at the time of this release. However, if you
       spot a bug or are experiencing difficulties, that is not explained
       within the POD documentation, please send bug reports and patches to
       the RT Queue (see below).

       Fixes are dependant upon their severity and my availablity. Should a
       fix not be forthcoming, please feel free to (politely) remind me.

       RT Queue -
       http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN::Testers::WWW::Reports::Query::Reports

SEE ALSO
       CPAN::Testers::Data::Generator, CPAN::Testers::WWW::Reports

       http://www.cpantesters.org/, http://stats.cpantesters.org/,
       http://wiki.cpantesters.org/

       Initially released during the 2012 QA Hackathon in Paris.

AUTHOR
         Barbie, <[email protected]>
         for Miss Barbell Productions <http://www.missbarbell.co.uk>.

COPYRIGHT AND LICENSE
         Copyright (C) 2012 Barbie for Miss Barbell Productions.

         This module is free software; you can redistribute it and/or
         modify it under the Artistic License 2.0.

cpan-testers-www-reports-query-reports's People

Contributors

barbie avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.