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

Clone the repository and install the project in editable mode.

git clone
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

License

This project is licensed under the MIT Licnese.

Metadata

Release files for stats-project-analyzer 0.2.0

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.0
File Size Uploaded Provenance Actions
stats_project_analyzer-0.2.0.tar.gz 4.8 kB Without provenance Details for stats_project_analyzer-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / stats_project_analyzer-0.2.0.tar.gz

Download URL stats_project_analyzer-0.2.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2c7ab173c9c20b9cadf8769e2cbf48d6d9938fe11777969a96bec4fec247b62d
BLAKE2b-256 checksum
How to use checksums
36f727413a5a8f0b89e6bab024f3ee7c1c4f14b5e316e9348a36686525c2a5f9
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.0-py3-none-any.whl

Download URL stats_project_analyzer-0.2.0-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fef6eca202570cb598b2682059437fece3ab03588c7afcd263466d38f0990e1
BLAKE2b-256 checksum
How to use checksums
f84ba9bb551aede12148623c4bba60ce741e56eec3b690f5f705c2a52c577dbd
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.0

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