lcpan tips 007: Showing new dists

About this series: a collection of short, daily blog posts about lcpan tips/recipes. Some posts will also end up in the upcoming App::lcpan::Manual::Cookbook POD to be included in the App-lcpan distribution.

About lcpan: an application to download and index a mini CPAN mirror on your local filesystem, so in effect you will have something like your own CPAN with a command-line tool (or perl API) to query and extract information from your mirror. I find it perfect for my own personal use when working offline.

Here‘s a simple wrapper script for lcpan update (hopefully it will be integrated into some kind of hook/plugin later for lcpan) that shows new dists after updating the mirror. It simply list distributions newer than the last index time of the mirror.

Sample output:

% lcpan-update-and-show-new-dists
+------------------------------------------+----------+----------+------------------------------------------------------+----------+------------+-----------------------------------------------------------------------+
| dist                                     | author   | version  | release                                              | rel_size | rel_mtime  | abstract                                                              |
+------------------------------------------+----------+----------+------------------------------------------------------+----------+------------+-----------------------------------------------------------------------+
| Map-Tube-Barcelona                       | MANWAR   | 0.28     | Map-Tube-Barcelona-0.28.tar.gz                       | 17971    | 1455621083 | Interface to the Barcelona Metro Map.                                 |
| Data-Peek                                | HMBRAND  | 0.45     | Data-Peek-0.45.tgz                                   | 60698    | 1455619251 | Modified and extended debugging facilities                            |
| PONAPI-Server                            | MICKEY   | 0.002015 | PONAPI-Server-0.002015.tar.gz                        | 89130    | 1455617402 | PONAPI - Perl implementation of {JSON:API} (http://jsonapi.org/) v1.0 |
| Math-MPFR                                | SISYPHUS | 3.32     | Math-MPFR-3.32.tar.gz                                | 109598   | 1455617315 | Perl interface to the MPFR (floating point) library                   |
| Inferno-RegMgr                           | POWERMAN | v1.0.0   | Inferno-RegMgr-v1.0.0.tar.gz                         | 16742    | 1455617143 | Keep connection to OS Inferno's registry(4) and it tasks              |
| Tapper-Config                            | TAPPER   | 5.0.1    | Tapper-Config-5.0.1.tar.gz                           | 13075    | 1455616295 | Tapper - Context sensitive configuration hub for all Tapper libs      |
| Tapper-MCP                               | TAPPER   | 5.0.1    | Tapper-MCP-5.0.1.tar.gz                              | 86189    | 1455615949 | Tapper - Central master control program of Tapper automation          |
| Tapper-Metadata                          | TAPPER   | 5.0.1    | Tapper-Metadata-5.0.1.tar.gz                         | 19863    | 1455613737 | Save and search Metadata points by database                           |
| Scientist                                | LANCEW   | 0.003    | Scientist-0.003.tar.gz                               | 2693     | 1455612965 | Perl module inspired by https://github.com/github/scientist           |
| Plack-Middleware-StackTrace-LinkedSource | BAYASHI  | 0.04     | Plack-Middleware-StackTrace-LinkedSource-0.04.tar.gz | 13330    | 1455612268 | Adding links to library source codes in stacktrace                    |
| Narada                                   | POWERMAN | v2.3.4   | Narada-v2.3.4.tar.gz                                 | 103789   | 1455611796 | framework for ease deploy and support microservice projects           |
| Date-Pregnancy                           | JONASBN  | 0.06     | Date-Pregnancy-0.06.tar.gz                           | 12680    | 1455610099 | calculate birthdate and week numbers for a pregnancy                  |
| Net-OpenNebula                           | STDWEIRD | 0.305.0  | Net-OpenNebula-0.305.0.tar.gz                        | 31673    | 1455610012 | Access OpenNebula RPC via Perl.                                       |
| File-Rsync-Mirror-Recent                 | ANDK     | v0.4.2   | File-Rsync-Mirror-Recent-0.4.2.tar.bz2               | 77280    | 1455606667 | unknown                                                               |
| Algorithm-Networksort-Chooser            | FRACTAL  | 0.110    | Algorithm-Networksort-Chooser-0.110.tar.gz           | 5695     | 1455604080 | unknown                                                               |
| Mojo-Weixin                              | SJDY     | v1.0.3   | Mojo-Weixin-1.0.3.tar.gz                             | 765865   | 1455603274 | A Weixin Client Framework base on Mojolicious                         |
| MooseX-AttributeHelpers                  | ETHER    | 0.25     | MooseX-AttributeHelpers-0.25.tar.gz                  | 54105    | 1455600583 | (DEPRECATED) Extend your attribute interfaces                         |
| MooseX-Daemonize                         | ETHER    | 0.21     | MooseX-Daemonize-0.21.tar.gz                         | 44322    | 1455599805 | Role for daemonizing your Moose based application                     |
+------------------------------------------+----------+----------+------------------------------------------------------+----------+------------+-----------------------------------------------------------------------+

This can be an alternative to seeing recent dists on MetaCPAN. The script’s version shows you the dist’s abstract, author, and file size.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s