https://github.com/athul/wakatime-metrics
A Pinned Gist with your Wakatime Language Metrics as Bars.
https://github.com/athul/wakatime-metrics
language languagemetrics metrics wakatime
Last synced: 6 months ago
JSON representation
A Pinned Gist with your Wakatime Language Metrics as Bars.
- Host: GitHub
- URL: https://github.com/athul/wakatime-metrics
- Owner: athul
- License: mit
- Created: 2019-06-28T01:49:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-28T06:09:33.000Z (almost 6 years ago)
- Last Synced: 2025-03-28T05:04:15.502Z (6 months ago)
- Topics: language, languagemetrics, metrics, wakatime
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 24
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wakatime Language Metrics
## Wakatime's Language Metrics as Bar
Decorate your Wakatime Language metrics as bar graph showing your language and '%' of time you used it just by 16 lines of Python Code without any API calls and stuff.
**You'll need a wakatime account**
### How?
Before running you'll need to make a `.json` file with you wakatine metrics of languages. You can copy&paste it from your wakatime dashboard or by clicking [this](https://wakatime.com/share/embed) .
You can view this by running `python main.py `After running you get an output like this 👇👇
```
Go 63.97% ████████████████████████████████
Markdown 17.38% ████████░░░░░░░░░░░░░░░░░
Bash 16.4 % ████████░░░░░░░░░░░░░░░░░
Other 1.48 % â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
Groff 0.33 % â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
Git 0.28 % â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
Text 0.17 % â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘
```
You can refer the GitHub action result to see the o/p------
I know most of this is a manual process(copying the json file) but You can automate the whole thing by running a simple shell script. For that you need
- An new Gist
- a text editor
**Clone** the gist to your local system ,you can find that from the dropdown list in "Embed" button of the gist.
The shell script is here
``` sh
cd
python main.py .json >
cd
git commit -a -m "Timely Updates"
git push origin master
```
Save the script in `.sh` file and run `sh ` when you update the JSON file.#### Show off this metrics in your gist