This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
A command line tool to analyze the amount of lines and files under current directory.
It supports ‘line.select’ rules which works like ‘.gitignore’.

Installation

You can install, upgrade, uninstall line-counter.py with these commands:

$ pip install line-counter
$ pip install --upgrade line-counter
$ pip uninstall line-counter

Usage

Usage: line [options] [args]

Analyze the amount of lines and files under current directory following the
rules in 'line.select' or analyze all files if 'line.select' doesn't exist

Options:
  --version     show program's version number and exit
  -h, --help    show this help message and exit
  -d, --detail  show more detail in the result
  -s, --show    show rules in 'line.select'

Example output

Analyze all files under current directory. Only works when ‘line.select’ doesn’t exist.

$ line
Search in /Users/Morgan/Documents/Example/
file count: 4
line count: 839
Analyze all files under current directory. Only works when ‘line.select’ doesn’t exist.
And show the results in detail.
$ line -d
Search in /Users/Morgan/Documents/Example/
Dir A/file C.c                                             72
Dir A/file D.py                                           268
file A.py                                                 467
file B.c                                                   32
file count: 4
line count: 839

Show the rules in ‘line.select’

$ line -s
Here are the rules in 'line.select' under /Users/Morgan/Documents/Example/:
#Select rules:
*.c

#Ignore rules:
!Dir A
!*.py

Check current version

$ line --version
line 0.7.0

line.select

This file works like ‘.gitignore’. * Each line is a rule * Each line starts with a ‘#’ means that’s a comment * Each line starts with a ‘!’ means it’s a ignore rule * Otherwise it’s a select rule * The order of rules is irrelevant and ignore rules can always override select rules * The rules can find all the pathnames matching a specified pattern according to the rules used by the Unix shell. No tilde expansion is done, but *, ?, and character ranges expressed with [ ] will be correctly matched.

Roadmap

  • Add order output function

Author

I’m Morgan Zhang, a graduate computer science student in University of San Francisco.

Why I made it

I always want to know how many lines of code that I have done, but there isn’t a easy way to get it.
So I decide to make a tool for this.

Contact Information

MorganZhang100@gmail.com

License

The MIT license.

Release History

Release History

0.7.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.7.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
line_counter-0.7.1-py2.py3-none-any.whl (6.5 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting