Skip to main content

STATS CLI

A simple command line tool to analyze programming projects and display basic statistics about languages and files they contain.

Features

  • Analyxe one or more project directories at the same time.
  • Analyze folders containing multiple projects.
  • Count the total number of files.
  • Count the total number of lines.
  • Show how many projects use each language.
  • Recursively scan project directories.

Supported languges

The following table shows which extensions are currently recognized.

Extension
.py
.js
.html
.css
.java
.ts
.tsx
.jsx
.scss
.c
.h
.cpp
.cs
.go
.rs
Others

Instalation

Option 1

pip install stats-project-analyzer==0.2.4

Option 2

Clone the repository and install the project in editable mode.

git clone https://github.com/asierpernias/Stats.git
cd Stats
python -m pip install -e .

Depending on your operating system, you may need to take extra steps to make the stats command available in every terminal

Usage

Analyze the current directory

stats / stats .

Analyze a directory containig multiple projects

stats path/to/folder

Each subdirectory is treated as a separated project.

Analyze multiple directories

stats path/to/folder1 path/to/folder2

Analyze one or more individual projects

Use the -m option;

stats -m path/to/project

Or analyze multiple projects at the same time

stats -m path/to/project1 path/to/project2

Show help

stats --help

Example output

STATS: ------------------------------------------------ Files: 5 Lines: 150

Python 2 Js 1 Html 1 CSS 1 Java 0 Others 0

Requirements

  • Python 3.11 or newer
  • pip

The project uses setuptools for packaging and exposes the stats command through pyproject.toml

Screenshots

image

License

This project is licensed under the MIT Licnese.

Metadata

Release files for stats-project-analyzer 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stats-project-analyzer 0.2.4
File Size Uploaded Provenance Actions
stats_project_analyzer-0.2.4.tar.gz 6.1 kB Without provenance Details for stats_project_analyzer-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stats-project-analyzer 0.2.4
File Interpreter ABI Platform Actions
stats_project_analyzer-0.2.4-py3-none-any.whl Python 3 none any Details for stats_project_analyzer-0.2.4-py3-none-any.whl

Total release size: 12.5 kB

Release files / stats_project_analyzer-0.2.4.tar.gz

Download URL stats_project_analyzer-0.2.4.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0267f846079632d43ad2bbe4b07928106e36aadc6f09c04e94dd01fcb6a01ec8
BLAKE2b-256 checksum
How to use checksums
166702675c2dd1f3df343dc8040e3f06ffdad219e9f85b02c194e3178fdff069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / stats_project_analyzer-0.2.4-py3-none-any.whl

Download URL stats_project_analyzer-0.2.4-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03dde90aedaffe72b96853d4530e835fe0d35642f7a70f497e567869ee5ce072
BLAKE2b-256 checksum
How to use checksums
8264cc183defe9ef27c55758cd7d1e4d87a5197221832bda74f0d36912b6533d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for stats-project-analyzer 0.2.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page