https://github.com/trungnt13/code-counts
Just count how many of code I had written during my Ph.D.
https://github.com/trungnt13/code-counts
Last synced: 6 months ago
JSON representation
Just count how many of code I had written during my Ph.D.
- Host: GitHub
- URL: https://github.com/trungnt13/code-counts
- Owner: trungnt13
- License: mit
- Created: 2021-08-11T14:57:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-16T10:49:08.000Z (about 4 years ago)
- Last Synced: 2025-03-08T14:17:19.966Z (7 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coconerd (COde COunt for NERD)
[](https://badge.fury.io/py/coconerd)


[](https://pepy.tech/project/coconerd)Count how many lines of code you had written during your doctoral study.
**Note**: this package use regular expression to count the specific set of attributes in python file without importing the module, thus the code is *safe* (anyway, be aware of which github repo you are downloading from).
### Install
```commandline
pip install coconerd
```### Usage
```commandline
coconerd [path_or_url] -cache --clear
```---------------
|Argument | Help|
|---------|-----|
|`path_or_url`| path to local directory or url to github repo, multiple input concatenated by `,`|
|`-cache`| path to cache directory|
|`--clear`|clear all cached source code|### Example
```commandline
coconerd https://github.com/trungnt13/odin-ai,https://github.com/trungnt13/sisua
``````text
Processing: 377files [00:00, 5727.62files/s]
https://github.com/trungnt13/sisua
for_loop : 891
while_loop: 3
if_cond : 1199
func_def : 422
class_def : 43
lines : 16744
https://github.com/trungnt13/odin-ai
for_loop : 3841
while_loop: 57
if_cond : 6130
func_def : 3260
class_def : 575
lines : 83649
---Total:
for_loop : 4732
while_loop: 60
if_cond : 7329
func_def : 3682
class_def : 618
lines : 100393
```