Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Linguist Breakdown

View the language breakdown of your entire GitHub account.

Build Status Coverage Status PyPi Licence

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:

Overall language breakdown:

{
    "JavaScript": 33.77,
    "PHP": 27.36,
    "HTML": 12.33,
    "Python": 8.5,
    "Shell": 5.49,
    "CSS": 5.44,
    "Blade": 3.91,
    "Go": 0.77,
    "Dockerfile": 0.39,
    "C#": 0.39,
    "Hack": 0.38,
    "Makefile": 0.34,
    "Java": 0.34,
    "Ruby": 0.2,
    "Emacs Lisp": 0.09,
    "Vue": 0.08,
    "PowerShell": 0.06,
    "Batchfile": 0.05,
    "TSQL": 0.05,
    "Zimpl": 0.03,
    "JSONiq": 0.01,
    "VBScript": 0.01
}

Install

# Install tool
pip3 install linguist-breakdown

# Install locally
make install

# Get Makefile help
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).

Usage:
    GITHUB_TOKEN=123... linguist-breakdown --type private --pieces 4 --forks --chart

Options:
    -h, --help            show this help message and exit
    -t TYPE, --type TYPE  The repo type to look at (OPTIONS: all, owner, member, private, public).
    -p PIECES, --pieces PIECES
                            Number of chart pieces to generate (will use greatest percentages)
    -f, --forks           Include forked repos in the language breakdown.
    -c, --chart           Generate a chart of the language breakdown.

Development

# Lint the project
make lint

# Run tests
make test

# Run test coverage
make coverage

# Run the tool locally
venv/bin/python linguist_breakdown/breakdown.py --help

Metadata

Release files for linguist-breakdown 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linguist-breakdown 2.0.0
File Size Uploaded
linguist-breakdown-2.0.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linguist-breakdown 2.0.0
File Interpreter ABI Platform
linguist_breakdown-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.2 kB

Release files / linguist-breakdown-2.0.0.tar.gz

Download URL linguist-breakdown-2.0.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e81b7cbec9e5f7e1778ee607d8c9cf8ef1b1fc7f55e336080e9eccd4a9731f77
BLAKE2b-256 checksum
How to use checksums
da7394ae8393c031dbfe5f2b065bb7c08f5bb3c8e199014a4c893117dc0af85c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

Release files / linguist_breakdown-2.0.0-py3-none-any.whl

Download URL linguist_breakdown-2.0.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06ebf2d6a92721c62ff7229152b1c038b9a5c2e794436ade9b465df7abea73fd
BLAKE2b-256 checksum
How to use checksums
29ffd263a934061b6a284c3d4a5f0d99022fddf13675cc07a6e1bc8fdbf9fae1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page