reugn / pyloc

Python implementation of tool for counting lines of code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pyloc

Python implementation of tool for counting lines of code.

Installation

pip install -U git+https://github.com/reugn/pyloc.git

Usage

pyloc --help

usage: pyloc [options]

positional arguments:
  path                  working directory

optional arguments:
  -h, --help            show this help message and exit
  -gi, --gitignore      filter sources by .gitignore file
  -s {files,comment,code,blank}, --sort {files,comment,code,blank}
                        sort results by field
  -o {table,json}, --out {table,json}
                        output format

Simple example

pyloc ./test
+------------+---------+-----------+--------+---------+
| File Ext   |   Files |   Comment |   Code |   Blank |
+============+=========+===========+========+=========+
| py         |       2 |       104 |    111 |      55 |
+------------+---------+-----------+--------+---------+
| c          |       1 |        24 |     70 |      21 |
+------------+---------+-----------+--------+---------+

About

Python implementation of tool for counting lines of code

License:GNU General Public License v3.0


Languages

Language:Python 87.2%Language:C 11.5%Language:Makefile 1.2%