#anime #json-file #yaml #command-line-interface #senpy #rust

app senpy-cli

Command-line interface to The Senpy Club API

1 unstable release

0.1.2 Oct 30, 2024
0.1.1 Mar 17, 2022
0.1.0 Mar 17, 2022

#377 in HTTP server

Download history 1/week @ 2024-09-17 10/week @ 2024-09-24 12/week @ 2024-10-01 131/week @ 2024-10-29

131 downloads per month

GPL-3.0-only

31KB
324 lines

senpy-cli

The Senpy Club CLI is a tool that provides quick access to The Senpy Club API from the command-line!

Get data fast from The Senpy Club API either as stdout or to a supported file format.

Quick links

Discord Say Thanks License Crate Build Status

Installation

Install from crates.io

$ cargo +nightly install senpy-cli --force

Download from releases

Alternatively, prebuilt binaries for x86_64-based Linux systems are available in the releases. If you are using a different operating system or architecture such as macOS or Windows; you'll have to build and install The Senpy Club CLI yourself!

Install from self-compile

$ cargo +nightly install --git https://github.com/senpy-club/cli --branch main

If you are building and installing yourself; you must have Rust installed!

Usage

The Senpy Club CLI allows you to export to stdout in the form of ten-space-seperated columns or to a file in the JSON, YAML, or Dhall formats.

Examples

$ senpy languages    # Prints all available languages in a single column
$ senpy languages -t # Prints all available languages in one column and the fetch time in another
$ senpy languages -f languages.json  # Exports all available languages to a JSON file
$ senpy languages -f languages.yaml  # Exports all available languages to a YAML file
$ senpy languages -f languages.dhall # Exports all available languages to a Dhall file
$ senpy random | awk '{ print $1 }'  # Prints the first column (language) from stdout on *nix-based environments

Feel free to explore the rest of the available commands with senpy help!

Dependencies

~11–23MB
~357K SLoC