Kusa is a simple CLI tool that works on any platform and displays GitHub contribution graphs.

Related tags

Command-line Kusa
Overview
image

Kusa is a simple CLI tool that works on any platform and displays GitHub contribution graphs.

Language:Rust License:MIT Latest Release Platform Compatibility Twitter

Installation

Homebrew (only macOS)

$ brew tap Ryu0118/Kusa
$ brew install kusa

or download the appropriate file for your device from releases

Building From Source

To build and run Kusa on your machine put your GitHub Personal Access Token as the "GITHUB_ACCESS_TOKEN" variable (src/main.rs, line 9), your token does not need any scopes.

static GITHUB_ACCESS_TOKEN : &str = "GITHUB_ACCESS_TOKEN";

then run this

$ cargo run <github user name>

How To Generate A Github Access Token

Go to github developer settings.

Set the expiration date to "No Expiration".

Click "Generate Token" and then copy the token it generates.

Known Issues

  • Terminal.app on macOS does not support 24-bit color, so colors are not displayed, therefore, use iTerm2, Hyper, Warp or other terminals to display colors correctly.

Usage

kusa --help

USAGE:
    kusa [OPTIONS] <github user name>

ARGS:
    <github user name>

OPTIONS:
    -h, --help           Print help information
    -s, --hide-streak
    -V, --version        Print version information

kusa Ryu0118

image
Comments
  • chore: slightly improve README.md and CLI description

    chore: slightly improve README.md and CLI description

    edit: after a bit of thinking I realised that this could be interpreted in a somewhat offensive/disrespectful manner and I prematurely appologise if it does come as so and do understand if it gets merged without any prior warning.

    Thanks for the great work and gl with all your projects!

    opened by EnokiUN 4
  • Github token should not be compiled with source code.

    Github token should not be compiled with source code.

    I am not a rust dev. But I don't think it's a good idea to compile github token altogether in the source code. This fix fetch GITHUB_TOKEN from environment variable.

    opened by peterzam 2
  • Updated Readme and Cleaned Code

    Updated Readme and Cleaned Code

    Moved the token to the top of the file so that its position doesn't change as things are added

    Updated the readme to explain how to generate a token and have an updated line number

    Removed struct element that wasn't being used

    opened by DanDucky 1
  • Tweaks

    Tweaks

    Hi, I made each one its own commit to describe what it's doing. Some of these are just Clippy suggestions so recommend running that on future projects (cargo clippy). I didn't do it but I'd also recommend auto-formatting your code with rustfmt: cargo fmt.

    Anyway, neat project, the results look great:

    Screenshot from 2022-06-26 12-39-58
    opened by wezm 1
  • Overflows under certain conditions due to wrong variable type.

    Overflows under certain conditions due to wrong variable type.

    A bug that causes overflow occurs. Since the type of the variable is usize, it overflows when a negative value is entered. It happens at line 146 of src/main.rs.

    let require_width = index * 2;
    let current_width = month_line.len();
    let require_space = require_width - current_width;
    

    Converting from usize to i64 solves this problem.

    bug 
    opened by Ryu0118 0
  • Shrink output based on terminal columns

    Shrink output based on terminal columns

    Hey, thanks for creating this program, it's pretty cool!

    I'd love to see a feature where kusa could automatically shrink its output based on the terminal's number of columns. My terminal windows are usually 81 columns wide, so kusa's output wraps around and doesn't look so nice until I resize the window. image

    opened by seasonedfish 0
Releases(0.1.0)
Owner
Ryu
20. Japanese. EEIC, iOS Developer
Ryu
Standard Graphics is a command-line tool for printing 2D graphics from any language to any screen.

2D graphics in any programming language with just print statements!

Caleb Winston 123 Nov 20, 2022
Coinlive is an interactive command line tool that displays live cryptocurrency prices.

Coinlive is an interactive command line tool that displays live cryptocurrency prices. It can also display simple historical price charts.

Mayer Analytics 9 Dec 7, 2022
Tool to draw low-resolution graphs in terminal

lowcharts Tool to draw low-resolution graphs in terminal. lowcharts is meant to be used in those scenarios where we have numerical data in text files

