Skip to content

GitInfo is a lightweight tool for analyzing Git repositories, offering an efficient way to count lines of code and gather repository statistics. It's a simple yet powerful tool for developers and teams.

Notifications You must be signed in to change notification settings

rompelhd/GitInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitInfo Logo

License: Apache License 2.0 Build Passing Version
Author: rompelhd Platform Python Version

GitInfo

GitInfo is a lightweight tool for analyzing Git repositories, offering an efficient way to count lines of code and gather repository statistics. It's a simple yet powerful tool for developers and teams.


Features

  • 🧮 Count Lines of Code
    Measure the total number of lines in supported programming files in the repository.

  • 📂 Language Support
    Analyze repositories with files in Python, JavaScript, C++, Java, HTML, CSS, Markdown, and more.

  • Fast Processing
    Utilizes multi-threaded file parsing for optimized performance.

  • 🌐 Planned Features
    Future updates will include integration with GitHub to fetch stars, forks, and followers.


Installation

To install GitInfo, clone the repository and install dependencies:

git clone https://github.com/rompelhd/GitInfo.git
cd GitInfo
pip install -r requirements.txt

Usage

Run GitInfo by providing the repository URL:

python GitInfo.py <repository_url>

Example

python GitInfo.py https://github.com/torvalds/linux

Output

  • Lines of Code: Total lines across supported files.
  • Repository Details: Owner, name, and other metadata.

Supported File Extensions

.py, .js, .java, .c, .cpp, .html, .css, .md, and others.


Roadmap

  • GitHub API Integration
    Retrieve repository stars, forks, and followers.

  • Custom Extensions
    Allow users to specify additional or excluded file types.

  • Enhanced Reporting
    Generate charts and statistics with detailed insights.


Contributing

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a branch for your feature or bugfix.
  3. Submit a pull request for review.

License

This project is licensed under the Apache License.


About

GitInfo is a lightweight tool for analyzing Git repositories, offering an efficient way to count lines of code and gather repository statistics. It's a simple yet powerful tool for developers and teams.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages