Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nushell-prophet/nu-stats
Nushell history tools!
https://github.com/nushell-prophet/nu-stats
cli history nushell
Last synced: 4 months ago
JSON representation
Nushell history tools!
- Host: GitHub
- URL: https://github.com/nushell-prophet/nu-stats
- Owner: Nushell101
- License: mit
- Created: 2023-09-04T09:22:38.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2023-12-29T13:46:18.000Z (6 months ago)
- Last Synced: 2023-12-29T14:36:08.740Z (6 months ago)
- Topics: cli, history, nushell
- Language: Nushell
- Homepage:
- Size: 597 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-nu - nu-stats
README
nu-stats
Nushell๐ module for commands history analytics
A Nushell module to analyze the command frequencies in Nushell history, generate cool graphs, benchmark statistics with other users, and generate a file with statistics to share with the community.
Aggregated results, produced by the `aggregate-submissions` command can be found in the [csv file](https://github.com/Nushell101/nu-stats/tree/main/script_results/aggregated-submissions.csv)
The history of nushell commands by releases can be found in [this csv](https://github.com/Nushell101/nu-stats/blob/main/crates_parsing/cmds_by_crates_and_tags.csv)
![nu-stats2](https://github.com/Nushell101/nu-stats/assets/4896754/5053ede0-d53a-46be-bd71-7f066eca7025)
## Installation
```
> git clone https://github.com/Nushell101/nu-stats; cd nu-stats
```## Analyze your stats and benchmark them with other users' submissions.
```nushell
> use nu-stats.nu [nu-hist-stats]; let $res = nu-hist-stats; $res | first 10
*******************************************************************************
nu-commands-frequency-stats v2.0
*******************************************************************************The script is calculating stats now. On an M1 Mac with a history of ~50,000
entries, It runs for about a minute. Please waitYour stats have been saved to
/Users/user/git/nu-stats/stats_submissions/v2+WriteYourNick.csv. Please
consider donating them to the original repository
https://github.com/Nushell101/nu-stats/tree/main/stats_submissions.*******************************************************************************
Resulting table
*******************************************************************************
A note about some columns:
- freq - indicates the overall frequency of use of the given command for the
currently analyzed source
- freq_norm - represents the overall frequency normalized
- freq_norm_bar - shows the overall frequency normalized in a bar chart format
- timeline - displays the dynamics, indicating when the command was used
throughout your history
- importance - calculated as the geometric mean of the number of users who
used this command and the average normalized frequency
- freq_by_user (frequency norm by user) - each bar in the sparkline column
represents one user (order is shown in the table above).โญโโnameโโโฌโโcategoryโโโฌโfreqโโฌfreq_normโฌfreq_norm_barโฌโโโโโโโโโโโโโโโโtimelineโโโโโโโโโโโโโโโโโฌimportanceโฌโimportance_bโโฌโโโfreq_by_userโโโโฎ
โ ls โ filesystem โ 5159 โ 0.81 โ โโโโโโโโโ โ โโโโโโโโโโ โโโ โโโโโโโโโโโโโโโโโโ โโโโโ โโ โ 1.00 โ โโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโ โ
โ cd โ filesystem โ 1094 โ 0.17 โ โโ โ โโโ โโ โโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโ โ 0.84 โ โโโโโโโโโโโ โ โโโโโโโโโโโโโโโโ โ
โ get โ filters โ 6376 โ 1 โ โโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 0.82 โ โโโโโโโโโโ โ โโโ โโโโโโโโโโโโโ โ
โ open โ filesystem โ 4282 โ 0.67 โ โโโโโโโ โ โโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโโโโโโโโโ โ 0.79 โ โโโโโโโโโโ โ โโโโโโโโโโโโโโโโ โ
โ help โ core โ 899 โ 0.14 โ โโ โ โ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ 0.67 โ โโโโโโโโโ โ โโโ โโโโโโโโโโโโโ โ
โ let โ core โ 3298 โ 0.52 โ โโโโโโ โ โโโโโโโโโโ โ โโโโโโโโโโโโโโ โโโโโโโโโโโโโ โ 0.62 โ โโโโโโโโ โ โ โโโโโโโโโโโโโโโ โ
โ each โ filters โ 2771 โ 0.43 โ โโโโโ โ โโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โ 0.54 โ โโโโโโโ โ โโโโโโโโโโโโโโโโ โ
โ config โ env โ 9 โ 0.00 โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ 0.49 โ โโโโโโ โ โโโโโโโ โโโโโโโโโ โ
โ where โ filters โ 2464 โ 0.39 โ โโโโ โ โโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโ โโโ โโโโ โโ โ 0.49 โ โโโโโโ โ โโโ โ โโโโโโโโ โโโโ โ
โ lines โ filters โ 1169 โ 0.18 โ โโ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ โ 0.43 โ โโโโโโ โ โโโโโโโโโโ โโโโโโ โ
โฐโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโฏ```
## Analyze submissions separately
```nushell
> use nu-stats.nu aggregate-submissions; let $res2 = (aggregate-submissions); $res2 | first 5f_n_by_user (frequency norm by user) includes stats from all users.
You can pick some of them by providing the --pick_users flag: nu-hist-stats --pick_users or
aggregate-submissions --pick_users. The current list is:
โญโ#โโโฌโโโโโโuserโโโโโโโฌexecutions_totalโฎ
โ 0 โ nu_scripts โ 61840 โ
โ 1 โ maximuvarov โ 26526 โ
โ 2 โ fdncred โ 17258 โ
โ * | * | * โ
โ 12 โ nu_std โ 1139 โ
โ 13 โ pingiun โ 884 โ
โ 14 โ nicokosi โ 255 โ
โฐโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโฏโญโnameโโฌโโcategoryโโโฌfreq_overallโฌusers_countโฌf_n_per_userโฌโโโfreq_by_userโโโโฌimportanceโฌโimportance_bโโฌโโโcrateโโโโโฌfirst_tagโฌlast_tagโฎ
โ ls โ filesystem โ 12467 โ 15 โ 0.61 โ โโโโโโโโโโโโโโโโ โ 1.00 โ โโโโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ cd โ filesystem โ 7911 โ 15 โ 0.43 โ โโโโโโโโโโโโโโโโ โ 0.84 โ โโโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ get โ filters โ 12461 โ 16 โ 0.38 โ โโโ โโโโโโโโโโโโโ โ 0.82 โ โโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ open โ filesystem โ 10290 โ 16 โ 0.36 โ โโโโโโโโโโโโโโโโ โ 0.79 โ โโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ help โ core โ 3273 โ 14 โ 0.30 โ โโโ โโโโโโโโโโโโโ โ 0.67 โ โโโโโโโโโ โ nu-command โ 0.3.0 โ 0.88.1 โ
โฐโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโฏ> use nu-stats.nu [aggregate-submissions]; let $res = aggregate-submissions; $res | first 10
*******************************************************************************
Aggregated stats of other users for benchmarks.
They will be displayed in the final table.
*******************************************************************************freq_by_user (frequency norm by user) includes stats from all users. You can
pick some of them by providing the --pick_users flag: nu-hist-stats
--pick_users or aggregate-submissions --pick_users.โญโ#โโโฌโโโโโโuserโโโโโโโฌcommand_entriesโฎ
โ 0 โ maximuvarov โ 79655 โ
โ 1 โ vinlet โ 33817 โ
โ 2 โ fdncred โ 18500 โ
โ 3 โ kubouch โ 10170 โ
โ 4 โ ErichDonGubler โ 10101 โ
โ 5 โ chtenb โ 9376 โ
โ 6 โ shinyzero0 โ 9247 โ
โ 7 โ nu_scripts โ 8622 โ
โ 8 โ dazfuller โ 7354 โ
โ 9 โ cptpiepmatz โ 4199 โ
โ 10 โ zjp โ 2764 โ
โ 11 โ sholderbach โ 2114 โ
โ 12 โ horasal โ 1373 โ
โ 13 โ nu_std โ 1202 โ
โ 14 โ pingiun โ 894 โ
โ 15 โ nicokosi โ 255 โ
โฐโโโโโดโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโฏโญโโnameโโโฌโโcategoryโโโฌfreq_overallโฌusers_countโฌf_n_per_userโฌโโโfreq_by_userโโโโฌimportanceโฌโimportance_bโโฌโโโโcrateโโโโโฌfirst_tagโฌlast_tagโฎ
โ ls โ filesystem โ 12467 โ 15 โ 0.61 โ โโโโโโโโโโโโโโโโ โ 1.00 โ โโโโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ cd โ filesystem โ 7911 โ 15 โ 0.43 โ โโโโโโโโโโโโโโโโ โ 0.84 โ โโโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ get โ filters โ 12461 โ 16 โ 0.38 โ โโโ โโโโโโโโโโโโโ โ 0.82 โ โโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ open โ filesystem โ 10290 โ 16 โ 0.36 โ โโโโโโโโโโโโโโโโ โ 0.79 โ โโโโโโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ help โ core โ 3273 โ 14 โ 0.30 โ โโโ โโโโโโโโโโโโโ โ 0.67 โ โโโโโโโโโ โ nu-command โ 0.3.0 โ 0.88.1 โ
โ let โ core โ 7308 โ 14 โ 0.25 โ โ โโโโโโโโโโโโโโโ โ 0.62 โ โโโโโโโโ โ nu-cmd-lang โ 0.25.0 โ 0.88.1 โ
โ each โ filters โ 7376 โ 14 โ 0.19 โ โโโโโโโโโโโโโโโโ โ 0.54 โ โโโโโโโ โ nu-command โ 0.13.0 โ 0.88.1 โ
โ config โ env โ 1587 โ 14 โ 0.16 โ โโโโโโโ โโโโโโโโโ โ 0.49 โ โโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ where โ filters โ 5750 โ 13 โ 0.17 โ โโโ โ โโโโโโโโ โโโโ โ 0.49 โ โโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โ lines โ filters โ 3501 โ 14 โ 0.12 โ โโโโโโโโโโ โโโโโโ โ 0.43 โ โโโโโโ โ nu-command โ 0.2.0 โ 0.88.1 โ
โฐโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโฏ```