Skip to main content

Code counts for Nerd (a.k.a doctoral student in computer science)

Project description

Coconerd (COde COunt for NERD)

PyPI version Build Status Coverage Downloads

Count how many lines of code you had written during your doctoral study.

Note: this package use regular expression to code 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

pip install coconerd

Usage

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

coconerd https://github.com/trungnt13/odin-ai,https://github.com/trungnt13/sisua
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

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

coconerd-0.3.linux-x86_64.tar.gz (10.1 kB view hashes)

Uploaded Source

Built Distribution

coconerd-0.3-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page