项目作者: Justintime50

项目描述 :
View the language breakdown of your entire GitHub account.
高级语言: Python
项目地址: git://github.com/Justintime50/linguist-breakdown.git
创建时间: 2020-01-29T17:18:59Z
项目社区:https://github.com/Justintime50/linguist-breakdown

开源协议:MIT License

下载




# Linguist Breakdown

View the language breakdown of your entire GitHub account.

Build Status
Coverage Status
PyPi
Licence



This project is dated and lacks features found in more modern libraries such as github-readme-stats or metrics and as such has been archived.

GitHub displays beautiful language breakdowns on each repo on their website; however, they do not show your entire language breakdown across all your projects.

Linguist Breakdown can return the language breakdown of your personal repos or all repos you have access to individually via the command line, then Linguist Breakdown will build a customized pie chart breakdown of your overall language usage across all repos (limited to the top 8 for clarity; all languages are returned via CLI). Configure some settings and quickly find out what languages you use the most!

Sample Output:

  1. Overall language breakdown:
  2. {
  3. "JavaScript": 33.77,
  4. "PHP": 27.36,
  5. "HTML": 12.33,
  6. "Python": 8.5,
  7. "Shell": 5.49,
  8. "CSS": 5.44,
  9. "Blade": 3.91,
  10. "Go": 0.77,
  11. "Dockerfile": 0.39,
  12. "C#": 0.39,
  13. "Hack": 0.38,
  14. "Makefile": 0.34,
  15. "Java": 0.34,
  16. "Ruby": 0.2,
  17. "Emacs Lisp": 0.09,
  18. "Vue": 0.08,
  19. "PowerShell": 0.06,
  20. "Batchfile": 0.05,
  21. "TSQL": 0.05,
  22. "Zimpl": 0.03,
  23. "JSONiq": 0.01,
  24. "VBScript": 0.01
  25. }

Install

  1. # Install tool
  2. pip3 install linguist-breakdown
  3. # Install locally
  4. make install
  5. # Get Makefile help
  6. make help

Usage

NOTE: Percentages may vary from the terminal output and chart depending on how many chart pieces you elect to use (eg: using only 4 chart pieces when you have 10 languages that output on the console).

  1. Usage:
  2. GITHUB_TOKEN=123... linguist-breakdown --type private --pieces 4 --forks --chart
  3. Options:
  4. -h, --help show this help message and exit
  5. -t TYPE, --type TYPE The repo type to look at (OPTIONS: all, owner, member, private, public).
  6. -p PIECES, --pieces PIECES
  7. Number of chart pieces to generate (will use greatest percentages)
  8. -f, --forks Include forked repos in the language breakdown.
  9. -c, --chart Generate a chart of the language breakdown.

Development

  1. # Lint the project
  2. make lint
  3. # Run tests
  4. make test
  5. # Run test coverage
  6. make coverage
  7. # Run the tool locally
  8. venv/bin/python linguist_breakdown/breakdown.py --help