[TIP] Announce: Pygora 0.0.1

Ronny Pfannschmidt Ronny.Pfannschmidt at gmx.de
Fri Oct 15 17:23:52 PDT 2010

On Sun, 2010-02-28 at 16:38 -0500, Alfredo Deza wrote:
> After Ned Batchelder's talk in Python I spent a few minutes talking
> about how nice it is to have as much (or even more!) test code lines
> than source code lines.
> I have put together a small script that will count the lines of code
> in a given directory and will compare them to your test code lines
> with a nice output (e.g. percentage, total lines, lines per file
> etc...).
> Ideally, this could become a plugin for Nose (or py.test), but for
> now, it will create an executable symlink so you can run it anywhere.
> The project page: http://code.google.com/p/pygora/
> I am using distribute to package Pygora, you can install it by:
>         sudo easy_install pygora
> And, if you were not wondering already, the name comes from a *goat*:
> Pygora Goat is a cross between the Pygmy Goat and the Angora Goat that
> produces three distinct kinds of fleece and has the smaller size of
> the Pygmy.
> Source: Wikipedia
> Pygora could do better in telling what lines to count with a nice
> regex, but this first release will get you an idea, enhancements will
> follow.

you might want to take a look at py.countloc which is shipped by py (and
will be in pycmd in future) 

py.countloc provides way better numbers (imho)

> Thanks for an awesome an inspiring talk Ned!
> -- 
> Alfredo Deza
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20101016/9ca876cf/attachment.pgp>

More information about the testing-in-python mailing list