Skip to main content

My short description for my project.

Project description

count-line

Usage

A cross-platform command line tool to count the amount of lines and files under current directory.

Installation

You can install, upgrade, uninstall count-line with these commands(without $):

$ pip install count-line
$ pip install --upgrade count-line
$ pip unstall count-line

Help

usage: line.py [-h] [-s SUFFIX | -f FILTER] [-d]

count the amount of lines and files under the current directory

optional arguments:
  -h, --help            show this help message and exit
  -s SUFFIX, --suffix SUFFIX
                        count by suffix file name, format: .suffix1.suffix2...
                        e.g: .cpp.py (without space)
  -f FILTER, --filter FILTER
                        count without filter name, format: .suffix1.suffix2...
                        e.g: .cpp.py (without space)
  -d, --detail          show detail results

Examples

  1. Count all files under the current directory:
$ line
Search in /Users/macbook/Desktop/Examples1/
file count: 4
line count: 373
  1. Count all files under the current directory with detail results:
$ line -d
Search in /Users/macbook/Desktop/Examples2/

		========================================
		文件后缀名	文件数		总行数


		   .py		5		397


		   .cpp		240		11346


		总文件数: 245	总行数: 11743
		========================================


  1. Count specified files under the current directory, using -s to pass suffix as parameters, if there are more than one parameter, don't have space, for example, count cpp files and python files:
$ line -s .cpp.py
Search in /Users/macbook/Desktop/Examples3/
file count: 3
line count: 243
$ line -s .cpp.py -d
Search in /Users/macbook/Desktop/Examples3/

		========================================
		文件后缀名	文件数		总行数


		   .py		5		397


		   .cpp		240		11346


		总文件数: 245	总行数: 11743
		========================================

  1. Count files under the current directory with filter:
$ line -f .py -d
Search in /Users/macbook/Desktop/Examples4/

		========================================
		文件后缀名	文件数		总行数


		   .cpp		240		11346


		总文件数: 240	总行数: 11528
		========================================
$ line -d
Search in /Users/macbook/Desktop/Examples4/

		========================================
		文件后缀名	文件数		总行数


		   .py		5		397


		   .cpp		240		11346


		总文件数: 245	总行数: 11743
		========================================


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

SATK-0.0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distributions

satk-0.0.0.1-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2 Python 3

SATK-0.0.0.1-py2.py3-none-any.whl (2.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file SATK-0.0.0.1.tar.gz.

File metadata

  • Download URL: SATK-0.0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for SATK-0.0.0.1.tar.gz
Algorithm Hash digest
SHA256 bea74b0ceb2eced7df46c29d22942ba958093eda979b3f8837d2eefff87c84b6
MD5 5bb7f9329ca49bb87b80e047a45e62cf
BLAKE2b-256 4c7a796c47230aa528d972ef0459dcb725059ca8cefdd7138fbe1e3e7b2cad37

See more details on using hashes here.

File details

Details for the file satk-0.0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: satk-0.0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for satk-0.0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 790322cd950410d612116232cca7184131f620216d62cb5dee832a1c42322e61
MD5 97516e314f78fedc1f2c07d84a100744
BLAKE2b-256 046aadd0e35f27fb7a7d8621b8fea422ad268792ac012d8d78eb64a8e0fefa0f

See more details on using hashes here.

File details

Details for the file SATK-0.0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: SATK-0.0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for SATK-0.0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3f6a0b96250ee4031962f3a2163b2b2d36f89d6ee63d9490e00eb002b88a59a
MD5 de6f22ca2b95059459960cbc18074f03
BLAKE2b-256 1c72b5bcd0b959597d9ee3300974317ec5c4c83eaca5afc870b895cdff60802b

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