juanleon lahoz 114 Dec 31, 2022
UniSBOM is a tool to build a software bill of materials on any platform with a unified data format.

UniSBOM is a tool to build a software bill of materials on any platform with a unified data format. Work in progress Support MacOS Uses system_profile

Simone Margaritelli 32 Nov 2, 2022
Track and query Cargo dependency graphs.

cargo-guppy: track and query dependency graphs This repository contains the source code for: guppy: a library for performing queries on Cargo dependen

guppy 42 Dec 30, 2022
App to collect ram/cpu usage from OS and show it in pretty graphs

System info collector This is simple app to collect data about system cpu and memory usage over time. After collecting results into csv file, html fil

Rafał Mikrut 3 Jul 11, 2023
Tokei is a program that displays statistics about your code.

Tokei is a program that displays statistics about your code. Tokei will show the number of files, total lines within those files and code, comments, and blanks grouped by language.

null 7.5k Jan 1, 2023
A cargo subcommand that displays ghidra function output through the use of the rizin rz-ghidra project.

cargo-rz-ghidra A cargo subcommand that displays ghidra function output through the use of the rizin rz-ghidra project. Install cargo install --git ht

wcampbell 4 Nov 5, 2022
Play videos on IT8951-controlled e-paper displays

it8951-video Play videos on IT8951-controlled e-paper displays via USB. This has been tested with a Waveshare 7.8inch e-Paper HAT display. Design This

Andreas Dzialocha 4 Nov 28, 2022
A simple cli to clone projects and fetch all projects in a GitHub org..

stupid-git A simple cli to clone projects and update all projects. get all repository from GitHub clone all pull all with git stash Usage create sgit.

Fengda Huang 5 Sep 15, 2022
That program use on platform windows. And if you write any text on uncorrect keyboard layout, that program for that.

?? This program is designed to translate text into the correct layout when typing is incorrect. ?? Example ghbdtn -> привет Just (by default) pressing

Gest Se 5 Jan 26, 2023
Tiny Rust library to draw pretty line graphs using ascii characters.

rasciigraph Tiny Rust library to draw pretty line graphs using ascii characters. Usage Add this to your Cargo.toml [dependencies] rasciigraph = "0.1.1

Orhan Balci 54 Jan 6, 2023
Works out if this is running from inside a shell, and if so, which one.

pshell pshell answers the question "Is my application running in a shell, and if so, which one". Example: you are installing something and want to mak

Alec Brown 2 Nov 3, 2022
A cli tool to download specific GitHub directories or files

cloneit A cli tool to download specific GitHub directories or files. Installation From git git clone https://github.com/alok8bb/cloneit cd cloneit car

Alok 54 Dec 20, 2022
CLI tool for generating a summary of recent github activity for people who are incredibly forgetful

CLI tool for generating a summary of recent github activity for people who are incredibly forgetful but still need to give weekly status updates to their boss without getting depressed and convincing themselves they did nothing because they can't remember what they did!

Jane Lusby 50 Dec 23, 2022
Fuzzy Index for Python, written in Rust. Works like error-tolerant dict, keyed by a human input.

FuzzDex FuzzDex is a fast Python library, written in Rust. It implements an in-memory fuzzy index that works like an error-tolerant dictionary keyed b

Tomasz bla Fortuna 8 Dec 15, 2022
A Windows virtual display driver written in Rust (works with VR, etc)

Virtual Display Driver This is a Windows driver made in Rust which creates a virtual desktop. It has many uses, such as: A private virtual desktop for

Cherry 28 Sep 19, 2023
A chat to help users understand lessons from St. Josemaria Escriva's works

A chat to help users understand lessons from St. Josemaria Escriva's works. I'll be using Rust, OpenAI API, and qdrant vector database. Non-profit code, only looking forward to enlightening minds.

Eduardo Lemos 3 Nov 9, 2023
RBTC is cli to convert BTC to any currency and vice-versa.

RBTC RBTC is cli to convert BTC to any currency and vice-versa. Building for source For build the binary just: $ cargo build To run as debug, just run

Luca Lacerda 5 Nov 8, 2021