Skip to content

using github.com/enteprise api to help manage codes (like count all codes lines etc.)

License

Notifications You must be signed in to change notification settings

tinyfool/codetools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codetools

using github.com/enteprise api to help manage codes (like count all codes lines etc.)

How to use

  1. clone the codes
  2. cp config.py.example config.py
  3. get a github Personal access tokens (profile -> setting -> Developer setting -> Personal access tokens)
  4. put token in config.py and set your api home
  5. python3 counter.py

Output will look like:

salveiustitia
========================
salveiustitia/PATECH
{'HTML': 111963, 'CSS': 86147, 'Ruby': 7220, 'Shell': 2193}
salveiustitia/lucasClass
{'HTML': 111963, 'CSS': 86147, 'Ruby': 7220, 'Shell': 2193}
salveiustitia/conflict-practice-tinyfool
{'JavaScript': 54316, 'HTML': 50056, 'CSS': 7372}
salveiustitia/conflict-practice-lucas
{'JavaScript': 54316, 'HTML': 49718, 'CSS': 7408}
salveiustitia/conflict-practice-rwnfoo
{'JavaScript': 54316, 'HTML': 50056, 'CSS': 7372}
salveiustitia/conflict-practice-vila89
{'JavaScript': 54316, 'HTML': 50056, 'CSS': 7372}


tinytrainclass
========================
tinytrainclass/train-day1
{'HTML': 111963, 'CSS': 86147, 'Ruby': 7220, 'Shell': 2193}
tinytrainclass/conflict-practice-yizheng
{'JavaScript': 54316, 'HTML': 50056, 'CSS': 7372}


tiny-network
========================


{'JavaScript': 345399, 'Scala': 297336, 'Shell': 5326475, 'Batchfile': 5236, 'Ruby': 396450, 'Go': 14797, 'Smarty': 3147, 'Dockerfile': 3542, 'Makefile': 212229, 'HTML': 746899, 'CSS': 403809, 'Objective-C': 13005541, 'C': 449887653, 'Java': 96395, 'MATLAB': 3854, 'C++': 5356599, 'Groff': 1405718, 'CMake': 30280, 'Objective-C++': 6309, 'GAP': 1233, 'M': 4870, 'Mathematica': 2380, 'Assembly': 30614389, 'Scheme': 6943250, 'Bison': 2108387, 'TeX': 1765921, 'Logos': 1107036, 'Perl': 1027550, 'Ada': 657550, 'Python': 555710, 'Emacs Lisp': 102962, 'Fortran': 52877, 'Awk': 82124, 'XSLT': 13372, 'Pascal': 12956, 'Erlang': 8388, 'R': 270, 'HCL': 167}
522609060

About

using github.com/enteprise api to help manage codes (like count all codes lines etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages