How Much
how-much is a command-line tool to get statistics from your code repositories or directories. It's built to be fast, simple, and easily extensible.
Features
- Calculates statistics like total lines (including and excluding empty lines), characters, and file counts.
- Correctly ignores files specified in
.gitignorefiles at any directory level. - Supports a custom
.howmuchignorefile for project-specific ignores. - Can display a tree view of all processed (non-ignored) files.
- Extensible plugin system for adding new statistics.
- Beautiful and clear output powered by the
richlibrary.
Installation
Assuming you have Poetry installed:
# Clone the repository (or navigate to your project directory)
git clone <your-repo-url>
cd how-much
# Install dependencies
poetry install
# Run the tool
poetry run how-much .
To install it as a global command via pip from source:
pip install .
Usage
Run it against the current directory to see statistics:
how-much .
Or specify a path to a directory or a single file:
how-much path/to/your/project
Listing Files
To see a tree view of all the files that will be included in the calculations (i.e., not ignored), use the --list-files or -l flag:
how-much . --list-files
Metadata
Release files for how-much-repo-analyzer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| how_much_repo_analyzer-0.1.0.tar.gz | 7.8 kB | Without provenance | Details for how_much_repo_analyzer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| how_much_repo_analyzer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for how_much_repo_analyzer-0.1.0-py3-none-any.whl |
Total release size: 19.0 kB
Release files / how_much_repo_analyzer-0.1.0.tar.gz
| Download URL | how_much_repo_analyzer-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d60d70376a426412240d1b1863d41328ee5ab35e3ac2a7933b097deebc2663bc
|
|
BLAKE2b-256 checksum How to use checksums |
1527fae6d69779f74187d75ec592c0c8a143aedfa0a3099bf34c871d233fe8cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.2 Windows/11
|
Release files / how_much_repo_analyzer-0.1.0-py3-none-any.whl
| Download URL | how_much_repo_analyzer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbf9bdfed4b7da38a1f5149652414c11d466391c0cae98d0a5d8e86c4486d6e2
|
|
BLAKE2b-256 checksum How to use checksums |
d24e49a657f585a02532e7bac32a91a0863674fc1d9b2449e66b55a73f31d0ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.12.2 Windows/11
|
Security for how-much-repo-analyzer 0.1.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.