A package to calculate lines of code from a GitHub repository link
Project description
pygitloc
A package to calculate lines of code from a GitHub repository link.
Installation
To install the package, use:
pip install pygitloc
Usage
To calculate the lines of code from a GitHub repository, run:
pygitloc <github-link>
Replace <github-link> with the URL of the GitHub repository you want to analyze. For example:
pygitloc https://github.com/yourusername/your-repo
Requirements
This package relies on the following dependencies:
How It Works
- The
pygitloccommand clones the specified GitHub repository to a temporary directory. - It then uses
clocto count the lines of code in the cloned repository. - Finally, it outputs the results and cleans up the temporary directory.
Example
$ pygitloc https://github.com/torvalds/linux
Cloned https://github.com/torvalds/linux to temp_repo
1973 text files.
1953 unique files.
1824 files ignored.
github.com/shubhamshnd/cloc v 1.88 T=18.00 s (61.6 files/s, 5762.4 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C 1180 252635 329417 2046599
Assembly 159 16646 27585 108099
C/C++ Header 270 57480 152239 96316
...
-------------------------------------------------------------------------------
# Clean up
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygitloc-0.2.tar.gz.
File metadata
- Download URL: pygitloc-0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eb0c096318bf74019799c913dc263a73e10171cb9d82dc2c85c483eeeb40cb4
|
|
| MD5 |
f6b2384d7f1d7a7a8393534bfc8e08c0
|
|
| BLAKE2b-256 |
09271e05f4a608362b4487c6ae1fdc285a0fcdf08f7f1caa35ed0ab72204418a
|
File details
Details for the file pygitloc-0.2-py3-none-any.whl.
File metadata
- Download URL: pygitloc-0.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff7c8435df1e55631d5fcc03925c8287eeee498c1a86a02557466c0ff713b3ec
|
|
| MD5 |
08f885e35a22e6eaf08af24fc33019c5
|
|
| BLAKE2b-256 |
b34d8084703aa63bd298069e9ddb2cc0887542f7708631e06c1eab4675686243
|