Skip to main content

Python file line counter.

Project description

PyLcount

PyLcount (python line count) is a line counter written in python that can count the lines with different search options using a command line interface.

Use pip to install pylcount:

pip install pylcount

How to use

You must use the pylcount command to be able to count the lines in a single file or in a directory using the count argument. Here is an example:

pylcount count ./pylcount

Or in just one file:

pylcount count ./pylcount/counter.py

You can also filter some files by their extension using the --ext flag, or ignore directories and files using the --ignore flag:

pylcount count ./pylcount --ignore ./venv --ext .py .md

In the above command, we are ignoring the venv directory and only getting the files with the .py and .md extensions.

License

This project uses the MIT License, see the LICENSE file in the root of the project for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylcount-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page