
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
codetree-cli
Advanced tools
Codetree is a Python tool that helps you count the lines of code in your project directory. It supports multiple programming languages and provides a detailed breakdown of the number of lines in your project files. Perfect for analyzing and tracking the size of your codebase in an easy-to-read format.
Install Codetree directly from PyPI using pip:
pip install codetree-cli
To install Codetree manually, clone the repository and use pip:
git clone https://github.com/rezamardaniDev/codetree.git
cd codetree
pip install .
Use Codetree via the command-line interface (CLI). Run the following command in your terminal:
codetree
This scans the specified directory (or current directory by default) and outputs the number of lines of code in each file, plus a summary of total lines.
$ codetree .
Scanning directory: .
|-- src/
| └── main.py -> 150 lines of code
| └── utils.py -> 85 lines of code
|
|-- test/
| └── test_main.py -> 25 lines of code
|
Total files checked: 3
Total lines of code: 260
Total folders: 2
codetree /path/to/project
We welcome contributions to Codetree! To contribute:
git checkout -b feature-name).git commit -m 'Add new feature').git push origin feature-name).If you find a bug or want to add a feature, feel free to open an issue or submit a pull request!
FAQs
A tool for counting lines of code in a project.
We found that codetree-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.