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 details)

Uploaded Source

File details

Details for the file pylcount-0.1.1.tar.gz.

File metadata

  • Download URL: pylcount-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.28.1 setuptools/63.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for pylcount-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c6592c2357502d06159bcd4ca9029af2d5cbc776508df060197e88f271c7b393
MD5 ecd6014091da658d536ed8189b92f12c
BLAKE2b-256 d59a6442f5b92a8df3894958c4f599f5d52135831c5824cf04225f4f04c09886

See more details on using hashes here.

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