pygitloc
A package to calculate lines of code from a GitHub repository link.
Installation
To install the package, use:
pip install pygitloc==0.5
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
Metadata
Release files for pygitloc 0.5
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 |
|---|---|---|---|---|
| pygitloc-0.5.tar.gz | 2.9 kB | Without provenance | Details for pygitloc-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygitloc-0.5-py3-none-any.whl | Python 3 | none | any | Details for pygitloc-0.5-py3-none-any.whl |
Total release size: 6.1 kB
Release files / pygitloc-0.5.tar.gz
| Download URL | pygitloc-0.5.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de835eaedcd8712a6c6e70908edb5ca134c7cb62c8cbeef734b689d48036205e
|
|
BLAKE2b-256 checksum How to use checksums |
78fe3c592a81f6e47c976031b45f88ceaafe42271ccb73145799abaebee37495
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|
Release files / pygitloc-0.5-py3-none-any.whl
| Download URL | pygitloc-0.5-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5158992e28c143f351b3f59d2c0e18f7e70eb297ba3405cb541f44b2951c9d46
|
|
BLAKE2b-256 checksum How to use checksums |
7a51a09d2bbb20c4a4609c75e2f6cac20a59f8000e3a10ccd8e08fc6d2ad8983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.0
|
Security for pygitloc 0.5
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.